Set the "Order discount" field

Hi,
Quick question: How do I Set the “Order discount” field in the AddEditOrder view?

Thanks,
/Andreas

image

Litium version: 6

If you can’t edit then you can create a new order-row and add discount percentage on it and erase old one.

Litium merely provides a place to store them. The implementation project may add them in appropriate locations during the checkout flow.

from https://docs.litium.com/documentation/litium-documentation/sales/pricing_rules_1/fees_and_order_discounts

So you can use this field to set any value in your custom code.

Any discount set on order rows is not showing here since row discount is already removed in the order row total amount and this value is showing order discount (orange below).

image