Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            SaleInvoice invoice = obj as SaleInvoice;

            if (invoice == null)
            {
                return(false);
            }
            return(invoice.saleInvoiceNo == this.saleInvoiceNo);
        }
Ejemplo n.º 2
0
 public SaleInvoiceLineItem(SaleInLineItemType lineItemType)
 {
     this.saleInvoiceLineItemType = lineItemType;
     this.item            = new Item();
     this.job             = new Job();
     this.lineitemTax     = new ItemTaxesType();
     this.lineitemAccount = new ChartOfAccount();
     this.priceLevel      = new PriceLevel();
     this.saleInvoice     = new SaleInvoice();
     this.usedPriceLevel  = new PriceLevel();
     this.FrameColor      = new AttributeLineItem();
 }
Ejemplo n.º 3
0
 public void AssignToLineItem(SaleInvoice si)
 {
     try
     {
         if (this.lineItems == null)
         {
             this.lineItems = new List <SaleInvoiceLineItem>();
         }
         foreach (SaleInvoiceLineItem item in this.lineItems)
         {
             item.SaleInvoice = si;
         }
     }
     catch (Exception)
     {
         throw;
     }
 }