public DistributorDealLog(string seriaNo, int dealType, decimal amount, PosEndPoint pos, Distributor sourceDistributor, Account account, Distributor distributorTo, int addin) : this() { SerialNo = seriaNo; DealType = dealType; Amount = amount; SubmitTime = DateTime.Now; Pos = pos; SourceDistributor = sourceDistributor; Account = account; Distributor = distributorTo; Addin = addin; }
public decimal GetPayAmount(Site site, Distributor distributor) { decimal dealAmount = 0; decimal cancelAmount = 0; if (DealType == DealTypes.CancelDonePrePay || DealType == DealTypes.CancelDeal) { cancelAmount = -Amount; } else { dealAmount = Amount; } //return (dealAmount - cancelAmount) - // ((distributor.DistributorDealLogChargeRate ?? site.DistributorDealLogChargeRate) * dealAmount).ToRound(2); return(0); }