Category: D365 BC

Development of Trial Balance Report in BC D365

Development of Trial Balance Report in BC D365: (1) In this blog, we will see how to develop a new Trial Balance Report in excel format. (2) First of all Take DataItem: “G/L Account”. (3) Write code in “OnAfterGetRecord” for calculating Opening, Debit, Credit and Running Balance. Header Part: Body Part: Footer Part: Excel Sheet Creation …

“Item Charge Assignment detail against Sales Invoice” report development in BC D365

Item Charge Assignment detail against Sales Invoice: (1) In this blog we will see how to develop or fetch information of Item Charge Assignment detail against Sales Invoice. (2) For fetching information of Item Charge against Sales Invoice, use Dataitems: Value Entry as IC_Value_Entry, Value Entry as SI_Value_Entry and Sales Invoice Line as shown below. (3) …

“Item Charge Assignment detail against Purchase Invoice” report development in BC D365

Item Charge Assignment detail against Purchase Invoice: (1) In this blog we will see how to develop or fetch information of Item Charge Assignment detail against Purchase Invoice. (2) For fetching information of Item Charge against Purchase Invoice, use Dataitems: Value Entry as IC_Value_Entry, Value Entry as PI_Value_Entry and Purch. Inv. Line as shown below. (3) …

Call “No.” field “OnValidate” trigger via “EventSubscriber” of Sales & Purchase Line Table in BC D365

Call “No.” field “OnValidate” trigger via EventSubscriber: (1) In this blog we have seen that how to call the “No.” field OnValidate trigger of the Sales & Purchase Line table. (2) For that call Event of “No.” field “OnAfterValidateEvent”. (3) Example 01 (In case of Sales Line Table): In this, we have to auto-update Sales line …

Create and Assign Dimensions in Sales Document at Creation in BC D365

Create and Assign Dimensions in Sales Document: (1) In this blog, we will do auto-creation and assignment of Dimensions in Sales Document creation (or OnInsert Trigger) as shown below. (2) In the above function, we have called EventSubscriber of Sales Header table OnAfterInsertEvent for auto assigning the value to Sales Document. Source Code: codeunit 50001 “Custom …

Convert Amount into Words in D365 BC

Convert Amount into Words in D365 BC: (1) For converting “Amount in Words” in Dynamics 365 BC, use system predefined function. (2) In previous versions, we used “Check Report—>Function” for converting Value in Text. But in the latest version, I have found that, if we use “ Check Report—>Function” then the system will show “AmountInWords in …