public CuentaCondicionesDeVenta GetCondicionesDeVenta(string CodigoCuenta) { string IdCuenta = tsa_Cuentas.GetPkByUk(CodigoCuenta); _idCuenta = IdCuenta; CuentaCondicionesDeVenta condiciones = new CuentaCondicionesDeVenta(); tsa_CondicionesDeVentasDataset Datacv = tsa_CondicionesDeVentas.GetList(); foreach (tsa_CondicionesDeVentasDataset.tsa_CondicionesDeVentasRow Rowcv in Datacv.tsa_CondicionesDeVentas.Rows) { /* Silvina 20100602 - Tarea 777 */ Cuentas ctas = tsa_CuentasCondicionesDeVenta_TDCompTesoreria.GetCuentas(Rowcv.IdCondicionDeVenta); if ((ctas.Count != 0) && ((Cuenta)ctas[0]).MetodoDeAsignacion.ToUpper().Equals("I")) { /* Fin Silvina */ CuentaCondicionDeVenta condicion = new CuentaCondicionDeVenta(); condicion.Descripcion = Rowcv.Descripcion; condicion.IdCondicionDeVenta = Rowcv.IdCondicionDeVenta; condicion.Valor = businessrules.tsa_CuentasCondicionesDeVenta_TDCompTesoreria.GetActivo(IdCuenta, Rowcv.IdCondicionDeVenta, null); condiciones.AddProductoImpuesto(condicion); } } return(condiciones); }
public void AddProductoImpuesto(CuentaCondicionDeVenta ccv) { this.Add(ccv); }