Beispiel #1
0
 /// <summary>
 ///     设置订单行
 /// </summary>
 /// <param name="orderLine">订单行</param>
 public void SetOrderLine(OrderLine orderLine)
 {
     if (orderLine != null)
     {
         OrderLineId = orderLine.Id;
     }
 }
Beispiel #2
0
        /// <summary>
        ///     添加发票行
        /// </summary>
        /// <param name="amount">金额</param>
        /// <param name="orderLine">订单行</param>
        /// <param name="note">备注</param>
        /// <returns>发票行</returns>
        public PurchaseInvoiceLine AddInvoiceLine( decimal amount, OrderLine orderLine, string note)
        {
            var invoiceLine = new PurchaseInvoiceLine();
            invoiceLine.SetAmount(amount);
            invoiceLine.SetNote(note);
            invoiceLine.GenerateNewIdentity();
            invoiceLine.SetOrderLine(orderLine);

            InvoiceLines.Add(invoiceLine);

            return invoiceLine;
        }