Featured Post

Dynamics GP 2019 is now Released

It is now released, Microsoft Dynamics GP 2019 which moves the system to the modern product life cycle   " Beginning with the October...

Thursday, May 17, 2018

Manufacturing Order Cost Distribution

The following reports retrieves data from the manufacturing order closing file, it illustrates the following details for every single MO per item number:
  • Material Cost
  • Material Fixed Overhead
  • Material Variable Overhead
  • Labor Cost
  • Labor Fixed Overhead
  • Labor Variable Overhead
  • Machine
  • Machine Fixed Overhead
  • Machine Variable Overhead
  • Total MO cost



SELECT ITEMNMBR,
       DATEPART(yy, COMPLETECLOSEDATE) AS RecYear,
       DATEPART(mm, COMPLETECLOSEDATE) AS RecMonth,
       SUM(ENDQTY_I) AS RecQTY,
       BASEUOFM,
       SUM(ITEM_COSTS_ARRAY_I_1) AS [Material_Costs],
       SUM(ITEM_COSTS_ARRAY_I_2) AS [Material_Fixed_Overhead],
       SUM(ITEM_COSTS_ARRAY_I_3) AS [Material_Variable_Overhead],
       SUM(ITEM_COSTS_ARRAY_I_4) AS [Labor],
       SUM(ITEM_COSTS_ARRAY_I_5) AS [Labor_Fixed_Overhead],
       SUM(ITEM_COSTS_ARRAY_I_6) AS [Labor_Variable_Overhead],
       SUM(ITEM_COSTS_ARRAY_I_7) AS [Machine],
       SUM(ITEM_COSTS_ARRAY_I_8) AS [Machine_Fixed_Overhead],
       SUM(ITEM_COSTS_ARRAY_I_9) AS [Machine_Variable_Overhead],
       SUM(ITEM_COSTS_ARRAY_I_10) AS [Total_Cost]
FROM
(
    SELECT A.*,
           B.ITEMNMBR,
           B.COMPLETECLOSEDATE,
           B.ENDQTY_I,
           D.[BASEUOFM]
    FROM WO010701 AS A
        INNER JOIN WO010032 AS B
            ON A.MANUFACTUREORDER_I = B.MANUFACTUREORDER_I
        INNER JOIN IV00101 AS C
            ON B.[ITEMNMBR] = C.[ITEMNMBR]
        INNER JOIN IV40201 AS D
            ON C.[UOMSCHDL] = D.[UOMSCHDL]
    WHERE MANUFACTUREORDERST_I = 8
) AS E
GROUP BY ITEMNMBR,
         DATEPART(yy, COMPLETECLOSEDATE),
         DATEPART(mm, COMPLETECLOSEDATE),
         BASEUOFM




Best Regards, 
Mahmoud M. AlSaadi

1 comment:

  1. BE SMART AND BECOME RICH IN LESS THAN 3DAYS....It all depends on how fast 
    you can be to get the new PROGRAMMED blank ATM card that is capable of
    hacking into any ATM machine,anywhere in the world. I got to know about 
    this BLANK ATM CARD when I was searching for job online about a month 
    ago..It has really changed my life for good and now I can say I'm rich and 
    I can never be poor again. The least money I get in a day with it is about 
    $50,000.(fifty thousand USD) Every now and then I keeping pumping money 
    into my account. Though is illegal,there is no risk of being caught 
    ,because it has been programmed in such a way that it is not traceable,it 
    also has a technique that makes it impossible for the CCTVs to detect 
    you..For details on how to get yours today, email the hackers on : (
    atmmachinehackers1@gmail.com ). Tell your 
    loved once too, and start to live large. That's the simple testimony of how 
    my life changed for good...Love you all ...the email address again is ;
    atmmachinehackers1@gmail.com

    ReplyDelete