Exemple #1
0
        public Expense NewItem(Expedient parent)
        {
            Expense item = Expense.NewChild(parent);

            SetNextCode(parent, item);
            this.AddItem(item);
            parent.UpdateGastosPartidas(true);
            return(item);
        }
Exemple #2
0
 public void EditItem(Expedient parent, InputInvoiceInfo fac, Expense gasto, bool throwStockException)
 {
     if (gasto == null)
     {
         return;
     }
     gasto.CopyFrom(parent, fac, gasto.ECategoriaGasto);
     parent.UpdateGastosPartidas(throwStockException);
 }
Exemple #3
0
        public void Remove(Expedient parent, InputInvoice fac)
        {
            List <Expense> gastos = new List <Expense>();

            foreach (Expense item in gastos)
            {
                if (item.OidFactura == fac.Oid)
                {
                    gastos.Add(item);
                }
            }

            foreach (Expense item in Items)
            {
                base.Remove(item);
            }

            parent.UpdateGastosPartidas(true);
        }
 protected void SetGastoPrincipalAction(InputInvoiceInfo item)
 {
     _entity.SetGasto(item);
     _entity.UpdateGastosPartidas(true);
 }