1 (edited by jwbosch 04/15/2022 09:24:59 pm)

Topic: email invoice always says invoice 0 from company

For a while FA is sending invoices to my customers with the invoicenumber 0 in header and body.
I think I screwed it up somewhere in rep107.php to fix another problem but i can find it or know what to change it to, to get it to work again. (The invoice attachment is fine b.t.w)
on line 326 : $rep->End($email, sprintf(_("Invoice %d from %s"), $myrow['reference'], get_company_pref('coy_name')));
It looks like $myrow[ŕeference'] is not populated (anymore). How do i correct this the right way?

(I feel so dumb right now ;-) )

Jan Willem Bosch

Using FA for at least 10 years

cool JWBosch Techniek cool
-- Work - Frontaccounting - terrace --

Re: email invoice always says invoice 0 from company

This is reference number queried in debtor_trans table. 

Type =10 and trans_no = invoice no .

It might be connected with get_customer_trans function.  Which will help you to get the reference and pass it to invoice. 

Try enable pdf debug from config.php

And use display error function to check whether the reference passed properly

Subscription service based on FA
HRM CRM POS batch Themes

Re: email invoice always says invoice 0 from company

I had the same problem en changed the '%d' by '%s'.

F.

Re: email invoice always says invoice 0 from company

Thanks, that does the trick

cool JWBosch Techniek cool
-- Work - Frontaccounting - terrace --

Re: email invoice always says invoice 0 from company

jwbosch wrote:
advocaat.pollet wrote:

I had the same problem en changed the '%d' by '%s'.

F.

Thanks, that does the trick

@joe  update it on core

Subscription service based on FA
HRM CRM POS batch Themes

Re: email invoice always says invoice 0 from company

This has been fixed and committed to stable repo. Thanks for reporting this.

/Joe

Re: email invoice always says invoice 0 from company

You're welcome Jan Willem

cool JWBosch Techniek cool
-- Work - Frontaccounting - terrace --

8 (edited by pikatura48 06/15/2022 02:42:38 pm)

Re: email invoice always says invoice 0 from company

Useful Information