Exemple #1
0
 public Transaction(string tCode, DateTime date, TransactionDetail td)
 {
     this.transactionCode = tCode;
     this.date            = date;
     detail = new TransactionDetail
     {
         amount   = td.amount,
         tax      = td.tax,
         Currency = td.Currency,
         IsValid  = td.IsValid
     };
     amountWithoutTax = this.detail.amount != null && this.detail.tax != null ? (decimal)(this.detail.amount * (1 - this.detail.tax / 100)) : 0;
 }
Exemple #2
0
 public Transaction(Transaction t)
 {
     this.transactionCode = t.transactionCode;
     this.date            = t.date;
     detail = new TransactionDetail
     {
         amount   = t.detail.amount,
         tax      = t.detail.tax,
         Currency = t.detail.Currency,
         IsValid  = t.detail.IsValid
     };
     amountWithoutTax = this.detail.amount != null && this.detail.tax != null ? (decimal)(this.detail.amount * (1 - this.detail.tax / 100)) : 0;
 }
Exemple #3
0
 public Transaction(string tCode, DateTime date, decimal sum, decimal tax, int currency, bool isValid)
 {
     this.transactionCode = tCode;
     this.date            = date;
     detail = new TransactionDetail
     {
         amount   = sum,
         tax      = tax,
         Currency = currency,
         IsValid  = isValid
     };
     amountWithoutTax = this.detail.amount != null && this.detail.tax != null ? (decimal)(this.detail.amount * (1 - this.detail.tax / 100)) : 0;
 }
Exemple #4
0
 public Transaction()
 {
     transactionCode  = null;
     date             = null;
     amountWithoutTax = 0;
     detail           = new TransactionDetail
     {
         amount   = null,
         tax      = null,
         Currency = null,
         IsValid  = null
     };
 }
Exemple #5
0
 public Transaction(Transaction t)
 {
     this.TransactionCode = t.TransactionCode;
     this.Date            = t.Date;
     Detail = new TransactionDetail
     {
         Amount   = t.Detail.Amount,
         Tax      = t.Detail.Tax,
         Currency = t.Detail.Currency,
         IsValid  = t.Detail.IsValid
     };
     AmountWithoutTax = this.Detail.Amount != null && this.Detail.Tax != null ? (decimal)(this.Detail.Amount * (1 - this.Detail.Tax / 100)) : 0;
 }
Exemple #6
0
 public Transaction(string tCode, DateTime date, TransactionDetail td)
 {
     this.TransactionCode = tCode;
     this.Date            = date;
     Detail = new TransactionDetail
     {
         Amount   = td.Amount,
         Tax      = td.Tax,
         Currency = td.Currency,
         IsValid  = td.IsValid
     };
     AmountWithoutTax = this.Detail.Amount != null && this.Detail.Tax != null ? (decimal)(this.Detail.Amount * (1 - this.Detail.Tax / 100)) : 0;
 }
Exemple #7
0
 public Transaction()
 {
     TransactionCode  = null;
     Date             = null;
     AmountWithoutTax = 0;
     Detail           = new TransactionDetail
     {
         Amount   = null,
         Tax      = null,
         Currency = null,
         IsValid  = null
     };
 }