LIFO Order Product Cancellation
- Sum the value of terminated billing amounts for the original order products. We call this number the original balance.
- Sum the value of terminated billing amounts for the amending order products and the Cancel Order Products. We call this number the canceling balance.
- Evaluate whether the canceling balance is larger, smaller, or equal to the original balance. Remember, positive order products have negative amending order products, so Salesforce Billing ignores whether a balance is positive or negative during this evaluation.If the canceling balance is larger, the Cancel Order Product reduces its pending balance by the sum of all other pending balances. All other order products reduce their pending balances to zero. Salesforce Billing picks up the Cancel Order product's remaining pending balance on the next invoice run.If the canceling balance equals the original balance, Salesforce Billing reduces pending billings on all order products to zero. Since none of the order products have a pending balance, Salesforce Billing doesn't pick them up on the next invoice run.If the canceling balance is smaller, Salesforce Billing needs to know how to allocate the canceling balance among the original and amending order products. In this case, it checks the value of the Cancel Order Product's cancelation rule. If the value is LIFO, Salesforce Billing cancels the amending order products first. It then applies the canceling balance to the original order products starting with the newest LIFO date (such as terminated date or order product creation date) and moving to the order product with the oldest LIFO date.
- If the canceling balance is larger, the Cancel Order Product reduces its pending balance by the sum of all other pending balances. All other order products reduce their pending balances to zero. Salesforce Billing picks up the Cancel Order product's remaining pending balance on the next invoice run.
- If the canceling balance equals the original balance, Salesforce Billing reduces pending billings on all order products to zero. Since none of the order products have a pending balance, Salesforce Billing doesn't pick them up on the next invoice run.
- If the canceling balance is smaller, Salesforce Billing needs to know how to allocate the canceling balance among the original and amending order products. In this case, it checks the value of the Cancel Order Product's cancelation rule. If the value is LIFO, Salesforce Billing cancels the amending order products first. It then applies the canceling balance to the original order products starting with the newest LIFO date (such as terminated date or order product creation date) and moving to the order product with the oldest LIFO date.