Exemplo n.º 1
0
        public static SalesAgreementLineNote CreateSalesAgreementLineNote(string dataAreaId,
                                                                          string salesAgreementId,
                                                                          decimal lineNumber,
                                                                          string documentAttachmentTypeCode,
                                                                          string attachmentDescription,
                                                                          global::System.DateTimeOffset attachedDateTime,
                                                                          global::Microsoft.Dynamics.DataEntities.SalesAgreementLine salesAgreementLine)
        {
            SalesAgreementLineNote salesAgreementLineNote = new SalesAgreementLineNote();

            salesAgreementLineNote.dataAreaId                 = dataAreaId;
            salesAgreementLineNote.SalesAgreementId           = salesAgreementId;
            salesAgreementLineNote.LineNumber                 = lineNumber;
            salesAgreementLineNote.DocumentAttachmentTypeCode = documentAttachmentTypeCode;
            salesAgreementLineNote.AttachmentDescription      = attachmentDescription;
            salesAgreementLineNote.AttachedDateTime           = attachedDateTime;
            if ((salesAgreementLine == null))
            {
                throw new global::System.ArgumentNullException("salesAgreementLine");
            }
            salesAgreementLineNote.SalesAgreementLine = salesAgreementLine;
            return(salesAgreementLineNote);
        }
Exemplo n.º 2
0
 partial void OnSalesAgreementLineChanging(global::Microsoft.Dynamics.DataEntities.SalesAgreementLine value);
        public static SalesAgreementLinesFulfillment CreateSalesAgreementLinesFulfillment(string dataAreaId,
                                                                                          string salesAgreementId,
                                                                                          decimal lineNumber,
                                                                                          decimal releasedCatchWeightQuantity,
                                                                                          decimal remainingAmount,
                                                                                          decimal invoicedAmount,
                                                                                          decimal committedQuantity,
                                                                                          decimal deliveredAmount,
                                                                                          decimal remainingQuantity,
                                                                                          decimal invoicedCatchWeightQuantity,
                                                                                          decimal deliveredQuantity,
                                                                                          decimal remainingCatchWeightQuantity,
                                                                                          decimal releasedQuantity,
                                                                                          decimal releasedAmount,
                                                                                          decimal deliveredCatchWeightQuantity,
                                                                                          decimal committedCatchWeightQuantity,
                                                                                          decimal invoicedQuantity,
                                                                                          decimal committedAmount,
                                                                                          global::Microsoft.Dynamics.DataEntities.SalesAgreementLine salesAgreementLine)
        {
            SalesAgreementLinesFulfillment salesAgreementLinesFulfillment = new SalesAgreementLinesFulfillment();

            salesAgreementLinesFulfillment.dataAreaId                   = dataAreaId;
            salesAgreementLinesFulfillment.SalesAgreementId             = salesAgreementId;
            salesAgreementLinesFulfillment.LineNumber                   = lineNumber;
            salesAgreementLinesFulfillment.ReleasedCatchWeightQuantity  = releasedCatchWeightQuantity;
            salesAgreementLinesFulfillment.RemainingAmount              = remainingAmount;
            salesAgreementLinesFulfillment.InvoicedAmount               = invoicedAmount;
            salesAgreementLinesFulfillment.CommittedQuantity            = committedQuantity;
            salesAgreementLinesFulfillment.DeliveredAmount              = deliveredAmount;
            salesAgreementLinesFulfillment.RemainingQuantity            = remainingQuantity;
            salesAgreementLinesFulfillment.InvoicedCatchWeightQuantity  = invoicedCatchWeightQuantity;
            salesAgreementLinesFulfillment.DeliveredQuantity            = deliveredQuantity;
            salesAgreementLinesFulfillment.RemainingCatchWeightQuantity = remainingCatchWeightQuantity;
            salesAgreementLinesFulfillment.ReleasedQuantity             = releasedQuantity;
            salesAgreementLinesFulfillment.ReleasedAmount               = releasedAmount;
            salesAgreementLinesFulfillment.DeliveredCatchWeightQuantity = deliveredCatchWeightQuantity;
            salesAgreementLinesFulfillment.CommittedCatchWeightQuantity = committedCatchWeightQuantity;
            salesAgreementLinesFulfillment.InvoicedQuantity             = invoicedQuantity;
            salesAgreementLinesFulfillment.CommittedAmount              = committedAmount;
            if ((salesAgreementLine == null))
            {
                throw new global::System.ArgumentNullException("salesAgreementLine");
            }
            salesAgreementLinesFulfillment.SalesAgreementLine = salesAgreementLine;
            return(salesAgreementLinesFulfillment);
        }