@tallyui/components 3.3.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,6 +50,8 @@ export function Receipt({ order, posOrder, store, cashier, registerId, newSale,
50
50
  </View>)}
51
51
  {/* Each discount appears once in the totals: line discounts are itemised under their lines and summed once here;
52
52
  the order discount appears once. order.display's figures (ADR-063; medusapos ADR 0008). */}
53
+ {receipt.fees.map((charge, index) => row(charge.name, money(charge.amountMinor), false, index))}
54
+ {receipt.shipping.map((charge, index) => row(charge.name, money(charge.amountMinor), false, index))}
53
55
  {row('Subtotal', money(totals.subtotalMinor))}
54
56
  {lineDiscountMinor > 0 ? row('Line discounts', `−${money(lineDiscountMinor)}`) : null}
55
57
  {receipt.orderDiscountMinor > 0 ? row('Order discount', `−${money(receipt.orderDiscountMinor)}`) : null}