pub fn pieces_to_lots(qty: Qty, lot: Decimal) -> Result<i64, Error>
The number of lots in a quantity of pieces: a positive whole number of lots, else invalid_qty (the library never rounds a quantity).
invalid_qty