FutureProg functions

liquidrefillcost

Itemscomputer function, computer program, standard futureprog

liquidrefillcost overload 1

Number liquidrefillcost(Item container, Number liquidId, Number unitVolume, Number unitPrice)
Available in
  • computer function
  • computer program
  • standard futureprog
Pure full-refill quote, prorated and rounded up to a whole base currency unit. Returns zero when full and -1 for invalid, closed, projection-only or incompatible contents. Existing matching liquid is preserved.
ParameterTypeDescription
container Item An open native liquid container.
liquidId Number The native liquid to add.
unitVolume Number Volume of one priced unit in native units.
unitPrice Number Price per unit in base currency units.