Is it possible to store the total COGS per line item in the sales order without scripting? I have a custom transaction line field but I don't see an option to use a summary saved search or to use a formula to join to the related item fulfillments.
m
MGBC
03/08/2024, 1:58 AM
Can you use the COGS amount field?
l
Luis
03/08/2024, 4:17 AM
On the formula field of the custom transaction line field?
Luis
03/08/2024, 4:19 AM
Can't find the COGS amount field in the Transaction Line Field formula definition
m
MGBC
03/08/2024, 5:46 AM
It should be a field in the saved search. i think its just {cogsamount}
l
Luis
03/08/2024, 6:25 AM
But summary saved search can't be used in custom transaction line field. Applicable only in transaction body field
m
MGBC
03/08/2024, 2:59 PM
Does this work?
MGBC
03/08/2024, 2:59 PM
CASE WHEN {applyingtransaction.type} = 'Item Fulfillment' THEN {cogsamount} END
l
Luis
03/10/2024, 2:53 AM
Thank you. I got error field not found for the applyingtransaction.type. Are joins allowed here?