I'm currently investigating issues during the posting of cash discounts when settling a customer invoice in case the tax is exempt.
Specifically I was analyzing method cashDiscountLedgerDimension in class CustVendSettle_Cust, which will only call method findTaxLedgerDimension if the fields TaxGroup and SumTax are set in the CustInvoiceJour record. But when creating a customer invoice by posting a general Journal, these fields are empty (in case of exempt tax). Now for the SumTax field KB 3020713 seems to provide a fix. Unfortunately this does not seem to solve the issue with the empty TaxGroup. Additionally I could not find any code that would set this field in case of posting of a general journal (method createInvoiceJournal of class CustVoucher).
So does anybody know why field TaxGroup in table CustInvoiceJour is not filled when the invoice journal is created by posting a general gournal?
*This post is locked for comments
I have the same question (0)
		

Report
 All responses (
 Answers (