Is it possible to store the total COGS per line it...
# general
l
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
Can you use the COGS amount field?
l
On the formula field of the custom transaction line field?
Can't find the COGS amount field in the Transaction Line Field formula definition
m
It should be a field in the saved search. i think its just {cogsamount}
l
But summary saved search can't be used in custom transaction line field. Applicable only in transaction body field
m
Does this work?
CASE WHEN {applyingtransaction.type} = 'Item Fulfillment' THEN {cogsamount} END
l
Thank you. I got error field not found for the applyingtransaction.type. Are joins allowed here?