Payments carried out or fiscalized as a discount
[ ]In API V8 it became possible to distinguish between discount payments.
Earlier we wrote note about payments carried out as a discount. Now there are payments that are fiscalized as a discount. Such payments are also non-fiscal and are fiscalized on the cash register side not as payments, but as discounts by reducing the cost of dishes. But in the server OLAP reports they are still displayed not as discounts, but as regular non-fiscal payments (whereas payments posted as a discount pretend to be discounts in OLAP reports too).
Thus, our API has undergone such changes:
- The payment type property
IPaymentType.IsDiscounthas been removed. Instead, 2 properties were added:IPaymentType.ProcessAsDiscount— is the payment type posted as a discount.IPaymentType.FiscalizeAsDiscount— is the payment type fiscalizable as a discount.
- 2 properties have been added to the order payment element
IPaymentItem:IPaymentItem.IsProcessedAsDiscount— whether this payment was made as a discount. This property makes sense only for prepayments:IPaymentItem.IsPrepay. For regular payments, you must use the appropriate property of the payment type:IPaymentType.ProcessAsDiscount.IPaymentItem.IsFiscalizedAsDiscount— whether this payment was fiscalized as a discount. This property makes sense only for prepayments:IPaymentItem.IsPrepay. For regular payments, you must use the appropriate property of the payment type:IPaymentType.FiscalizeAsDiscount.
- A new property has been added to the order discount element
IDiscountItemIDiscountItem.DiscountPaymentItem— payment item from the listIOrder.Payments, carried out or fiscalized as a discount. If the discount is not paid, this property is equal tonull. - The list of payment discounts is still in
IOrder.PaymentDiscounts.