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.Order", valueDate, officeId, userId, loginId, referenceNumber, statementReference, stockMaster, details, transactionIdCollection, attachments, nonTaxable); return(nonGlStockMasterId); }
public static long Add(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("Sales.Quotation", valueDate, CurrentSession.GetOfficeId(), CurrentSession.GetUserId(), CurrentSession.GetLogOnId(), referenceNumber, statementReference, stockMaster, details, transactionIdCollection, attachments, nonTaxable); return(nonGlStockMasterId); }