Hi Guys, In this article, we will see how to display amount in words in Microsoft Dynamics Business Central. Here, I am taking an example of Report object which is widely used in Navision for converting decimal amount field into words. Procedure :- Step-1 Declare the following Global Variables : RepCheck: Report "Check"; NoText: array [ 2 ] of Text ; AmountInWords: Text ; where, (1) RepCheck is a variable of Report DataType Named as " Check " which is 1401. (2) NoText is a variable of DataType " Text " with array Dimension value as 2 which is defined as shown above. (3) AmountInWords is a variable of DataType " Text " which will store final result of amount in words. Step-2 Now, add the following code in OnAfterGetRecord() trigger of DataItem containing that decimal field value. So in my custom Purchase Order Report, i am adding code in the Purchase Header (DataItem) - OnAfterGetRecord() trigger. trigger OnA
A hub of all my NAV/Business Central Codes.
Comments
Post a Comment