fixed Receive::total() const { fixed total = costTotal() + depositTotal() + taxTotal() + chargeTotal(); if (isClaim()) return -total; return total; }
fixed Invoice::total() const { fixed total = priceTotal() - itemDiscountTotal() + depositTotal() + taxTotal(); if (isReturn()) return -total; return total; }
void Customer::fireTotalsChanged() { foodTotalChanged(foodTotal()); taxTotalChanged(taxTotal()); barTotalChanged(barTotal()); totalChanged(total()); actualTaxChanged(actualTax()); marginChanged(margin()); }
float Customer::total() { return foodTotal() + taxTotal() + barTotal(); }