SQL Scripts for Microsoft Dynamics GP: Return Top Level BOM for Manufacturing Orders

Microsoft Dynamics GPThis script is part of the SQL Scripts for Microsoft Dynamics GP where I will be posted the scripts I wrote against Microsoft Dynamics GP over the 19 years before I stopped working with Dynamics GP.

This script returns the top level BOM for a manufacturing order.

/*
Created by Ian Grieve of azurecurve | Ramblings of an IT Professional (http://www.azurecurve.co.uk) This code is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0 Int). */
SELECT ['Mfg Order Master'].MANUFACTUREORDER_I ,['Mfg Order Master'].ITEMNMBR ,'CUSTOMER ITEM NUMBER' AS CustomerItemNumber ,['Item Master'].ITEMDESC ,['Mfg Order Master'].ENDQTY_I ,['Inventory U of M Schedule Setup'].BASEUOFM ,'DRAWING NUMBER' AS DrawingNumber ,'REVISION' AS Revision ,'SPEC NUMBER AND ISSUE' AS SpecificationAndIssue ,['Bill Of Material Line File'].CPN_I AS ComponentS FROM WO010032 AS ['Mfg Order Master'] --WO010032 INNER JOIN IV00101 AS ['Item Master'] --Item Master (IV00101) ON ['Item Master'].ITEMNMBR = ['Mfg Order Master'].ITEMNMBR INNER JOIN IV40201 AS ['Inventory U of M Schedule Setup'] --Inventory U of M Schedule Setup (IV40201) ON ['Inventory U of M Schedule Setup'].UOMSCHDL = ['Item Master'].UOMSCHDL INNER JOIN BM010115 AS ['Bill Of Material Line File'] --BM010115 ON ['Bill Of Material Line File'].PPN_I = ['Mfg Order Master'].ITEMNMBR

Click to show/hide the SQL Scripts for Microsoft Dynamics GP Series Index

In Microsoft Dynamics 365 Business Central (Financial), how do I… Indent Chart of Accounts

Microsoft Dynamics 365 Business CentralThis post is part of the In Microsoft Dynamics 365 Business Central (Financial), how do I… series and of the wider In Microsoft Dynamics 365 Business Central, how do I… series which I am posting as I familiarise myself with Microsoft Dynamics 365 Business Central.

When you have created your G/L Accounts, you can view the created accounts in the Chart of Accounts list.

As you can see from the below, the list of accounts is indented based on the Begin/End-Total rows. This is not something which happens by default, but is the result of running a process to indent the accounts. This same process also calculates the accounts included in the End-Total row so that the end total includes all accounts from the preceding Begin-Total:

Chart of Accounts list page

Continue reading “In Microsoft Dynamics 365 Business Central (Financial), how do I… Indent Chart of Accounts”