mirror of
https://github.com/KeymonSoft/Lanterna.git
synced 2026-04-20 06:09:16 +00:00
- Se agregó la busqueda de productos.
- Se agregó el IVA al ticket de cierre de mesa. - Se agregó alimentos varios y bebidas varias.
This commit is contained in:
11
B4A/Subs.bas
11
B4A/Subs.bas
@@ -1165,12 +1165,17 @@ End Sub
|
||||
Sub traeTotalTicketActual_P(tipoPago As String) As String
|
||||
Private st As String = 0
|
||||
Private desc As String = 0
|
||||
Private p As Cursor = Starter.skmt.ExecQuery($"select PE_COSTO_TOT, ifnull(PE_DESC, 0) as DESC, CAT_GP_TIPO from PEDIDO join CAT_GUNAPROD on CAT_GP_ID = PE_PROID where PE_TICKET = '${Starter.ticketActual}' and PE_MESA = '${Starter.mesaActual}' and PE_TIPO = '${tipoPago}'"$)
|
||||
Private p As Cursor = Starter.skmt.ExecQuery($"select PE_COSTO_TOT, ifnull(PE_DESC, 0) as DESC, CAT_GP_NOMBRE, CAT_GP_TIPO from PEDIDO join CAT_GUNAPROD on CAT_GP_ID = PE_PROID where PE_TICKET = '${Starter.ticketActual}' and PE_MESA = '${Starter.mesaActual}' and PE_TIPO = '${tipoPago}'"$)
|
||||
' Log($"${p.RowCount} - select PE_COSTO_TOT, ifnull(PE_DESC, 0) as DESC, CAT_GP_TIPO from PEDIDO join CAT_GUNAPROD on CAT_GP_ID = PE_PROID where PE_TICKET = '${Starter.ticketActual}' and PE_MESA = '${Starter.mesaActual}' and PE_TIPO = '${tipoPago}'"$)
|
||||
If p.RowCount > 0 Then
|
||||
For j = 0 To p.RowCount - 1
|
||||
p.Position = j
|
||||
desc = p.GetString("DESC") / 100
|
||||
If p.GetString("CAT_GP_TIPO") = "ALIMENTOS" Then
|
||||
desc = p.GetString("DESC") / 100
|
||||
Else
|
||||
desc = 0
|
||||
End If
|
||||
' Log(">>>>>>> " & p.GetString("CAT_GP_NOMBRE") & " - " & (p.GetString("PE_COSTO_TOT") * desc))
|
||||
st = st + (p.GetString("PE_COSTO_TOT") - (p.GetString("PE_COSTO_TOT") * desc))
|
||||
Next
|
||||
End If
|
||||
@@ -1409,7 +1414,7 @@ End Sub
|
||||
Sub traeSubCategorias(cat As String) As List
|
||||
Private c As Cursor = Starter.skmt.ExecQuery($"select distinct CAT_GP_CLASIF from CAT_GUNAPROD where CAT_GP_TIPO = '${cat}' order by CAT_GP_CLASIF"$)
|
||||
Private l As List
|
||||
Log(c.RowCount)
|
||||
' Log(c.RowCount)
|
||||
If c.RowCount > 0 Then
|
||||
l.Initialize
|
||||
For i = 0 To c.RowCount - 1
|
||||
|
||||
Reference in New Issue
Block a user