partial void OnRetailTransactionAuditableSalesLineChanging(global::Microsoft.Dynamics.DataEntities.RetailTransactionAuditableSalesLine value);
예제 #2
0
        public static RetailTransactionAuditableDiscountLine CreateRetailTransactionAuditableDiscountLine(string dataAreaId,
                                                                                                          string operatingUnitNumber,
                                                                                                          string storeNumber,
                                                                                                          string registerNumber,
                                                                                                          string transactionId,
                                                                                                          decimal salesLineNumber,
                                                                                                          decimal lineNumber,
                                                                                                          decimal discountAmount,
                                                                                                          decimal discountCost,
                                                                                                          decimal percentage,
                                                                                                          int bundleId,
                                                                                                          decimal amount,
                                                                                                          decimal dealPrice,
                                                                                                          global::Microsoft.Dynamics.DataEntities.RetailTransactionAuditableSalesLine retailTransactionAuditableSalesLine,
                                                                                                          global::Microsoft.Dynamics.DataEntities.RetailTransactionAuditable retailTransactionAuditable)
        {
            RetailTransactionAuditableDiscountLine retailTransactionAuditableDiscountLine = new RetailTransactionAuditableDiscountLine();

            retailTransactionAuditableDiscountLine.dataAreaId          = dataAreaId;
            retailTransactionAuditableDiscountLine.OperatingUnitNumber = operatingUnitNumber;
            retailTransactionAuditableDiscountLine.StoreNumber         = storeNumber;
            retailTransactionAuditableDiscountLine.RegisterNumber      = registerNumber;
            retailTransactionAuditableDiscountLine.TransactionId       = transactionId;
            retailTransactionAuditableDiscountLine.SalesLineNumber     = salesLineNumber;
            retailTransactionAuditableDiscountLine.LineNumber          = lineNumber;
            retailTransactionAuditableDiscountLine.DiscountAmount      = discountAmount;
            retailTransactionAuditableDiscountLine.DiscountCost        = discountCost;
            retailTransactionAuditableDiscountLine.Percentage          = percentage;
            retailTransactionAuditableDiscountLine.BundleId            = bundleId;
            retailTransactionAuditableDiscountLine.Amount    = amount;
            retailTransactionAuditableDiscountLine.DealPrice = dealPrice;
            if ((retailTransactionAuditableSalesLine == null))
            {
                throw new global::System.ArgumentNullException("retailTransactionAuditableSalesLine");
            }
            retailTransactionAuditableDiscountLine.RetailTransactionAuditableSalesLine = retailTransactionAuditableSalesLine;
            if ((retailTransactionAuditable == null))
            {
                throw new global::System.ArgumentNullException("retailTransactionAuditable");
            }
            retailTransactionAuditableDiscountLine.RetailTransactionAuditable = retailTransactionAuditable;
            return(retailTransactionAuditableDiscountLine);
        }
        public static RetailTransactionAuditableChargeLine CreateRetailTransactionAuditableChargeLine(string dataAreaId,
                                                                                                      string operatingUnitNumber,
                                                                                                      string storeNumber,
                                                                                                      string registerNumber,
                                                                                                      string transactionId,
                                                                                                      decimal salesLineNumber,
                                                                                                      decimal lineNumber,
                                                                                                      decimal salesTaxAmount,
                                                                                                      decimal exclusiveTaxAmount,
                                                                                                      decimal inclusiveTaxAmount,
                                                                                                      decimal taxExemptPriceInclusiveReductionAmount,
                                                                                                      decimal calculatedAmount,
                                                                                                      decimal taxExemptPriceInclusiveOriginalPrice,
                                                                                                      decimal chargesValue,
                                                                                                      global::Microsoft.Dynamics.DataEntities.RetailTransactionAuditableSalesLine retailTransactionAuditableSalesLine,
                                                                                                      global::Microsoft.Dynamics.DataEntities.RetailTransactionAuditable retailTransactionAuditable)
        {
            RetailTransactionAuditableChargeLine retailTransactionAuditableChargeLine = new RetailTransactionAuditableChargeLine();

            retailTransactionAuditableChargeLine.dataAreaId          = dataAreaId;
            retailTransactionAuditableChargeLine.OperatingUnitNumber = operatingUnitNumber;
            retailTransactionAuditableChargeLine.StoreNumber         = storeNumber;
            retailTransactionAuditableChargeLine.RegisterNumber      = registerNumber;
            retailTransactionAuditableChargeLine.TransactionId       = transactionId;
            retailTransactionAuditableChargeLine.SalesLineNumber     = salesLineNumber;
            retailTransactionAuditableChargeLine.LineNumber          = lineNumber;
            retailTransactionAuditableChargeLine.SalesTaxAmount      = salesTaxAmount;
            retailTransactionAuditableChargeLine.ExclusiveTaxAmount  = exclusiveTaxAmount;
            retailTransactionAuditableChargeLine.InclusiveTaxAmount  = inclusiveTaxAmount;
            retailTransactionAuditableChargeLine.TaxExemptPriceInclusiveReductionAmount = taxExemptPriceInclusiveReductionAmount;
            retailTransactionAuditableChargeLine.CalculatedAmount = calculatedAmount;
            retailTransactionAuditableChargeLine.TaxExemptPriceInclusiveOriginalPrice = taxExemptPriceInclusiveOriginalPrice;
            retailTransactionAuditableChargeLine.ChargesValue = chargesValue;
            if ((retailTransactionAuditableSalesLine == null))
            {
                throw new global::System.ArgumentNullException("retailTransactionAuditableSalesLine");
            }
            retailTransactionAuditableChargeLine.RetailTransactionAuditableSalesLine = retailTransactionAuditableSalesLine;
            if ((retailTransactionAuditable == null))
            {
                throw new global::System.ArgumentNullException("retailTransactionAuditable");
            }
            retailTransactionAuditableChargeLine.RetailTransactionAuditable = retailTransactionAuditable;
            return(retailTransactionAuditableChargeLine);
        }
