Hi all,
I need some help.
My colleagues in Belgium having problem with Payment Discount on Service. After Service Order is posted, in Customer Ledger they are getting value "Original Pmt. Disc. Possible" = 0 although "Payment Discount %" is not 0 and "Pmt. Discount Date" is correct posted.
Comparing CU12 from NAV5.0 W1 with CU12 from BE NAV 5.0 I have noticed that part of code calculating "Original Pmt. Disc. Possible" in function "PostCust" is completely missing:
IF "Amount (LCY)" <> 0 THEN BEGIN
IF GLSetup."Pmt. Disc. Excl. VAT" THEN
CVLedgEntryBuf."Original Pmt. Disc. Possible" := "Sales/Purch. (LCY)" * Amount / "Amount (LCY)"
ELSE
CVLedgEntryBuf."Original Pmt. Disc. Possible" := Amount;
CVLedgEntryBuf."Original Pmt. Disc. Possible" :=
ROUND(
CVLedgEntryBuf."Original Pmt. Disc. Possible" * "Payment Discount %" / 100,
Currency."Amount Rounding Precision");
CVLedgEntryBuf."Remaining Pmt. Disc. Possible" := CVLedgEntryBuf."Original Pmt. Disc. Possible";
END;
In test DB I have added missing code in BE version of CU12. Posting of Service Order have correctly posted "Original Pmt. Disc. Possible" in Customer Ledger Entry.
I am not sure if that is locally changed by former NAV provider or is just like that in BE Dynamics NAV 5.0. There are no comments in code.
It would help me a lot if someone can post complete Code from CU12, function PostCust().
Comments
It has been altered by our NAV partner; at least the parts between //gss and //gmi remarks have been added by them.
I do not know about other modifications.
thank you,bit late