You are here:
Use Cases: All Pending Billings Reduced to Zero
Sometimes, you’ll have multiple order products and a Cancel Order Product with pending billings that sum to zero. After you activate the Cancel Order Product, Salesforce Billing cancels all pending billings and doesn’t have anything left to invoice. (Salesforce Billing Managed Package)
Required Editions
| Available in: Salesforce Billing Spring ’18 and later |
Canceled Order Product = Pending Billings
| Order Product | Total | Billed | Pending | Canceled | Dates |
|---|---|---|---|---|---|
| Original Order Product | $600 | $450 | $150 | $0 |
|
| Amending Order Product #1 | $200 | $125 | $75 | $0 |
|
| Order Product | Total | Billed | Pending | Canceled | Dates |
|---|---|---|---|---|---|
| Cancel Order Product | -$225 | $0 | -$225 | $0 |
|
The cancel order product’s total and the pending values of the original order products have a combined value of $0. Therefore, Salesforce Billing doesn’t perform futher billing. After a user or process activates the Cancel Order Product, Salesforce Billing moves the pending values of all order products to the canceled values. Then, the pending values become $0.
| Order Product | Total | Billed | Pending | Canceled | Dates |
|---|---|---|---|---|---|
| Original Order Product Result | $600 | $450 | $0 | $150 |
|
| Amending Order Product #1 Result | $200 | $125 | $0 | $75 |
|
| Cancel Order Product Result | -$225 | $0 | $0 | -$225 |
|
Negative Original Order Product = Pending Billings
| Order Product | Total | Billed | Pending | Canceled | Dates |
|---|---|---|---|---|---|
| Original Order Product, 01/01/17 – 12/31/17 | -$600 | -$450 | -$150 | $0 |
|
| Original Order Product #2 | -$200 | -$125 | -$75 | $0 |
|
| Order Product | Total | Billed | Pending | Canceled | Dates |
|---|---|---|---|---|---|
| Cancel Order Product | $225 | $0 | $225 | $0 |
|
Remember, a negative order product creates a positive Cancel Order Product. When a user or process activates this Cancel Order Product, Salesforce Billing determines that the Cancel Order Product and the pending billings of the original order products add up to zero. Therefore, no further billing is performed, all order product canceled billings receive the value of their pending billings, and all pending billings receive a value of zero.
| Order Product | Total | Billed | Pending | Canceled | Dates |
|---|---|---|---|---|---|
| Original Order Product Result | -$600 | -$450 | $0 | -$150 |
|
| Amending Order Product #1 Result | -$200 | -$125 | $0 | -$75 |
|
| Cancel Order Product Result | $225 | $0 | $0 | $225 |
|
Negative Order Product and Positive Amending Order Product, Cancel Order Product and Net Prior Pending Billings = 0
| Order Product | Total | Billed | Pending | Canceled | Dates |
|---|---|---|---|---|---|
| Original Order Product | -$600 | -$450 | -$150 | $0 |
|
| Amending Order Product #1 | $200 | $125 | $75 | $0 |
|
| Order Product | Total | Billed | Pending | Canceled | Dates |
|---|---|---|---|---|---|
| Cancel Order Product | $75 | $0 | $75 | $0 |
|
Since the Cancel Order Product has a greater value than prior pending billings, Salesforce Billing reduces the Cancel Order Product’s pending balance by the sum of prior pending billings. It then cancels all prior pending billings.
| Order Product | Total | Billed | Pending | Canceled | Dates |
|---|---|---|---|---|---|
| Original Order Product Result | -$600 | -$450 | $0 | -$150 |
|
| Amending Order Product #1 Result | $200 | $125 | $0 | $75 |
|
| Cancel Order Product Result | $75 | $0 | $0 | $75 |
|

