public static InvoiceSubLineV2 CreateInvoiceSubLineV2(string dataAreaId, string productReceiptNumber, string invoiceLineReference, string purchaseOrder, decimal invoiceLineNumber, long purchaseOrderLineNumber, decimal purchaseQuantity, global::Microsoft.Dynamics.DataEntities.VendorInvoiceLine vendorInvoiceLine) { InvoiceSubLineV2 invoiceSubLineV2 = new InvoiceSubLineV2(); invoiceSubLineV2.dataAreaId = dataAreaId; invoiceSubLineV2.ProductReceiptNumber = productReceiptNumber; invoiceSubLineV2.InvoiceLineReference = invoiceLineReference; invoiceSubLineV2.PurchaseOrder = purchaseOrder; invoiceSubLineV2.InvoiceLineNumber = invoiceLineNumber; invoiceSubLineV2.PurchaseOrderLineNumber = purchaseOrderLineNumber; invoiceSubLineV2.PurchaseQuantity = purchaseQuantity; if ((vendorInvoiceLine == null)) { throw new global::System.ArgumentNullException("vendorInvoiceLine"); } invoiceSubLineV2.VendorInvoiceLine = vendorInvoiceLine; return(invoiceSubLineV2); }
partial void OnVendorInvoiceLineChanging(global::Microsoft.Dynamics.DataEntities.VendorInvoiceLine value);