This 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 a list of work status assemblies and the quantity required for the assembly.
CREATE VIEW uv_AZRCRV_AssembleQuantityRequired AS
/*
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
TRX_ID
,ITEMNMBR
,Assemble_Quantity
FROM
BM10300 --Assembly Component (BM10300)
WHERE
Component_ID = 0
AND
Parent_Component_ID = -1
GO