public Expense NewItem(Expedient parent) { Expense item = Expense.NewChild(parent); SetNextCode(parent, item); this.AddItem(item); parent.UpdateGastosPartidas(true); return(item); }
public void EditItem(Expedient parent, InputInvoiceInfo fac, Expense gasto, bool throwStockException) { if (gasto == null) { return; } gasto.CopyFrom(parent, fac, gasto.ECategoriaGasto); parent.UpdateGastosPartidas(throwStockException); }
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); }