Customer has asked me to develop a report that will recreate their inventory history in a specialized format.
Can someone critique my logic?
For any item, its inventory history is the sum of:
1) from the Account.OrderLine control, the quantity from the [checkedin] field with a datetime of the [timestamp] field, taken as a positive number.
2) from the Account.SaleLine control, the quantity from the [unitquantity] field with a datetime of the [timestamp] field, taken as a negative number.
3) from the Account.InventoryCountReconcile control, the quantity from the [qohchange] field with a datetime of the [createTime] field, taken as it exists in the field, either positive or negative.
So, for any item, I would have a transactional history with quantities and datetimes.