baggins
Utilities to Perform Sales Totals and Subtotals Calculation Operations.
Use
baggins exposes a calculator to obtain sales subtotals, into which taxes and discounts can be entered.
let mut c = new;
let err = c.add_discount_from_str;
assert!;
let err = c.add_tax_from_str;
assert!;
Once taxes and discounts have been entered, the compute method can be called to obtain the results
let r = c.compute;
match r