Improvements
1. The behavior of the "Spend And Get % Off Everything" (if it applies to specific products) and the "Spend and get" promotions has been improved. If the condition is "Spend at least $X", then the total value of the invoice AFTER the discount must not be lower than that.
2. API call savePurchaseDocument has been improved.
Fixes
1. Fixed: re-saving a confirmed sales document with saveSalesDocument no longer loses information about promotion and price list discounts applied to that sale. (This information can be queried with API call getAppliedPromotionRecords.)