partial void OnInventoryCountingJournalHeaderChanging(global::Microsoft.Dynamics.DataEntities.InventoryCountingJournalHeader value);
public static InventoryCountingJournalLine CreateInventoryCountingJournalLine(string dataAreaId, string journalNumber, decimal lineNumber, decimal countedCatchWeightQuantity, decimal adjustmentQuantity, decimal onHandQuantity, decimal countedQuantity, decimal adjustmentCatchWeightQuantity, global::System.DateTimeOffset countingDate, decimal onHandCatchWeightQuantity, global::Microsoft.Dynamics.DataEntities.InventoryCountingJournalHeader inventoryCountingJournalHeader) { InventoryCountingJournalLine inventoryCountingJournalLine = new InventoryCountingJournalLine(); inventoryCountingJournalLine.dataAreaId = dataAreaId; inventoryCountingJournalLine.JournalNumber = journalNumber; inventoryCountingJournalLine.LineNumber = lineNumber; inventoryCountingJournalLine.CountedCatchWeightQuantity = countedCatchWeightQuantity; inventoryCountingJournalLine.AdjustmentQuantity = adjustmentQuantity; inventoryCountingJournalLine.OnHandQuantity = onHandQuantity; inventoryCountingJournalLine.CountedQuantity = countedQuantity; inventoryCountingJournalLine.AdjustmentCatchWeightQuantity = adjustmentCatchWeightQuantity; inventoryCountingJournalLine.CountingDate = countingDate; inventoryCountingJournalLine.OnHandCatchWeightQuantity = onHandCatchWeightQuantity; if ((inventoryCountingJournalHeader == null)) { throw new global::System.ArgumentNullException("inventoryCountingJournalHeader"); } inventoryCountingJournalLine.InventoryCountingJournalHeader = inventoryCountingJournalHeader; return(inventoryCountingJournalLine); }