Compnent Code Duplicating
Posted: 06 Apr 2018, 19:48
Hi
I have a report I have pretty much got in all working apart from one product keeps pulling as a duplicate and I'm not sure why it is part of a BOM all other BOM on different products pull through without them being duplicates.
I have 2 sections
Header and Details
The Header Filter is: STOCK.HAS_NO_COMPONENT = 0
Details Section has no filter.
(Tried using the BOM filter but it won't pull through all of the orders)
The code im using for each section is the below this is the same on both the header and details section
Quantity
STOCK.HAS_NO_COMPONENT = 1
? SOP_ITEM.QTY_ORDER
: STOCK_COMP.COMPONENT_QTY * SOP_ITEM.QTY_ORDER
Weight:
STOCK.HAS_NO_COMPONENT = 1
? STOCK.UNIT_WEIGHT
: COMPONENT.UNIT_WEIGHT
Stock Code:
STOCK.HAS_NO_COMPONENT = 1
? STOCK.STOCK_CODE
: STOCK_COMP.COMPONENT_CODE
Description:
STOCK.HAS_NO_COMPONENT = 1
? SOP_ITEM.DESCRIPTION
: COMPONENT.DESCRIPTION
Just wondering if Im using the wrong filter or if my code needs some more detail.
I have a report I have pretty much got in all working apart from one product keeps pulling as a duplicate and I'm not sure why it is part of a BOM all other BOM on different products pull through without them being duplicates.
I have 2 sections
Header and Details
The Header Filter is: STOCK.HAS_NO_COMPONENT = 0
Details Section has no filter.
(Tried using the BOM filter but it won't pull through all of the orders)
The code im using for each section is the below this is the same on both the header and details section
Quantity
STOCK.HAS_NO_COMPONENT = 1
? SOP_ITEM.QTY_ORDER
: STOCK_COMP.COMPONENT_QTY * SOP_ITEM.QTY_ORDER
Weight:
STOCK.HAS_NO_COMPONENT = 1
? STOCK.UNIT_WEIGHT
: COMPONENT.UNIT_WEIGHT
Stock Code:
STOCK.HAS_NO_COMPONENT = 1
? STOCK.STOCK_CODE
: STOCK_COMP.COMPONENT_CODE
Description:
STOCK.HAS_NO_COMPONENT = 1
? SOP_ITEM.DESCRIPTION
: COMPONENT.DESCRIPTION
Just wondering if Im using the wrong filter or if my code needs some more detail.