public override bool Equals(object obj) { SaleInvoice invoice = obj as SaleInvoice; if (invoice == null) { return(false); } return(invoice.saleInvoiceNo == this.saleInvoiceNo); }
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(); }
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; } }