Description
Return unaccounted units, delivered*unitPrice, returned*returnCredit and invoice-credit.
Agribusiness records use explicit price bases, commissions, returns, minimum charges, credits and tax assumptions. A supplied arithmetic rule can reconcile a scenario while actual acceptance, contractual rights and legal liability require the governing agreement. Signed residual balances can be useful evidence of overpayment or inconsistent inputs.
Return unaccounted units, delivered*unitPrice, returned*returnCredit and invoice-credit.
When to use this tool
Use Farm Market Unsold Return Credit when checking the stated caller-defined price, fee, return or settlement convention.
How to use the tool and how it works
- Enter delivered, sold, returned, unitPrice, returnCredit. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read unaccounted, invoice, credit, net. Use the output convention below.
Require whole 0<=sold<=delivered and returned<=delivered-sold, with nonnegative prices. Return unaccounted units, delivered*unitPrice, returned*returnCredit and invoice-credit.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| delivered | Delivered | Required. Safe integer; minimum 0. |
| sold | Sold | Required. Safe integer; minimum 0. |
| returned | Returned | Required. Safe integer; minimum 0. |
| unitPrice | Unit Price | Required. Finite number; minimum 0. |
| returnCredit | Return Credit | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| unaccounted | Unaccounted | Required. Safe integer. |
| invoice | All delivered units*unitPrice, not just sold units. | Required. Finite number. |
| credit | Credit | Required. Finite number. |
| net | Net | Required. Finite number. |
{
"input": {
"delivered": 100,
"sold": 70,
"returned": 20,
"unitPrice": 2,
"returnCredit": 1.5
},
"output": {
"unaccounted": 10,
"invoice": 200,
"credit": 30,
"net": 170
}
} Limitations and assumptions
- Unsold/unreturned units stay invoiced under this bookkeeping convention; actual sales and contractual return rights are not verified.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Inspect original transaction records and applicable contracts/tax rules with the responsible financial/legal professionals for actual settlement or enforcement.
References
Similar or alternative tools
- Input Dealer Credit Note Quantity
Count floor(returned/packSize) packs, retain leftover units and credit whole packs*price*(1-restockingFraction).
- Crate Deposit Reuse Credit
Charge only newly deposited issues, credit all returns and report the signed difference.