public string Facturar(ProcTicket ticket) { Factura FB = new FacturaBematech(); string numerofact = FB.Facturar(ticket); return(numerofact); }
private void ajustaiva(ProcTicket ticket) { DetalleFacturaManager fMng = new DetalleFacturaManager(); foreach (TicketDetalle t in ticket.lista) { t.Factura = ticket.totales.factura; t.Montoiva = t.Monto * (ticket.totales.IvaPercent / 100); } }
// The "Template method" public string Facturar(ProcTicket ticket) { cliente = ticket.totales.cliente; lista = ticket.lista; totales = ticket.totales; Header(); DatosCliente(); VendeProductos(); Descuento(); Pagos(); CierraFactura(); isAnulada(); string NumeroDoc = " "; int n = GetLast(ref NumeroDoc); return(NumeroDoc); }
private void Insertadetalles(ProcTicket ticket, string Numero) { DetalleFacturaManager fMng = new DetalleFacturaManager(); foreach (TicketDetalle t in ticket.lista) { fMng.Insert( new DetalleFacturaDTO { Cant = t.Cant, Codigoproducto = t.Codigoproducto, Factura = Numero, Iva = t.Montoiva, Monto = t.Monto, Nota = t.Nota, Id = 0 }); } }
public DocumentManager(ProcTicket ticket) { ticketDoc = ticket; }