public HRobItem() { this.salesAccount = new ChartOfAccount(); this.cGSAccount = new ChartOfAccount(); this.invenotryAccount = new ChartOfAccount(); this.item = new Item(); }
public QuoteLineItem() { this.item = new Item(); this.job = new Job(); this.lineitemTax = new ItemTaxesType(); this.lineitemAccount = new ChartOfAccount(); this.quote = new Quote(); this.priceLevel = new PriceLevel(); }
public SaleOrderlineItem() { this.item = new Item(); this.job = new Job(); this.lineitemTax = new ItemTaxesType(); this.lineitemAccount = new ChartOfAccount(); this.saleorder = new SaleOrder(); this.priceLevel = new PriceLevel(); this.FrameColor = new AttributeLineItem(); }
public override bool Equals(object obj) { ChartOfAccount account = obj as ChartOfAccount; if (account == null) { return(false); } return((this.AccountId == account.AccountId) || (this.type == account.type)); }
public Item() { this.priceLevels = new List <PriceLevel>(); this.salesAccount = new ChartOfAccount(); this.taxType = new List <ItemTaxesType>(); this.cGSAccount = new ChartOfAccount(); this.inventoryAccount = new ChartOfAccount(); this.itemComponents = new List <ItemComponent>(); this.PrimaryAttribute = new ItemAttribute(); this.SecondaryAttribute = new ItemAttribute(); }
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 Quote() { this.customer = new Customer(); this.salestaxCode = new SalesTaxCode(); this.lineItems = new List <QuoteLineItem>(); this.arAccount = new ChartOfAccount(); this.freightAccount = new ChartOfAccount(); this.salesRep = new SalesPerson(); this.shipVia = new ShipVia(); this.shipAddress = new ShipAddress(); this.hRobItems = new List <HRobItem>(); }
public Item(string itemid, string saleDes, string upcsku, string stockUM, Decimal weight, string guid, short curTax, short curPrice, ItemClass itClass, ChartOfAccount acc) : this() { this.itemId = itemid; this.saleDescription = saleDes; this.upcsku = upcsku; this.stockingUMID = stockUM; this.weight = weight; this.guId = guid; this.itemClass = itClass; this.currentPrice = curPrice; this.currenttaxType = curTax; this.salesAccount = acc; }
public int IsAccountExist(ChartOfAccount chr, List <ChartOfAccount> chrs) { if (chr != null) { for (int i = 0; i < chrs.Count; i++) { if (chrs[i].AccountId == chr.AccountId) { return(i); } } } return(-1); }
public SaleInvoice() { this.customer = new Customer(); this.salestaxCode = new SalesTaxCode(); this.lineItems = new List <SaleInvoiceLineItem>(); this.arAccount = new ChartOfAccount(); this.freightAccount = new ChartOfAccount(); this.salesRep = new SalesPerson(); this.shipVia = new ShipVia(); this.shipAddress = new ShipAddress(); this.hRobItems = new List <HRobItem>(); this.Receipt = new Receipt(); this.TimeTickets = new List <TimeTicket>(); }
public void HasEmptyGLAccount(ChartOfAccount chr) { foreach (QuoteLineItem item in this.lineItems) { if (item.LineitemAccount != null) { if ((item.LineitemAccount.AccountId == null) || (item.LineitemAccount.AccountId == "")) { item.LineitemAccount = chr; } } else if (item.LineitemAccount == null) { item.LineitemAccount = chr; } } }