Пример #1
0
        public static long Add(string catalog, int officeId, int userId, long loginId, DateTime valueDate,
            string partyCode, int priceTypeId, Collection<StockDetail> details, string referenceNumber,
            string statementReference, Collection<long> transactionIdCollection, Collection<Attachment> attachments,
            bool nonTaxable, int salesPersonId, int shipperId, string shippingAddressCode, int storeId)
        {
            StockMaster stockMaster = new StockMaster();

            stockMaster.PartyCode = partyCode;
            stockMaster.PriceTypeId = priceTypeId;
            stockMaster.SalespersonId = salesPersonId;
            stockMaster.ShipperId = shipperId;
            stockMaster.ShippingAddressCode = shippingAddressCode;
            stockMaster.StoreId = storeId;

            long nonGlStockMasterId = NonGlStockTransaction.Add(catalog, "Sales.Quotation", valueDate, officeId, userId,
                loginId, referenceNumber, statementReference, stockMaster, details, transactionIdCollection, attachments,
                nonTaxable);
            return nonGlStockMasterId;
        }
Пример #2
0
        public static long Add(string catalog, int officeId, int userId, long loginId, DateTime valueDate,
                               string partyCode, int priceTypeId, Collection <StockDetail> details, string referenceNumber,
                               string statementReference, Collection <long> transactionIdCollection, Collection <Attachment> attachments,
                               bool nonTaxable, int salesPersonId, int shipperId, string shippingAddressCode, int storeId)
        {
            StockMaster stockMaster = new StockMaster();

            stockMaster.PartyCode           = partyCode;
            stockMaster.PriceTypeId         = priceTypeId;
            stockMaster.SalespersonId       = salesPersonId;
            stockMaster.ShipperId           = shipperId;
            stockMaster.ShippingAddressCode = shippingAddressCode;
            stockMaster.StoreId             = storeId;

            long nonGlStockMasterId = NonGlStockTransaction.Add(catalog, "Sales.Quotation", valueDate, officeId, userId,
                                                                loginId, referenceNumber, statementReference, stockMaster, details, transactionIdCollection, attachments,
                                                                nonTaxable);

            return(nonGlStockMasterId);
        }
Пример #3
0
        public static long Add(string catalog, int officeId, int userId, long loginId, DateTime valueDate, int storeId,
            string partyCode, int priceTypeId, int paymentTermId, Collection<StockDetail> details, int shipperId,
            string shippingAddressCode, decimal shippingCharge, int costCenterId, string referenceNumber, int agentId,
            string statementReference, Collection<long> tranIds, Collection<Attachment> attachments, bool nonTaxable)
        {
            StockMaster stockMaster = new StockMaster();

            stockMaster.PartyCode = partyCode;
            stockMaster.IsCredit = true; //Credit
            stockMaster.PaymentTermId = paymentTermId;

            stockMaster.PriceTypeId = priceTypeId;
            stockMaster.ShipperId = shipperId;
            stockMaster.ShippingAddressCode = shippingAddressCode;
            stockMaster.ShippingCharge = shippingCharge;
            stockMaster.SalespersonId = agentId;
            stockMaster.StoreId = storeId;

            long transactionMasterId = GlTransaction.Add(catalog, "Sales.Delivery", valueDate, officeId, userId, loginId,
                costCenterId, referenceNumber, statementReference, stockMaster, details, attachments, nonTaxable,
                tranIds);

            return transactionMasterId;
        }
Пример #4
0
        public static long Add(string catalog, int officeId, int userId, long loginId, DateTime valueDate, int storeId,
                               string partyCode, int priceTypeId, int paymentTermId, Collection <StockDetail> details, int shipperId,
                               string shippingAddressCode, decimal shippingCharge, int costCenterId, string referenceNumber, int agentId,
                               string statementReference, Collection <long> tranIds, Collection <Attachment> attachments, bool nonTaxable)
        {
            StockMaster stockMaster = new StockMaster();

            stockMaster.PartyCode     = partyCode;
            stockMaster.IsCredit      = true; //Credit
            stockMaster.PaymentTermId = paymentTermId;

            stockMaster.PriceTypeId         = priceTypeId;
            stockMaster.ShipperId           = shipperId;
            stockMaster.ShippingAddressCode = shippingAddressCode;
            stockMaster.ShippingCharge      = shippingCharge;
            stockMaster.SalespersonId       = agentId;
            stockMaster.StoreId             = storeId;

            long transactionMasterId = GlTransaction.Add(catalog, "Sales.Delivery", valueDate, officeId, userId, loginId,
                                                         costCenterId, referenceNumber, statementReference, stockMaster, details, attachments, nonTaxable,
                                                         tranIds);

            return(transactionMasterId);
        }