Esempio n. 1
0
fixed
Receive::total() const
{
    fixed total = costTotal() + depositTotal() + taxTotal() + chargeTotal();
    if (isClaim()) return -total;
    return total;
}
Esempio n. 2
0
fixed
Invoice::total() const
{
    fixed total = priceTotal() - itemDiscountTotal() + depositTotal() +
	taxTotal();
    if (isReturn()) return -total;
    return total;
}
Esempio n. 3
0
void Customer::fireTotalsChanged() {
    foodTotalChanged(foodTotal());
    taxTotalChanged(taxTotal());
    barTotalChanged(barTotal());
    totalChanged(total());

    actualTaxChanged(actualTax());
    marginChanged(margin());
}
Esempio n. 4
0
float Customer::total() {
    return foodTotal() + taxTotal() + barTotal();
}