Esempio n. 1
0
 public HRobItem()
 {
     this.salesAccount     = new ChartOfAccount();
     this.cGSAccount       = new ChartOfAccount();
     this.invenotryAccount = new ChartOfAccount();
     this.item             = new Item();
 }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
 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();
 }
Esempio n. 4
0
        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));
        }
Esempio n. 5
0
 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();
 }
Esempio n. 7
0
 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>();
 }
Esempio n. 8
0
 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;
 }
Esempio n. 9
0
 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);
 }
Esempio n. 10
0
 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>();
 }
Esempio n. 11
0
 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;
         }
     }
 }