public static PurchaseOrderHeaderCharge CreatePurchaseOrderHeaderCharge(string dataAreaId,
                                                                                string purchaseOrderNumber,
                                                                                decimal chargeLineNumber,
                                                                                decimal proportionalChargeAmount,
                                                                                decimal chargePercentage,
                                                                                decimal fixedChargeAmount,
                                                                                decimal externalChargeAmount,
                                                                                global::Microsoft.Dynamics.DataEntities.PurchaseOrderHeaderV2 purchaseOrderHeaderV2,
                                                                                global::Microsoft.Dynamics.DataEntities.Currency currency)
        {
            PurchaseOrderHeaderCharge purchaseOrderHeaderCharge = new PurchaseOrderHeaderCharge();

            purchaseOrderHeaderCharge.dataAreaId               = dataAreaId;
            purchaseOrderHeaderCharge.PurchaseOrderNumber      = purchaseOrderNumber;
            purchaseOrderHeaderCharge.ChargeLineNumber         = chargeLineNumber;
            purchaseOrderHeaderCharge.ProportionalChargeAmount = proportionalChargeAmount;
            purchaseOrderHeaderCharge.ChargePercentage         = chargePercentage;
            purchaseOrderHeaderCharge.FixedChargeAmount        = fixedChargeAmount;
            purchaseOrderHeaderCharge.ExternalChargeAmount     = externalChargeAmount;
            if ((purchaseOrderHeaderV2 == null))
            {
                throw new global::System.ArgumentNullException("purchaseOrderHeaderV2");
            }
            purchaseOrderHeaderCharge.PurchaseOrderHeaderV2 = purchaseOrderHeaderV2;
            if ((currency == null))
            {
                throw new global::System.ArgumentNullException("currency");
            }
            purchaseOrderHeaderCharge.Currency = currency;
            return(purchaseOrderHeaderCharge);
        }
Esempio n. 2
0
        public static CDSPurchaseOrderSoftDeletedLine CreateCDSPurchaseOrderSoftDeletedLine(string dataAreaId, string purchaseOrderNumber, long lineNumber, global::Microsoft.Dynamics.DataEntities.PurchaseOrderHeaderV2 purchaseOrderHeaderV2)
        {
            CDSPurchaseOrderSoftDeletedLine cDSPurchaseOrderSoftDeletedLine = new CDSPurchaseOrderSoftDeletedLine();

            cDSPurchaseOrderSoftDeletedLine.dataAreaId          = dataAreaId;
            cDSPurchaseOrderSoftDeletedLine.PurchaseOrderNumber = purchaseOrderNumber;
            cDSPurchaseOrderSoftDeletedLine.LineNumber          = lineNumber;
            if ((purchaseOrderHeaderV2 == null))
            {
                throw new global::System.ArgumentNullException("purchaseOrderHeaderV2");
            }
            cDSPurchaseOrderSoftDeletedLine.PurchaseOrderHeaderV2 = purchaseOrderHeaderV2;
            return(cDSPurchaseOrderSoftDeletedLine);
        }
Esempio n. 3
0
 partial void OnPurchaseOrderHeaderV2Changing(global::Microsoft.Dynamics.DataEntities.PurchaseOrderHeaderV2 value);
Esempio n. 4
0
        public static PurchaseOrderHeaderDocumentAttachment CreatePurchaseOrderHeaderDocumentAttachment(string dataAreaId, global::System.Guid documentId, global::Microsoft.Dynamics.DataEntities.PurchaseOrderHeaderV2 purchaseOrderHeaderDocumentAttachmentEntity)
        {
            PurchaseOrderHeaderDocumentAttachment purchaseOrderHeaderDocumentAttachment = new PurchaseOrderHeaderDocumentAttachment();

            purchaseOrderHeaderDocumentAttachment.dataAreaId = dataAreaId;
            purchaseOrderHeaderDocumentAttachment.DocumentId = documentId;
            if ((purchaseOrderHeaderDocumentAttachmentEntity == null))
            {
                throw new global::System.ArgumentNullException("purchaseOrderHeaderDocumentAttachmentEntity");
            }
            purchaseOrderHeaderDocumentAttachment.PurchaseOrderHeaderDocumentAttachmentEntity = purchaseOrderHeaderDocumentAttachmentEntity;
            return(purchaseOrderHeaderDocumentAttachment);
        }
Esempio n. 5
0
 partial void OnPurchaseOrderHeaderDocumentAttachmentEntityChanging(global::Microsoft.Dynamics.DataEntities.PurchaseOrderHeaderV2 value);