cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing the tax value of a marketing document row before it is written to

Former Member
0 Kudos
38

I am creating sales invoices using the DI and I need to check the valu of the tax as calculated by the system so that I can compare it to the value supplied on the data provided and check for rounding errors.

My problem is that none of the fields in document lines that hold the value of tax e.g. priceaftervat, nettaxamount seem to be updated before the record is written. It looks like the value is calculated as the record is written.

Does anyone know if this is the case or am I missing something?

Regards

Gordon

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Yes, this is the case. If you want to check it before adding, create invoice draft first, then with getbykey load it to document object, check the values you want and if is everything ok, create invoice from the draft.