예제 #1
0
파일: Summary.cs 프로젝트: njmube/SIQPOS
 public Summary(TaxAmount taxAmount, DiscountAmount discountTotalAmount, ChargeAmount chargeAmount, double amountBeforeDiscount)
 {
     this.SubTotal = amountBeforeDiscount;
     this.DiscountTotalAmount = discountTotalAmount;
     this.ChargeAmount = chargeAmount;
     this.TaxAmount = taxAmount;
     this.NetAmount = SubTotal - discountTotalAmount + ChargeAmount + TaxAmount;
 }
예제 #2
0
파일: Item.cs 프로젝트: njmube/SIQPOS
 internal void ChangeDiscountTotal(double subTotal, DiscountAmount discountTotal)
 {
     if (subTotal == 0d) return;
     this.SharedDiscountAmount = (AmountAfterDiscount / subTotal) * discountTotal;
     Calculate();
 }