public fx_GeneradorXML_Comprobante_Info(string _IdComprobante, DateTime _Fecha, eTipoComprobante _TipoCbte , string _Observacion, comprobanteRetencion _cbteRet) { IdComprobante = _IdComprobante; Fecha = _Fecha; TipoCbte = _TipoCbte; Observacion = _Observacion; cbteRet = _cbteRet; }
public fx_GeneradorXML_Comprobante_Info(string _IdComprobante, DateTime _Fecha, eTipoComprobante _TipoCbte , string _Observacion, notaDebito _cbteDeb) { IdComprobante = _IdComprobante; Fecha = _Fecha; TipoCbte = _TipoCbte; Observacion = _Observacion; cbteDeb = _cbteDeb; }
public fx_GeneradorXML_Comprobante_Info(string _IdComprobante, DateTime _Fecha, eTipoComprobante _TipoCbte , string _Observacion, guiaRemision _cbtGR) { IdComprobante = _IdComprobante; Fecha = _Fecha; TipoCbte = _TipoCbte; Observacion = _Observacion; cbtGR = _cbtGR; }
public fx_GeneradorXML_Comprobante_Info(string _IdComprobante, DateTime _Fecha, eTipoComprobante _TipoCbte , string _Observacion, factura _CbteFactura) { IdComprobante = _IdComprobante; Fecha = _Fecha; TipoCbte = _TipoCbte; Observacion = _Observacion; CbteFactura = _CbteFactura; }
public static void MostrarTotalFacturado(List <Factura> lista, eTipoComprobante tipo) { decimal acumulado = 0; foreach (Factura fac in lista) { if (fac is FacturaDeCompra && tipo == eTipoComprobante.Compra) { acumulado += fac.TotalFacturado; } else if (fac is FacturaDeVenta && tipo == eTipoComprobante.Venta) { acumulado += fac.TotalFacturado; } } Console.WriteLine("Monto: {0}", acumulado); }
public DevExpress.XtraReports.UI.XtraReport Optener_reporte(int IdEmpresa, string IdComprobante, eTipoComprobante IdTipoDocumento , string IdEstado_cbte, ref string mensajeErrorOut) { try { tb_Comprobante_Bus BusCbte = new tb_Comprobante_Bus(); XtraReport Reporte = new XtraReport(); factura InfoFactura = new factura(); InfoFactura = BusCbte.consultar_Factura(IdEmpresa, IdComprobante, "01", IdEstado_cbte, ref mensajeErrorOut); Reporte = OBusReporte.Optener_reporte(InfoFactura); return(Reporte); // break; // case eTipoComprobante.NotaCredito: // notaCredito InfoNotaCred = new notaCredito(); // InfoNotaCred = BusCbte.consultar_NotaCredito(IdEmpresa, IdComprobante, "04", IdEstado_cbte, ref mensajeErrorOut); // break; // case eTipoComprobante.NotaDebito: // notaDebito InfoNotaDeb = new notaDebito(); // InfoNotaDeb = BusCbte.consultar_NotaDebito(IdEmpresa, IdComprobante, "05", IdEstado_cbte, ref mensajeErrorOut); // break; // case eTipoComprobante.Guia: // guiaRemision InfoGuia = new guiaRemision(); // InfoGuia = BusCbte.consultar_Guia(IdEmpresa, IdComprobante, "06", IdEstado_cbte, ref mensajeErrorOut); // break; // case eTipoComprobante.Retencion: // comprobanteRetencion InfoCbteRet = new comprobanteRetencion(); // InfoCbteRet = BusCbte.consultar_Retencion(IdEmpresa, IdComprobante, "06", IdEstado_cbte, ref mensajeErrorOut); // break; //} } catch (Exception ex) { return(new XtraReport()); } }