Hello everyone! Can we apply a discount item(creat...
# suitecommerce
f
Hello everyone! Can we apply a discount item(created before in the ERP) to a specific line item through a scriptable cart for SCA?
e
Yes, you can. It's the only way. But it applies to the sales order not to a line item. Maybe you meant that you want to check if a specific item is on the sales order and then apply the discount item.
f
Hello @eminero. Thanks for your response. I want to apply the discount to a specific item. I thought it could be done by adding a new line below the one I need to apply the discount. Is that possible?
I was able to add it from ERP but trying from a scriptable cart gives me an error for an invalid item key reference for a specific subsidiary(The discount item is available to all the subsidiaries)
e
Oh, when you said, discount item, I thought in the body field
discountitem
, you can add this via scriptable cart but even new lines. Probably the item needs to be
display in website
. If not this is more an error related to subsidiary assignations, probably suiteanswers get some insights.
f
Ok, thanks for your help on it.