function units_operator_subtract_split_quantity in Units of Measurement 7.2
1 string reference to 'units_operator_subtract_split_quantity'
- subtract.inc in plugins/
operator/ subtract.inc
File
- plugins/
operator/ subtract.inc, line 35
Code
function units_operator_subtract_split_quantity($total_quantity, $quantity1, $quantity2, $plugin) {
// The easiest way to split quantity within a subtraction is to give 100% of
// the quantity to minuend and 0 to subtrahend.
return array(
$total_quantity,
$plugin['transparent operand2'],
);
}