mirror of
https://github.com/KeymonSoft/Kelloggs_v4.git
synced 2026-04-20 03:29:14 +00:00
Se agrego el descuento de las condiciones comerciales, de acuerdo al tipo (salty snacks, ping y rtec) y por sku.
This commit is contained in:
@@ -1031,4 +1031,28 @@ Private Sub StartActivityForResult(i As Intent)
|
||||
ion = jo.CreateEvent("anywheresoftware.b4a.IOnActivityResult", "ion", Null)
|
||||
jo.RunMethod("startActivityForResult", Array As Object(ion, i))
|
||||
End Sub
|
||||
'################ TERMINA ENABLE BLUETOOTH #########################
|
||||
'################ TERMINA ENABLE BLUETOOTH #########################
|
||||
|
||||
'Regresa el descuento de condiciones comerciales por TIPO.
|
||||
Sub traeDescXTipo(clienteId As String, tipo As String) As String 'ignore
|
||||
Private desc As String = "0"
|
||||
Private c As Cursor = khdb.ExecQuery($"Select * from DESC_CLIENTES where DC_CL_CLIENTE = '${clienteId}'"$)
|
||||
If c.RowCount > 0 Then
|
||||
c.Position = 0
|
||||
If tipo = "PING" Then desc = c.GetString("CAT_CL_DESCUENTO_PING")
|
||||
If tipo = "RTEC" Then desc = c.GetString("CAT_CL_DESCUENTO_RTEC")
|
||||
If tipo = "SALTY SNACKS" Then desc = c.GetString("CAT_CL_DESCUENTO_SS")
|
||||
End If
|
||||
Return desc
|
||||
End Sub
|
||||
|
||||
'Regresa el descuento de condiciones comerciales por SKU.
|
||||
Sub traeDescXSku(clienteId As String, prodId As String) As String 'ignore
|
||||
Private desc As String = "0"
|
||||
Private c As Cursor = khdb.ExecQuery($"Select * from CAT_DESCUENTOS_SKU where CAT_DS_CLIENTE = '${clienteId}' and CAT_DS_PRODID = '${prodId}'"$)
|
||||
If c.RowCount > 0 Then
|
||||
c.Position = 0
|
||||
desc = c.GetString("CAT_DS_PORCENTAJE")
|
||||
End If
|
||||
Return desc
|
||||
End Sub
|
||||
Reference in New Issue
Block a user