Skip to content

Main content

Input Dealer Credit Note Quantity Tool

Credit complete returned packs only, with an explicit restocking deduction.

Loading tool…

Description

Count floor(returned/packSize) packs, retain leftover units and credit whole packs*price*(1-restockingFraction).

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.

Count floor(returned/packSize) packs, retain leftover units and credit whole packs*price*(1-restockingFraction).

When to use this tool

Use Input Dealer Credit Note Quantity when checking the stated caller-defined price, fee, return or settlement convention.

How to use the tool and how it works

  1. Enter returned, packSize, pricePerPack, restockingFraction. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read wholePacks, remainderUnits, credit. Use the output convention below.

Require whole returned>=0 and packSize>=1, nonnegative pack price and restocking fraction in [0,1]. Count floor(returned/packSize) packs, retain leftover units and credit whole packs*price*(1-restockingFraction).1

Input fieldMeaning and unitsAccepted input
returnedReturnedRequired. Safe integer; minimum 0.
packSizePack SizeRequired. Safe integer; minimum 1.
pricePerPackPrice Per PackRequired. Finite number; minimum 0.
restockingFractionRestocking FractionRequired. Finite number; minimum 0; maximum 1.
Output fieldInterpretationReturned shape
wholePacksWhole PacksRequired. Safe integer.
remainderUnitsReturned units outside complete packs; no credit is assigned to this remainder.Required. Safe integer.
creditCreditRequired. Finite number.
json
{
  "input": {
    "returned": 25,
    "packSize": 10,
    "pricePerPack": 40,
    "restockingFraction": 0.1
  },
  "output": {
    "wholePacks": 2,
    "remainderUnits": 5,
    "credit": 72
  }
}

Limitations and assumptions

  • Partial packs earn no credit under this convention; actual return acceptance and contractual rights are not determined.
  • 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

  1. Calculation and input contract: agribusiness/input-dealer-credit-note-quantity — tool.io

Similar or alternative tools