Discount{json='{"discount":{"id":"com.bloyal.discount"},"amount":-5000,"name":"bLoyal Product Promotion ($50.00)","id":"84MBQD88JT75P"}', bundle=null, changeLog=null}
However, if the register app is closed, then the order is reopened through the orders app, the value of the discount is:
Discount{json='{"id":"84MBQD88JT75P","orderRef":{"id":"AKVPA2DYRRD2Y"},"lineItemRef":{"id":"018WSWG7TYFNP"},"name":"bLoyal Product Promotion ($50.00)","amount":-5000}', bundle=null, changeLog=null}This is resulting in discount.getDiscount() returning null. Can someone please explain why the value of the discount may have changed?
Thanks,
Ryan