예제 #1
0
 /// <summary>
 ///     设置维修发票行属性
 /// </summary>
 /// <param name="paymentNoticeLine">维修发票行</param>
 /// <param name="invoiceType">发票类型</param>
 /// <param name="invoiceId">发票Id</param>
 /// <param name="invoiceNumber">发票编号</param>
 /// <param name="amount">数量</param>
 /// <param name="note">备注</param>
 public static void SetPaymentNoticeLine(PaymentNoticeLine paymentNoticeLine, int invoiceType, int invoiceId,
     string invoiceNumber, decimal amount, string note)
 {
     paymentNoticeLine.SetInvoice(invoiceId, invoiceNumber, (InvoiceType)invoiceType);
     paymentNoticeLine.Amount = amount;
     paymentNoticeLine.Note = note;
 }
예제 #2
0
        /// <summary>
        ///     添加付款通知行
        /// </summary>
        /// <param name="amount">金额</param>
        /// <param name="invoice">发票</param>
        /// <param name="note">备注</param>
        /// <returns></returns>
        public PaymentNoticeLine AddPaymentNoticeLine(decimal amount, Invoice invoice, string note)
        {
            var paymentNoticeLine = new PaymentNoticeLine
            {
                Amount = amount,
                Note = note
            };

            paymentNoticeLine.GenerateNewIdentity();
            paymentNoticeLine.SetInvoice(invoice);

            return paymentNoticeLine;
        }