예제 #4
0
        public static RetailTransactionAuditableTaxLine CreateRetailTransactionAuditableTaxLine(string dataAreaId,
                                                                                                string operatingUnitNumber,
                                                                                                string registerNumber,
                                                                                                string storeNumber,
                                                                                                string transactionId,
                                                                                                decimal salesLineNumber,
                                                                                                string taxCode,
                                                                                                decimal taxPercentage,
                                                                                                decimal amount,
                                                                                                global::Microsoft.Dynamics.DataEntities.RetailTransactionAuditableSalesLine retailTransactionAuditableSalesLine,
                                                                                                global::Microsoft.Dynamics.DataEntities.RetailTransactionAuditable retailTransactionAuditable)
        {
            RetailTransactionAuditableTaxLine retailTransactionAuditableTaxLine = new RetailTransactionAuditableTaxLine();

            retailTransactionAuditableTaxLine.dataAreaId          = dataAreaId;
            retailTransactionAuditableTaxLine.OperatingUnitNumber = operatingUnitNumber;
            retailTransactionAuditableTaxLine.RegisterNumber      = registerNumber;
            retailTransactionAuditableTaxLine.StoreNumber         = storeNumber;
            retailTransactionAuditableTaxLine.TransactionId       = transactionId;
            retailTransactionAuditableTaxLine.SalesLineNumber     = salesLineNumber;
            retailTransactionAuditableTaxLine.TaxCode             = taxCode;
            retailTransactionAuditableTaxLine.TaxPercentage       = taxPercentage;
            retailTransactionAuditableTaxLine.Amount = amount;
            if ((retailTransactionAuditableSalesLine == null))
            {
                throw new global::System.ArgumentNullException("retailTransactionAuditableSalesLine");
            }
            retailTransactionAuditableTaxLine.RetailTransactionAuditableSalesLine = retailTransactionAuditableSalesLine;
            if ((retailTransactionAuditable == null))
            {
                throw new global::System.ArgumentNullException("retailTransactionAuditable");
            }
            retailTransactionAuditableTaxLine.RetailTransactionAuditable = retailTransactionAuditable;
            return(retailTransactionAuditableTaxLine);
        }