public override void EmiteNotadeCredito(string facturaNo) { ClienteManager Cm = new ClienteManager(); totales = new TotalapagarView(); totales.cliente = Cm.GetCliente(facturaNo); Cliente cliente = totales.cliente; TicketDetalleManager TDMNgr = new TicketDetalleManager(); lista = TDMNgr.GetList(facturaNo); string NumeroSerial = new string(' ', 15); int iRetorno = BemaFI32.Bematech_FI_NumeroSerie(ref NumeroSerial); DateTime cDate = DateTime.Now; var cDia = cDate.Day.ToString("D2"); var cMes = cDate.Month.ToString("D2"); var cAno = cDate.Year.ToString().Substring(2, 2); var cHora = cDate.Hour.ToString("D2"); var cMinuto = cDate.Minute.ToString("D2"); var cSegundo = cDate.Second.ToString("D2"); var cCOO = facturaNo; iRetorno = BemaFI32.Bematech_FI_AbreNotaDeCredito(cliente.Nombre, NumeroSerial, cliente.Identificacion, cDia, cMes, cAno, cHora, cMinuto, cSegundo, cCOO); VendeProductos(); Descuento(); iRetorno = BemaFI32.Bematech_FI_FinalizarCierreCupon("Gracias, vuelva siempre !!!"); }
private void InsertarPagos(TotalapagarView totales) { PagoManager pMng = new PagoManager(); foreach (PagoView p in totales.ListaPagos) { pMng.Insert(new PagoDTO { Factura = totales.factura, Cambio = p.cambio, Montopago = p.montopago, Tipopago = p.tipopago, Nota = p.nota }); } }
public TotalForm(Mesa mesa, Decimal paymentAmount, Decimal exento, Ivatipo G) { InitializeComponent(); //getPaymentParams(paymentAmount, G); TotalesPago = new TotalapagarView(); TotalesPago.mesa = mesa; TotalesPago.totalNeto = paymentAmount; TotalesPago.servicio = exento; calculaValores(G); //calculaValores(Ivatipo.Reducido); displaytotales(); workerObject.DoWork += new DoWorkEventHandler(WorkerObject_DoWork); workerObject.RunWorkerCompleted += WorkerObject_RunWorkerCompleted; }
// 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); }
public ProcTicket() { lista = new List <TicketDetalle>(); totales = new TotalapagarView(); ticketNro = 0; }
public DescuentoDialog(TotalapagarView Totales) { totales = Totales; InitializeComponent(); }