getTotal function
Implementation
double getTotal(){
double _total = getSubTotalWithCoupon();
var t = _total + getTax();
return t < 0 ? 0 : t;
}
double getTotal(){
double _total = getSubTotalWithCoupon();
var t = _total + getTax();
return t < 0 ? 0 : t;
}