![]() ![]() RepCheck.FormatNoText(NoText,AmountVendor,"Purchase Header"."Currency Code") Now add the following code to display the Amount in Words: RepCheck.InitTextVariable AmountVendor:= ROUND("Purchase Header"."Amount to Vendor",0.01) I have rounded off the Amount to 2 decimal places. I have declared a variable ‘ AmountVendor’ of DataType ‘ Decimal’ in which I will be storing the ‘Amount to Vendor’. So in the Purchase Header – OnAfterGetRecord() trigger, I have put the following code: Now in my custom purchase order report, I want to display the Amount to Vendor in Words. ‘ AmountInWords’ is a variable of DataType ‘ Text’ which will store the final result of the amount in words.‘ NoText’ is a variable of DataType ‘ Text’ with Dimensions Value as 2 which is set by navigating to the properties of the ‘ NoText’ variable.‘ RepCheck’ is a variable of DataType ‘ Report’ and Subtype ‘ Check’ which is Report 1401.Pre-Requisite:ĭeclare the following variables in C/AL Globals: In this article, I will be explaining the procedure to display amount in words in a report of Microsoft Dynamics NAV. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |