Service Invoice Error. NAV 2018

Hi All,

While creating Service Invoice I am getting error.

When I debug, Line Discount % coming -28.23. Because Line Amount coming greater than Unit Price. Code is written on Line Amount - OnValidate.

Scenario is : Only one Invoice is created for this contract, that also reversed(credit note) partially(two credit notes).

Error is coming on third service ledger entry. 

For other invoices its working fine.

What is wrong?

Thanks in Advance.

Related
Recommended