billing/totals.ts
  1. MO3dexport function orderTotal(items) {
  2. LB2y let sum = 0;
  3. for (const it of items) {
  4. SR5mo sum += it.price * it.qty;
  5. LB2y }
  6. MO3d const c = Math.round(sum * 100);
  7. return c / 100;
  8. LB2y}
MO
Round totals to whole centsMaya Okafor, 3 days ago
a1b9c3e