public void InsertPurchaseOrderHeaderInterface(DatabasePurchaseOrderReceiptHeader databaseIntegrationsInventoryAdjustment) { using (var connection = DatabaseConnectionFactory.GetNbxWebConnection()) { connection.Insert(databaseIntegrationsInventoryAdjustment); } }
public int InsertDatabasePoReceiptHeader(DatabasePurchaseOrderReceiptHeader databasePurchaseReceiptHeader) { using (var connection = DatabaseConnectionFactory.GetNbxWebConnection()) { connection.Open(); return((int)connection.Insert(databasePurchaseReceiptHeader)); } }
private int ProcessPurchaseOrderHeader(PurchaseOrderGeneralLedger firstRecordInGrouping) { var header = new DatabasePurchaseOrderReceiptHeader { SenderID = PurchaseOrderInterfaceSenderId, RecipientID = PurchaseOrderInterfaceRecipientId, TransactionDate = firstRecordInGrouping.Shippeddatetimereference }; return(_databaseRepository.InsertDatabasePoReceiptHeader(header)); }