getTotal function

double getTotal()

Implementation

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