All components

Unit Delivery

Convert phased unit deliveries into one bounded monthly inventory ledger.

How it works

Unit Delivery (5)
  1. Available

    Available

  2. Completion Month

    Completion Month

  3. Delivered Units

    Delivered Units

  4. First Delivery Month

    First Delivery Month

  5. Monthly Deliveries

    Monthly Deliveries

Calculation steps (6)
  1. Periods

    Run Unit Delivery Period for each delivery. Carry the closing state into the next period.

    Component · Unit Delivery Period

    Place one delivery phase into its bounded completion month.

    Argument values
    Delivery Month
    Delivery Months
    Delivery Units
    Delivery Units
    Delivered Units
    Start at 0. For the next period, use the previous Delivered units.
  2. Monthly Deliveries

    Sum along axis(Periods · Monthly Deliveries, Delivery)

  3. Available

    (Sum(Monthly Deliveries) > 0)

  4. Completion Month

    Result of Last Delivery Period

    Component · Last Delivery Period

    Find the final month with positive unit delivery, or zero when none exists.

    Argument values
    Deliveries
    Monthly Deliveries
  5. Delivered Units

    Running total(Monthly Deliveries)

  6. First Delivery Month

    Result of First True Month

    Component · First True Month

    Find the first true month, or zero when none exists.

    Argument values
    Values
    (Delivered Units > 0)

Inputs and outputs

Inputs (3)
Inputs
NameUnitApplies to
Delivery MonthsMonthsDelivery
Delivery UnitsunitsDelivery
Total UnitsunitsSingle value
Outputs (5)
Outputs
NameUnitApplies to
AvailableFlagSingle value
Completion MonthMonthsSingle value
Delivered UnitsunitsMonth
First Delivery MonthMonthsSingle value
Monthly DeliveriesunitsMonth

Recipes using this calculation

Libraries