Improvements
1. After creating a sales invoice from an order or a prepayment invoice with API call saveSalesDocument, API updates the payment status of the order or the prepayment invoice.
2. After deleting a payment with API call deletePayment, API updates the payment status of the associated invoice.
3. Performance optimization in API call saveSalesDocument.
4. The "isHQPromotion" flag and the "isHQPromotion" filter in API call getCampaigns support now franchises with shared data and synced promotions.