package reparto_izca.keymon.lat;

import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.pc.*;

public class c_detalleventa_subs_0 {


public static RemoteObject  _b_guardar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_guardar_Click (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,915);
if (RapidSub.canDelegate("b_guardar_click")) { return __ref.runUserSub(false, "c_detalleventa","b_guardar_click", __ref);}
 BA.debugLineNum = 915;BA.debugLine="Private Sub b_guardar_Click";
Debug.ShouldStop(262144);
 BA.debugLineNum = 917;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_prodmas_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_prodMas_Click (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,650);
if (RapidSub.canDelegate("b_prodmas_click")) { return __ref.runUserSub(false, "c_detalleventa","b_prodmas_click", __ref);}
RemoteObject _index = RemoteObject.createImmutable(0);
RemoteObject _pnl0 = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _pnl = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _lacant = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _estetag = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _maxprods = RemoteObject.createImmutable("");
RemoteObject _minimoadesc = RemoteObject.createImmutable("");
RemoteObject _minimos = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _c2 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
 BA.debugLineNum = 650;BA.debugLine="Sub b_prodMas_Click";
Debug.ShouldStop(512);
 BA.debugLineNum = 651;BA.debugLine="etCantHasFocus = False";
Debug.ShouldStop(1024);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,c_detalleventa.__c.getField(true,"False"));
 BA.debugLineNum = 653;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)";
Debug.ShouldStop(4096);
c_detalleventa.__c.runVoidMethod ("LogImpl","812451843",BA.ObjectToString("b_prodMas_Click"),c_detalleventa.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 654;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
Debug.ShouldStop(8192);
_index = __ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(true,"_getitemfromview",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), c_detalleventa.__c.runMethod(false,"Sender",__ref.getField(false, "ba"))));Debug.locals.put("index", _index);Debug.locals.put("index", _index);
 BA.debugLineNum = 655;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
Debug.ShouldStop(16384);
_pnl0 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl0 = __ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(_index));Debug.locals.put("pnl0", _pnl0);Debug.locals.put("pnl0", _pnl0);
 BA.debugLineNum = 656;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(32768);
_pnl = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl = _pnl0.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0)));Debug.locals.put("pnl", _pnl);Debug.locals.put("pnl", _pnl);
 BA.debugLineNum = 657;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)";
Debug.ShouldStop(65536);
_lacant = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_lacant = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 2))).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3)));Debug.locals.put("laCant", _lacant);Debug.locals.put("laCant", _lacant);
 BA.debugLineNum = 661;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta";
Debug.ShouldStop(1048576);
_estetag = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_estetag = c_detalleventa.__c.runMethod(false, "ArrayToList", (Object)(c_detalleventa.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(BA.ObjectToString(_lacant.runMethod(false,"getTag"))))));Debug.locals.put("esteTag", _estetag);Debug.locals.put("esteTag", _estetag);
 BA.debugLineNum = 662;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|LC_TAG:\"&laCant.Tag&";
Debug.ShouldStop(2097152);
c_detalleventa.__c.runVoidMethod ("LogImpl","812451852",RemoteObject.concat(RemoteObject.createImmutable("LC_TEXT:"),_lacant.runMethod(true,"getText"),RemoteObject.createImmutable("|LC_TAG:"),_lacant.runMethod(false,"getTag"),RemoteObject.createImmutable("|ET:"),_estetag),0);
 BA.debugLineNum = 663;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 665;BA.debugLine="Private maxProds = esteTag.Get(1) + esteTag.Get(4";
Debug.ShouldStop(16777216);
_maxprods = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 1)))),BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 4))))}, "+",1, 0));Debug.locals.put("maxProds", _maxprods);Debug.locals.put("maxProds", _maxprods);
 BA.debugLineNum = 667;BA.debugLine="LogColor($\"++++++++++++++++++++++++++   ${esteTag";
Debug.ShouldStop(67108864);
c_detalleventa.__c.runVoidMethod ("LogImpl","812451857",(RemoteObject.concat(RemoteObject.createImmutable("++++++++++++++++++++++++++   "),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_estetag.getObject()))),RemoteObject.createImmutable(""))),c_detalleventa.__c.getField(false,"Colors").getField(true,"Green"));
 BA.debugLineNum = 670;BA.debugLine="Private minimoadesc As String";
Debug.ShouldStop(536870912);
_minimoadesc = RemoteObject.createImmutable("");Debug.locals.put("minimoadesc", _minimoadesc);
 BA.debugLineNum = 671;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\"";
Debug.ShouldStop(1073741824);
_minimos = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_minimos = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))}))));Debug.locals.put("minimos", _minimos);Debug.locals.put("minimos", _minimos);
 BA.debugLineNum = 672;BA.debugLine="If minimos.RowCount > 0 Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean(">",_minimos.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 673;BA.debugLine="minimos.Position = 0";
Debug.ShouldStop(1);
_minimos.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 674;BA.debugLine="minimoadesc = minimos.GetString(\"CAT_DP_CANT_MIN";
Debug.ShouldStop(2);
_minimoadesc = _minimos.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_DP_CANT_MIN_VENTA")));Debug.locals.put("minimoadesc", _minimoadesc);
 }else {
 BA.debugLineNum = 676;BA.debugLine="minimoadesc = \"1\"";
Debug.ShouldStop(8);
_minimoadesc = BA.ObjectToString("1");Debug.locals.put("minimoadesc", _minimoadesc);
 };
 BA.debugLineNum = 678;BA.debugLine="minimos.Close";
Debug.ShouldStop(32);
_minimos.runVoidMethod ("Close");
 BA.debugLineNum = 680;BA.debugLine="minimoadesc = \"1\"";
Debug.ShouldStop(128);
_minimoadesc = BA.ObjectToString("1");Debug.locals.put("minimoadesc", _minimoadesc);
 BA.debugLineNum = 681;BA.debugLine="If esteTag.Get(7) <> \"1\" Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("!",_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 7))),RemoteObject.createImmutable(("1")))) { 
 BA.debugLineNum = 684;BA.debugLine="If esteTag.Get(5) = esteTag.Get(6) Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean("=",_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 5))),_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6))))) { 
 BA.debugLineNum = 686;BA.debugLine="If laCant.Text + 1 <= maxProds Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("k",RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0),BA.numberCast(double.class, _maxprods))) { 
 BA.debugLineNum = 687;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)";
Debug.ShouldStop(16384);
c_detalleventa.__c.runVoidMethod ("LogImpl","812451877",(RemoteObject.concat(RemoteObject.createImmutable("NuevaCant = "),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0)))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 688;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$";
Debug.ShouldStop(32768);
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable(""),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.0")),(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0)))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 689;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapro";
Debug.ShouldStop(65536);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen - 1 where cat_gp_id = ?")),(Object)(c_detalleventa.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))})))));
 BA.debugLineNum = 692;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS";
Debug.ShouldStop(524288);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update HIST_VENTAS set HVD_RECHAZO = 1,  HVD_RECHAZOCANT = HVD_RECHAZOCANT - (1*'"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_minimoadesc))),RemoteObject.createImmutable("')  WHERE HVD_PROID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and HVD_cliente in (Select CUENTA from cuentaa)  AND CONSECUTIVO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 694;BA.debugLine="Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))";
Debug.ShouldStop(2097152);
c_detalleventa._subs.runVoidMethod ("_prodventa" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 5))))),(Object)(BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))));
 BA.debugLineNum = 699;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(67108864);
__ref.runClassMethod (reparto_izca.keymon.lat.c_detalleventa.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 }else {
 BA.debugLineNum = 703;BA.debugLine="If laCant.Text + 1 <= maxProds Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("k",RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0),BA.numberCast(double.class, _maxprods))) { 
 BA.debugLineNum = 704;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)";
Debug.ShouldStop(-2147483648);
c_detalleventa.__c.runVoidMethod ("LogImpl","812451894",(RemoteObject.concat(RemoteObject.createImmutable("NuevaCant = "),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0)))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 705;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$";
Debug.ShouldStop(1);
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable(""),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.0")),(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0)))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 706;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapro";
Debug.ShouldStop(2);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen - 1 where cat_gp_id = ?")),(Object)(c_detalleventa.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))})))));
 BA.debugLineNum = 707;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PED";
Debug.ShouldStop(4);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PEDIDO WHERE PE_PROID = ? and PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8))))}))));
 BA.debugLineNum = 708;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 709;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery";
Debug.ShouldStop(16);
_c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))}))));Debug.locals.put("c2", _c2);Debug.locals.put("c2", _c2);
 BA.debugLineNum = 710;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean(">",_c2.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 711;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(64);
_c2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 713;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se";
Debug.ShouldStop(256);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)+(1*'"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_minimoadesc))),RemoteObject.createImmutable("'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0)+(1*'"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_minimoadesc))),RemoteObject.createImmutable("'))*'"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")))))),RemoteObject.createImmutable("') WHERE PE_PROID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and PE_CLIENTE in (Select CUENTA from cuentaa)  AND CONSECUTIVO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8))))),RemoteObject.createImmutable("'")))));
 };
 }else {
 BA.debugLineNum = 716;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery";
Debug.ShouldStop(2048);
_c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))}))));Debug.locals.put("c2", _c2);Debug.locals.put("c2", _c2);
 BA.debugLineNum = 717;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean(">",_c2.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 718;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(8192);
_c2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 720;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDI";
Debug.ShouldStop(32768);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO) VALUES (?,?,?,?,?,?,?,0,0,?)")),(Object)(c_detalleventa.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {8},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_NOMBRE"))),BA.NumberToString(RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(1),BA.numberCast(double.class, _minimoadesc)}, "*",0, 0)),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 5)))),c_detalleventa._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")),_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO"))),_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO"))),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8))))})))));
 };
 };
 BA.debugLineNum = 725;BA.debugLine="Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))";
Debug.ShouldStop(1048576);
c_detalleventa._subs.runVoidMethod ("_prodventa" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 5))))),(Object)(BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))));
 BA.debugLineNum = 730;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(33554432);
__ref.runClassMethod (reparto_izca.keymon.lat.c_detalleventa.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 };
 };
 BA.debugLineNum = 749;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_prodmasc_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_prodMasC_Click (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,928);
if (RapidSub.canDelegate("b_prodmasc_click")) { return __ref.runUserSub(false, "c_detalleventa","b_prodmasc_click", __ref);}
RemoteObject _index = RemoteObject.createImmutable(0);
RemoteObject _pnl0 = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _pnl = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _lacantc = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _estetag = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _maxprods = RemoteObject.createImmutable("");
 BA.debugLineNum = 928;BA.debugLine="Private Sub b_prodMasC_Click";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 929;BA.debugLine="etCantHasFocus = False";
Debug.ShouldStop(1);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,c_detalleventa.__c.getField(true,"False"));
 BA.debugLineNum = 931;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)";
Debug.ShouldStop(4);
c_detalleventa.__c.runVoidMethod ("LogImpl","812779523",BA.ObjectToString("b_prodMas_Click"),c_detalleventa.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 932;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
Debug.ShouldStop(8);
_index = __ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(true,"_getitemfromview",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), c_detalleventa.__c.runMethod(false,"Sender",__ref.getField(false, "ba"))));Debug.locals.put("index", _index);Debug.locals.put("index", _index);
 BA.debugLineNum = 933;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
Debug.ShouldStop(16);
_pnl0 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl0 = __ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(_index));Debug.locals.put("pnl0", _pnl0);Debug.locals.put("pnl0", _pnl0);
 BA.debugLineNum = 934;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(32);
_pnl = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl = _pnl0.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0)));Debug.locals.put("pnl", _pnl);Debug.locals.put("pnl", _pnl);
 BA.debugLineNum = 935;BA.debugLine="Dim laCantc As B4XView = pnl.GetView(3).GetView(3";
Debug.ShouldStop(64);
_lacantc = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_lacantc = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3))).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3)));Debug.locals.put("laCantc", _lacantc);Debug.locals.put("laCantc", _lacantc);
 BA.debugLineNum = 939;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCantc.T";
Debug.ShouldStop(1024);
_estetag = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_estetag = c_detalleventa.__c.runMethod(false, "ArrayToList", (Object)(c_detalleventa.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(BA.ObjectToString(_lacantc.runMethod(false,"getTag"))))));Debug.locals.put("esteTag", _estetag);Debug.locals.put("esteTag", _estetag);
 BA.debugLineNum = 940;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|LC_TAG:\"&laCantc.Ta";
Debug.ShouldStop(2048);
c_detalleventa.__c.runVoidMethod ("LogImpl","812779532",RemoteObject.concat(RemoteObject.createImmutable("LC_TEXT:"),_lacantc.runMethod(true,"getText"),RemoteObject.createImmutable("|LC_TAG:"),_lacantc.runMethod(false,"getTag"),RemoteObject.createImmutable("|ET:"),_estetag),0);
 BA.debugLineNum = 941;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",_lacantc.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacantc.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 943;BA.debugLine="Private maxProds As String = (esteTag.Get(1) + es";
Debug.ShouldStop(16384);
_maxprods = BA.NumberToString((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 1)))),BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 4))))}, "+",1, 0)));Debug.locals.put("maxProds", _maxprods);Debug.locals.put("maxProds", _maxprods);
 BA.debugLineNum = 944;BA.debugLine="LogColor(esteTag.Get(1),Colors.Red)";
Debug.ShouldStop(32768);
c_detalleventa.__c.runVoidMethod ("LogImpl","812779536",BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 1)))),c_detalleventa.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 945;BA.debugLine="LogColor(esteTag.Get(4),Colors.Red)";
Debug.ShouldStop(65536);
c_detalleventa.__c.runVoidMethod ("LogImpl","812779537",BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 4)))),c_detalleventa.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 946;BA.debugLine="LogColor($\"++++++++++++++++++++++++++   ${esteTag";
Debug.ShouldStop(131072);
c_detalleventa.__c.runVoidMethod ("LogImpl","812779538",(RemoteObject.concat(RemoteObject.createImmutable("++++++++++++++++++++++++++   "),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_estetag.getObject()))),RemoteObject.createImmutable(""))),c_detalleventa.__c.getField(false,"Colors").getField(true,"Green"));
 BA.debugLineNum = 948;BA.debugLine="Log(maxProds)";
Debug.ShouldStop(524288);
c_detalleventa.__c.runVoidMethod ("LogImpl","812779540",_maxprods,0);
 BA.debugLineNum = 951;BA.debugLine="If esteTag.Get(7) <> \"1\" Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("!",_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 7))),RemoteObject.createImmutable(("1")))) { 
 BA.debugLineNum = 954;BA.debugLine="If laCantc.Text + 1 <= maxProds Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("k",RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacantc.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0),BA.numberCast(double.class, _maxprods))) { 
 BA.debugLineNum = 955;BA.debugLine="Log($\"NuevaCant = ${laCantc.Text + 1}\"$)";
Debug.ShouldStop(67108864);
c_detalleventa.__c.runVoidMethod ("LogImpl","812779547",(RemoteObject.concat(RemoteObject.createImmutable("NuevaCant = "),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacantc.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0)))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 956;BA.debugLine="laCantc.Text = $\"$1.0{laCantc.Text + 1}\"$";
Debug.ShouldStop(134217728);
_lacantc.runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable(""),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.0")),(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacantc.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "+",1, 0)))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 958;BA.debugLine="Log(laCantc.Text)";
Debug.ShouldStop(536870912);
c_detalleventa.__c.runVoidMethod ("LogImpl","812779550",_lacantc.runMethod(true,"getText"),0);
 BA.debugLineNum = 959;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS";
Debug.ShouldStop(1073741824);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update HIST_VENTAS set HVD_RECHAZO = 1,  HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) -(1 * "),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_detalleventa._subs.runMethod(true,"_traeconversion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))))))),RemoteObject.createImmutable(")  WHERE HVD_PROID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 967;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(64);
__ref.runClassMethod (reparto_izca.keymon.lat.c_detalleventa.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 };
 BA.debugLineNum = 970;BA.debugLine="End Sub";
Debug.ShouldStop(512);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_prodmenos_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_prodMenos_Click (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,506);
if (RapidSub.canDelegate("b_prodmenos_click")) { return __ref.runUserSub(false, "c_detalleventa","b_prodmenos_click", __ref);}
RemoteObject _index = RemoteObject.createImmutable(0);
RemoteObject _pnl0 = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _pnl = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _lacant = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _estetag = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _minimoadesc = RemoteObject.createImmutable("");
RemoteObject _minimos = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _c3 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _c2 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _preciou = RemoteObject.createImmutable(0f);
 BA.debugLineNum = 506;BA.debugLine="Sub b_prodMenos_Click";
Debug.ShouldStop(33554432);
 BA.debugLineNum = 507;BA.debugLine="etCantHasFocus = False";
Debug.ShouldStop(67108864);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,c_detalleventa.__c.getField(true,"False"));
 BA.debugLineNum = 508;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)";
Debug.ShouldStop(134217728);
c_detalleventa.__c.runVoidMethod ("LogImpl","812386306",RemoteObject.concat(RemoteObject.createImmutable("etCantHasFocus="),__ref.getField(true,"_etcanthasfocus" /*RemoteObject*/ )),0);
 BA.debugLineNum = 509;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)";
Debug.ShouldStop(268435456);
c_detalleventa.__c.runVoidMethod ("LogImpl","812386307",BA.ObjectToString("b_prodMenos_Click"),c_detalleventa.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 510;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
Debug.ShouldStop(536870912);
_index = __ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(true,"_getitemfromview",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), c_detalleventa.__c.runMethod(false,"Sender",__ref.getField(false, "ba"))));Debug.locals.put("index", _index);Debug.locals.put("index", _index);
 BA.debugLineNum = 511;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
Debug.ShouldStop(1073741824);
_pnl0 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl0 = __ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(_index));Debug.locals.put("pnl0", _pnl0);Debug.locals.put("pnl0", _pnl0);
 BA.debugLineNum = 512;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(-2147483648);
_pnl = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl = _pnl0.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0)));Debug.locals.put("pnl", _pnl);Debug.locals.put("pnl", _pnl);
 BA.debugLineNum = 513;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)";
Debug.ShouldStop(1);
_lacant = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_lacant = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 2))).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3)));Debug.locals.put("laCant", _lacant);Debug.locals.put("laCant", _lacant);
 BA.debugLineNum = 515;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta";
Debug.ShouldStop(4);
_estetag = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_estetag = c_detalleventa.__c.runMethod(false, "ArrayToList", (Object)(c_detalleventa.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(BA.ObjectToString(_lacant.runMethod(false,"getTag"))))));Debug.locals.put("esteTag", _estetag);Debug.locals.put("esteTag", _estetag);
 BA.debugLineNum = 516;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|PROMO:\"&esteTag.Get(";
Debug.ShouldStop(8);
c_detalleventa.__c.runVoidMethod ("LogImpl","812386314",RemoteObject.concat(RemoteObject.createImmutable("LC_TEXT:"),_lacant.runMethod(true,"getText"),RemoteObject.createImmutable("|PROMO:"),_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 3))),RemoteObject.createImmutable("|LC_TAG:"),_lacant.runMethod(false,"getTag"),RemoteObject.createImmutable("|ET:"),_estetag),0);
 BA.debugLineNum = 517;BA.debugLine="Private minimoadesc As String";
Debug.ShouldStop(16);
_minimoadesc = RemoteObject.createImmutable("");Debug.locals.put("minimoadesc", _minimoadesc);
 BA.debugLineNum = 518;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\"";
Debug.ShouldStop(32);
_minimos = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_minimos = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))}))));Debug.locals.put("minimos", _minimos);Debug.locals.put("minimos", _minimos);
 BA.debugLineNum = 519;BA.debugLine="If minimos.RowCount > 0 Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean(">",_minimos.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 520;BA.debugLine="minimos.Position = 0";
Debug.ShouldStop(128);
_minimos.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 521;BA.debugLine="minimoadesc = minimos.GetString(\"CAT_DP_CANT_MIN";
Debug.ShouldStop(256);
_minimoadesc = _minimos.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_DP_CANT_MIN_VENTA")));Debug.locals.put("minimoadesc", _minimoadesc);
 }else {
 BA.debugLineNum = 523;BA.debugLine="minimoadesc = \"1\"";
Debug.ShouldStop(1024);
_minimoadesc = BA.ObjectToString("1");Debug.locals.put("minimoadesc", _minimoadesc);
 };
 BA.debugLineNum = 525;BA.debugLine="minimos.Close";
Debug.ShouldStop(4096);
_minimos.runVoidMethod ("Close");
 BA.debugLineNum = 527;BA.debugLine="minimoadesc = \"1\"";
Debug.ShouldStop(16384);
_minimoadesc = BA.ObjectToString("1");Debug.locals.put("minimoadesc", _minimoadesc);
 BA.debugLineNum = 528;BA.debugLine="If esteTag.Get(7) = \"1\" Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 7))),RemoteObject.createImmutable(("1")))) { 
 BA.debugLineNum = 529;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 530;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$";
Debug.ShouldStop(131072);
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable(""),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.0")),(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "-",1, 0)))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 531;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _lacant.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 532;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\"";
Debug.ShouldStop(524288);
_c3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c3 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT PE_CANT FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8))))}))));Debug.locals.put("c3", _c3);Debug.locals.put("c3", _c3);
 BA.debugLineNum = 533;BA.debugLine="If c3.RowCount > 0 Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean(">",_c3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 534;BA.debugLine="c3.Position = 0";
Debug.ShouldStop(2097152);
_c3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 535;BA.debugLine="If c3.GetString(\"PE_CANT\") > minimoadesc Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))),BA.numberCast(double.class, _minimoadesc))) { 
 BA.debugLineNum = 536;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
Debug.ShouldStop(8388608);
_c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))}))));Debug.locals.put("c2", _c2);Debug.locals.put("c2", _c2);
 BA.debugLineNum = 537;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean(">",_c2.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 538;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(33554432);
_c2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 540;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set";
Debug.ShouldStop(134217728);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)-(1*'"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_minimoadesc))),RemoteObject.createImmutable("'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0) -(1*'"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_minimoadesc))),RemoteObject.createImmutable("'))*'"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")))))),RemoteObject.createImmutable("') WHERE PE_PROID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and PE_CLIENTE in (Select CUENTA from cuentaa) and CONSECUTIVO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8))))),RemoteObject.createImmutable("'")))));
 };
 }else 
{ BA.debugLineNum = 542;BA.debugLine="Else If c3.GetString(\"PE_CANT\") = minimoadesc T";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("=",_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))),_minimoadesc)) { 
 BA.debugLineNum = 543;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
Debug.ShouldStop(1073741824);
_c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))}))));Debug.locals.put("c2", _c2);Debug.locals.put("c2", _c2);
 BA.debugLineNum = 544;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean(">",_c2.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 545;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(1);
_c2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 548;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDID";
Debug.ShouldStop(8);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("delete from PEDIDO where PE_PROID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8))))),RemoteObject.createImmutable("'")))));
 };
 }}
;
 };
 BA.debugLineNum = 555;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(1024);
__ref.runClassMethod (reparto_izca.keymon.lat.c_detalleventa.class, "_b4xpage_appear" /*RemoteObject*/ );
 }else {
 BA.debugLineNum = 558;BA.debugLine="If esteTag.Get(5) = esteTag.Get(6) Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 5))),_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6))))) { 
 BA.debugLineNum = 559;BA.debugLine="If laCant.Text > 0 Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _lacant.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 560;BA.debugLine="If esteTag.Get(3) <> Subs.traeAlmacen Then 'Si";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("!",_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 3))),(c_detalleventa._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))))) { 
 BA.debugLineNum = 561;BA.debugLine="Private c2 As Cursor =Starter.skmt.ExecQuery(";
Debug.ShouldStop(65536);
_c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_PROID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' AND HVD_CLIENTE IN (Select CUENTA from cuentaa) AND CONSECUTIVO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("c2", _c2);Debug.locals.put("c2", _c2);
 BA.debugLineNum = 562;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(131072);
_c2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 563;BA.debugLine="If c2.GetString(\"HVD_RECHAZO\") = \"0\" Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZO"))),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 566;BA.debugLine="Log(\"ES PROMO\")";
Debug.ShouldStop(2097152);
c_detalleventa.__c.runVoidMethod ("LogImpl","812386364",RemoteObject.createImmutable("ES PROMO"),0);
 BA.debugLineNum = 567;BA.debugLine="Log(esteTag.Get(3))";
Debug.ShouldStop(4194304);
c_detalleventa.__c.runVoidMethod ("LogImpl","812386365",BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 3)))),0);
 BA.debugLineNum = 568;BA.debugLine="result =  Msgbox2(\"Si se modifica una promoc";
Debug.ShouldStop(8388608);
__ref.setField ("_result" /*RemoteObject*/ ,BA.NumberToString(c_detalleventa.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence("Si se modifica una promoción, la promoción se rompe y solo quedarán los productos sueltos, ¿seguro que desea continuar?")),(Object)(BA.ObjectToCharSequence("Modificar Promoción")),(Object)(BA.ObjectToString("Si")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("No")),(Object)((c_detalleventa.__c.runMethod(false,"LoadBitmap",(Object)(c_detalleventa.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png"))).getObject())),__ref.getField(false, "ba"))));
 BA.debugLineNum = 569;BA.debugLine="If result = DialogResponse.POSITIVE Then 'Qu";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_result" /*RemoteObject*/ ),BA.NumberToString(c_detalleventa.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 570;BA.debugLine="prodsMap.Remove(esteTag.Get(3))";
Debug.ShouldStop(33554432);
__ref.getField(false,"_prodsmap" /*RemoteObject*/ ).runVoidMethod ("Remove",(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 3)))));
 BA.debugLineNum = 574;BA.debugLine="LogColor(esteTag.Get(3),Colors.Blue)";
Debug.ShouldStop(536870912);
c_detalleventa.__c.runVoidMethod ("LogImpl","812386372",BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 3)))),c_detalleventa.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 577;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VEN";
Debug.ShouldStop(1);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update HIST_VENTAS set HVD_RECHAZO = 1,  HVD_RECHAZOCANT = HVD_CANT  WHERE  HVD_CODPROMO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 3))))),RemoteObject.createImmutable("' and HVD_CLIENTE in (Select CUENTA from cuentaa)")))));
 BA.debugLineNum = 578;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VEN";
Debug.ShouldStop(2);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update HIST_VENTAS set HVD_RECHAZO = 2,  HVD_RECHAZOCANT = HVD_CANT  WHERE HVD_PROID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 3))))),RemoteObject.createImmutable("' and HVD_CODPROMO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 3))))),RemoteObject.createImmutable("' and HVD_CLIENTE in (Select CUENTA from cuentaa)")))));
 BA.debugLineNum = 581;BA.debugLine="c.Close";
Debug.ShouldStop(16);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 582;BA.debugLine="LogColor(prodsMap, Colors.red)";
Debug.ShouldStop(32);
c_detalleventa.__c.runVoidMethod ("LogImpl","812386380",BA.ObjectToString(__ref.getField(false,"_prodsmap" /*RemoteObject*/ )),c_detalleventa.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 583;BA.debugLine="reconstruirPedido = True";
Debug.ShouldStop(64);
__ref.setField ("_reconstruirpedido" /*RemoteObject*/ ,c_detalleventa.__c.getField(true,"True"));
 BA.debugLineNum = 584;BA.debugLine="promoABorrar = esteTag.Get(3)";
Debug.ShouldStop(128);
__ref.setField ("_promoaborrar" /*RemoteObject*/ ,BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 3)))));
 BA.debugLineNum = 585;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(256);
__ref.runClassMethod (reparto_izca.keymon.lat.c_detalleventa.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 }else {
 BA.debugLineNum = 588;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 589;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$";
Debug.ShouldStop(4096);
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable(""),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.0")),(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "-",1, 0)))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 590;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _lacant.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 591;BA.debugLine="Log(\"NO ES promo\")";
Debug.ShouldStop(16384);
c_detalleventa.__c.runVoidMethod ("LogImpl","812386389",RemoteObject.createImmutable("NO ES promo"),0);
 BA.debugLineNum = 592;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENT";
Debug.ShouldStop(32768);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update HIST_VENTAS set HVD_RECHAZO = 1,  HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) + (1*'"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_minimoadesc))),RemoteObject.createImmutable("')  WHERE HVD_PROID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 593;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunap";
Debug.ShouldStop(65536);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + 1 where cat_gp_id = ?")),(Object)(c_detalleventa.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))})))));
 BA.debugLineNum = 594;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(131072);
__ref.runClassMethod (reparto_izca.keymon.lat.c_detalleventa.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 }else {
 BA.debugLineNum = 597;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 598;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$";
Debug.ShouldStop(2097152);
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable(""),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.0")),(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "-",1, 0)))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 599;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _lacant.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 600;BA.debugLine="Log(\"NO ES promo\")";
Debug.ShouldStop(8388608);
c_detalleventa.__c.runVoidMethod ("LogImpl","812386398",RemoteObject.createImmutable("NO ES promo"),0);
 BA.debugLineNum = 601;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTA";
Debug.ShouldStop(16777216);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update HIST_VENTAS set HVD_RECHAZO = 1,  HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) + (1*'"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_minimoadesc))),RemoteObject.createImmutable("'), BCAJAS = 0, CANTC = 0  WHERE HVD_PROID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 602;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapr";
Debug.ShouldStop(33554432);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + 1 where cat_gp_id = ?")),(Object)(c_detalleventa.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))})))));
 BA.debugLineNum = 603;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(67108864);
__ref.runClassMethod (reparto_izca.keymon.lat.c_detalleventa.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 };
 }else {
 BA.debugLineNum = 608;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",_lacant.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 609;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$";
Debug.ShouldStop(1);
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable(""),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.0")),(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacant.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "-",1, 0)))),RemoteObject.createImmutable("")))));
 BA.debugLineNum = 610;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _lacant.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
_lacant.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 611;BA.debugLine="Log(\"NO ES promo\")";
Debug.ShouldStop(4);
c_detalleventa.__c.runVoidMethod ("LogImpl","812386409",RemoteObject.createImmutable("NO ES promo"),0);
 BA.debugLineNum = 616;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(";
Debug.ShouldStop(128);
_c3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c3 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT PE_CANT FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8))))}))));Debug.locals.put("c3", _c3);Debug.locals.put("c3", _c3);
 BA.debugLineNum = 617;BA.debugLine="If c3.RowCount > 0 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean(">",_c3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 618;BA.debugLine="c3.Position = 0";
Debug.ShouldStop(512);
_c3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 619;BA.debugLine="If c3.GetString(\"PE_CANT\") > 1 Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 620;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery";
Debug.ShouldStop(2048);
_c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))}))));Debug.locals.put("c2", _c2);Debug.locals.put("c2", _c2);
 BA.debugLineNum = 621;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean(">",_c2.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 622;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(8192);
_c2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 623;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se";
Debug.ShouldStop(16384);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)-(1*'"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_minimoadesc))),RemoteObject.createImmutable("'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0) -(1*'"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_minimoadesc))),RemoteObject.createImmutable("'))*'"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_c2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")))))),RemoteObject.createImmutable("') WHERE PE_PROID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8))))),RemoteObject.createImmutable("'")))));
 };
 }else 
{ BA.debugLineNum = 625;BA.debugLine="Else If c3.GetString(\"PE_CANT\") = 1 Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))),BA.NumberToString(1))) { 
 BA.debugLineNum = 626;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery";
Debug.ShouldStop(131072);
_c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))}))));Debug.locals.put("c2", _c2);Debug.locals.put("c2", _c2);
 BA.debugLineNum = 627;BA.debugLine="If c2.RowCount > 0 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(">",_c2.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 628;BA.debugLine="c2.Position = 0";
Debug.ShouldStop(524288);
_c2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 629;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDI";
Debug.ShouldStop(1048576);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("delete from PEDIDO where PE_PROID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8))))),RemoteObject.createImmutable("'")))));
 };
 }}
;
 };
 BA.debugLineNum = 633;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(16777216);
__ref.runClassMethod (reparto_izca.keymon.lat.c_detalleventa.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 };
 BA.debugLineNum = 636;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get";
Debug.ShouldStop(134217728);
_preciou = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 0)))),BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 1))))}, "/",0, 0));Debug.locals.put("preciou", _preciou);Debug.locals.put("preciou", _preciou);
 BA.debugLineNum = 637;BA.debugLine="Log(\"PU: \" & preciou)";
Debug.ShouldStop(268435456);
c_detalleventa.__c.runVoidMethod ("LogImpl","812386435",RemoteObject.concat(RemoteObject.createImmutable("PU: "),_preciou),0);
 BA.debugLineNum = 648;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_prodmenosc_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_prodMenosC_Click (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,972);
if (RapidSub.canDelegate("b_prodmenosc_click")) { return __ref.runUserSub(false, "c_detalleventa","b_prodmenosc_click", __ref);}
RemoteObject _index = RemoteObject.createImmutable(0);
RemoteObject _pnl0 = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _pnl = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _lacantc = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _estetag = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _c3 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _preciou = RemoteObject.createImmutable(0f);
 BA.debugLineNum = 972;BA.debugLine="Private Sub b_prodMenosC_Click";
Debug.ShouldStop(2048);
 BA.debugLineNum = 973;BA.debugLine="etCantHasFocus = False";
Debug.ShouldStop(4096);
__ref.setField ("_etcanthasfocus" /*RemoteObject*/ ,c_detalleventa.__c.getField(true,"False"));
 BA.debugLineNum = 974;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)";
Debug.ShouldStop(8192);
c_detalleventa.__c.runVoidMethod ("LogImpl","812845058",RemoteObject.concat(RemoteObject.createImmutable("etCantHasFocus="),__ref.getField(true,"_etcanthasfocus" /*RemoteObject*/ )),0);
 BA.debugLineNum = 975;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)";
Debug.ShouldStop(16384);
c_detalleventa.__c.runVoidMethod ("LogImpl","812845059",BA.ObjectToString("b_prodMenos_Click"),c_detalleventa.__c.getField(false,"Colors").getField(true,"Magenta"));
 BA.debugLineNum = 976;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
Debug.ShouldStop(32768);
_index = __ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(true,"_getitemfromview",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), c_detalleventa.__c.runMethod(false,"Sender",__ref.getField(false, "ba"))));Debug.locals.put("index", _index);Debug.locals.put("index", _index);
 BA.debugLineNum = 977;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
Debug.ShouldStop(65536);
_pnl0 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl0 = __ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(_index));Debug.locals.put("pnl0", _pnl0);Debug.locals.put("pnl0", _pnl0);
 BA.debugLineNum = 978;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
Debug.ShouldStop(131072);
_pnl = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pnl = _pnl0.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0)));Debug.locals.put("pnl", _pnl);Debug.locals.put("pnl", _pnl);
 BA.debugLineNum = 979;BA.debugLine="Dim laCantc As B4XView = pnl.GetView(3).GetView(3";
Debug.ShouldStop(262144);
_lacantc = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_lacantc = _pnl.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3))).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 3)));Debug.locals.put("laCantc", _lacantc);Debug.locals.put("laCantc", _lacantc);
 BA.debugLineNum = 981;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCantc.T";
Debug.ShouldStop(1048576);
_estetag = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
_estetag = c_detalleventa.__c.runMethod(false, "ArrayToList", (Object)(c_detalleventa.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(BA.ObjectToString(_lacantc.runMethod(false,"getTag"))))));Debug.locals.put("esteTag", _estetag);Debug.locals.put("esteTag", _estetag);
 BA.debugLineNum = 982;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|PROMO:\"&esteTag.Get";
Debug.ShouldStop(2097152);
c_detalleventa.__c.runVoidMethod ("LogImpl","812845066",RemoteObject.concat(RemoteObject.createImmutable("LC_TEXT:"),_lacantc.runMethod(true,"getText"),RemoteObject.createImmutable("|PROMO:"),_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 3))),RemoteObject.createImmutable("|LC_TAG:"),_lacantc.runMethod(false,"getTag"),RemoteObject.createImmutable("|ET:"),_estetag),0);
 BA.debugLineNum = 983;BA.debugLine="Log(esteTag)";
Debug.ShouldStop(4194304);
c_detalleventa.__c.runVoidMethod ("LogImpl","812845067",BA.ObjectToString(_estetag),0);
 BA.debugLineNum = 985;BA.debugLine="If esteTag.Get(7) = \"1\" Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 7))),RemoteObject.createImmutable(("1")))) { 
 BA.debugLineNum = 986;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\"";
Debug.ShouldStop(33554432);
_c3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c3 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT PE_CAJAS, CONSECUTIVO FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8))))}))));Debug.locals.put("c3", _c3);Debug.locals.put("c3", _c3);
 BA.debugLineNum = 987;BA.debugLine="Log(c3.RowCount)";
Debug.ShouldStop(67108864);
c_detalleventa.__c.runVoidMethod ("LogImpl","812845071",BA.NumberToString(_c3.runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 988;BA.debugLine="Log(esteTag.Get(8))";
Debug.ShouldStop(134217728);
c_detalleventa.__c.runVoidMethod ("LogImpl","812845072",BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8)))),0);
 BA.debugLineNum = 989;BA.debugLine="If c3.RowCount > 0 Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean(">",_c3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 990;BA.debugLine="Log(\"AQUI VEMOS SI ACTUALIZAMOS\")";
Debug.ShouldStop(536870912);
c_detalleventa.__c.runVoidMethod ("LogImpl","812845074",RemoteObject.createImmutable("AQUI VEMOS SI ACTUALIZAMOS"),0);
 BA.debugLineNum = 991;BA.debugLine="c3.Position = 0";
Debug.ShouldStop(1073741824);
_c3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 992;BA.debugLine="If c3.GetString(\"PE_CAJAS\") > 1 Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CAJAS")))),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 993;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set";
Debug.ShouldStop(1);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)-(1 * '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_detalleventa._subs.runMethod(true,"_traeconversion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))))))),RemoteObject.createImmutable("')), PE_COSTO_TOT= ((IFNULL(PE_CAJAS,0)-1) *'"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_detalleventa._subs.runMethod(true,"_traeprecioc" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))))))),RemoteObject.createImmutable("'), PE_CAJAS = IFNULL(PE_CAJAS,0) - 1 WHERE PE_PROID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'")))));
 }else 
{ BA.debugLineNum = 994;BA.debugLine="Else If c3.GetString(\"PE_CAJAS\") = 1 Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CAJAS"))),BA.NumberToString(1))) { 
 BA.debugLineNum = 995;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDIDO";
Debug.ShouldStop(4);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("delete from PEDIDO where PE_PROID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'")))));
 }}
;
 };
 BA.debugLineNum = 998;BA.debugLine="Log(\"entre al if o algo asi \")";
Debug.ShouldStop(32);
c_detalleventa.__c.runVoidMethod ("LogImpl","812845082",RemoteObject.createImmutable("entre al if o algo asi "),0);
 BA.debugLineNum = 999;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",_lacantc.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacantc.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 1000;BA.debugLine="laCantc.Text = laCantc.Text - 1";
Debug.ShouldStop(128);
_lacantc.runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacantc.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "-",1, 0)));
 BA.debugLineNum = 1001;BA.debugLine="If laCantc.Text < 0 Then laCantc.Text = 0";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _lacantc.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
_lacantc.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 1002;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(512);
__ref.runClassMethod (reparto_izca.keymon.lat.c_detalleventa.class, "_b4xpage_appear" /*RemoteObject*/ );
 }else {
 BA.debugLineNum = 1007;BA.debugLine="If esteTag.Get(5) = esteTag.Get(6) Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("=",_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 5))),_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 6))))) { 
 BA.debugLineNum = 1009;BA.debugLine="If laCantc.Text > 0 Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _lacantc.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1010;BA.debugLine="Log(\"entre al if o algo asi \")";
Debug.ShouldStop(131072);
c_detalleventa.__c.runVoidMethod ("LogImpl","812845094",RemoteObject.createImmutable("entre al if o algo asi "),0);
 BA.debugLineNum = 1011;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",_lacantc.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacantc.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 1012;BA.debugLine="laCantc.Text = laCantc.Text - 1";
Debug.ShouldStop(524288);
_lacantc.runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacantc.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "-",1, 0)));
 BA.debugLineNum = 1013;BA.debugLine="If laCantc.Text < 0 Then laCantc.Text = 0";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _lacantc.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
_lacantc.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 1014;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS";
Debug.ShouldStop(2097152);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update HIST_VENTAS set HVD_RECHAZO = 1,  HVD_RECHAZOCANT = (IFNULL(HVD_RECHAZOCANT,0) +(1 * "),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_detalleventa._subs.runMethod(true,"_traeconversion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))))))),RemoteObject.createImmutable("))  WHERE HVD_PROID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 1015;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapro";
Debug.ShouldStop(4194304);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("update cat_gunaprod set cat_gp_almacen = (cat_gp_almacen + (1 * ?)) where cat_gp_id = ?")),(Object)(c_detalleventa.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))),(c_detalleventa._subs.runMethod(true,"_traeconversion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))))))})))));
 BA.debugLineNum = 1016;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(8388608);
__ref.runClassMethod (reparto_izca.keymon.lat.c_detalleventa.class, "_b4xpage_appear" /*RemoteObject*/ );
 }else 
{ BA.debugLineNum = 1017;BA.debugLine="Else If laCantc.Text = 0 Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",_lacantc.runMethod(true,"getText"),BA.NumberToString(0))) { 
 }}
;
 }else {
 BA.debugLineNum = 1023;BA.debugLine="If laCantc.Text > 0 Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _lacantc.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1026;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2";
Debug.ShouldStop(2);
_c3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c3 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT PE_CAJAS FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) and CONSECUTIVO = ? ")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2)))),BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8))))}))));Debug.locals.put("c3", _c3);Debug.locals.put("c3", _c3);
 BA.debugLineNum = 1027;BA.debugLine="If c3.RowCount > 0 Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean(">",_c3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1028;BA.debugLine="Log(\"AQUI VEMOS SI ACTUALIZAMOS\")";
Debug.ShouldStop(8);
c_detalleventa.__c.runVoidMethod ("LogImpl","812845112",RemoteObject.createImmutable("AQUI VEMOS SI ACTUALIZAMOS"),0);
 BA.debugLineNum = 1029;BA.debugLine="c3.Position = 0";
Debug.ShouldStop(16);
_c3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1030;BA.debugLine="If c3.GetString(\"PE_CAJAS\") > 1 Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CAJAS")))),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 1031;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se";
Debug.ShouldStop(64);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)-(1 * '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_detalleventa._subs.runMethod(true,"_traeconversion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))))))),RemoteObject.createImmutable("')), PE_COSTO_TOT= ((IFNULL(PE_CAJAS,0)-1) *'"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_detalleventa._subs.runMethod(true,"_traeprecioc" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))))))),RemoteObject.createImmutable("'), PE_CAJAS = IFNULL(PE_CAJAS,0) - 1 WHERE PE_PROID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8))))),RemoteObject.createImmutable("'")))));
 }else 
{ BA.debugLineNum = 1032;BA.debugLine="Else If c3.GetString(\"PE_CAJAS\") = 1 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CAJAS"))),BA.NumberToString(1))) { 
 BA.debugLineNum = 1033;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDI";
Debug.ShouldStop(256);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("delete from PEDIDO where PE_PROID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 2))))),RemoteObject.createImmutable("' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 8))))),RemoteObject.createImmutable("'")))));
 }}
;
 };
 BA.debugLineNum = 1036;BA.debugLine="Log(\"entre al if o algo asi \")";
Debug.ShouldStop(2048);
c_detalleventa.__c.runVoidMethod ("LogImpl","812845120",RemoteObject.createImmutable("entre al if o algo asi "),0);
 BA.debugLineNum = 1037;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",_lacantc.runMethod(true,"getText"),BA.ObjectToString(""))) { 
_lacantc.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 1038;BA.debugLine="laCantc.Text = laCantc.Text - 1";
Debug.ShouldStop(8192);
_lacantc.runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _lacantc.runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "-",1, 0)));
 BA.debugLineNum = 1039;BA.debugLine="If laCantc.Text < 0 Then laCantc.Text = 0";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _lacantc.runMethod(true,"getText")),BA.numberCast(double.class, 0))) { 
_lacantc.runMethod(true,"setText",BA.ObjectToCharSequence(0));};
 BA.debugLineNum = 1040;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(32768);
__ref.runClassMethod (reparto_izca.keymon.lat.c_detalleventa.class, "_b4xpage_appear" /*RemoteObject*/ );
 }else 
{ BA.debugLineNum = 1042;BA.debugLine="Else If laCantc.Text = 0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",_lacantc.runMethod(true,"getText"),BA.NumberToString(0))) { 
 }}
;
 };
 };
 BA.debugLineNum = 1048;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get";
Debug.ShouldStop(8388608);
_preciou = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 0)))),BA.numberCast(double.class, _estetag.runMethod(false,"Get",(Object)(BA.numberCast(int.class, 1))))}, "/",0, 0));Debug.locals.put("preciou", _preciou);Debug.locals.put("preciou", _preciou);
 BA.debugLineNum = 1049;BA.debugLine="Log(\"PU: \" & preciou)";
Debug.ShouldStop(16777216);
c_detalleventa.__c.runVoidMethod ("LogImpl","812845133",RemoteObject.concat(RemoteObject.createImmutable("PU: "),_preciou),0);
 BA.debugLineNum = 1050;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_regresar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_regresar_Click (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,317);
if (RapidSub.canDelegate("b_regresar_click")) { return __ref.runUserSub(false, "c_detalleventa","b_regresar_click", __ref);}
 BA.debugLineNum = 317;BA.debugLine="Sub b_regresar_Click";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 318;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(536870912);
c_detalleventa._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 319;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_revversar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_revversar_Click (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,1056);
if (RapidSub.canDelegate("b_revversar_click")) { return __ref.runUserSub(false, "c_detalleventa","b_revversar_click", __ref);}
RemoteObject _c3 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
 BA.debugLineNum = 1056;BA.debugLine="Private Sub b_revversar_Click";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 1057;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery(\"SE";
Debug.ShouldStop(1);
_c3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c3 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT * FROM PEDIDO WHERE PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA)"))));Debug.locals.put("c3", _c3);Debug.locals.put("c3", _c3);
 BA.debugLineNum = 1058;BA.debugLine="If c3.RowCount = 0 Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",_c3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1059;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS s";
Debug.ShouldStop(4);
c_detalleventa._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.createImmutable("update HIST_VENTAS set HVD_RECHAZO = 0,  HVD_RECHAZOCANT = 0, BCAJAS = BCAJAS_OR, CANTC = CANTC_OR  WHERE HVD_cliente in (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 1060;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(8);
__ref.runClassMethod (reparto_izca.keymon.lat.c_detalleventa.class, "_b4xpage_appear" /*RemoteObject*/ );
 }else {
 BA.debugLineNum = 1062;BA.debugLine="MsgboxAsync(\"Hay productos que ya se vendieron,";
Debug.ShouldStop(32);
c_detalleventa.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Hay productos que ya se vendieron, no se puede regresar la venta")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 };
 BA.debugLineNum = 1066;BA.debugLine="End Sub";
Debug.ShouldStop(512);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b4xpage_appear(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_Appear (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,68);
if (RapidSub.canDelegate("b4xpage_appear")) { return __ref.runUserSub(false, "c_detalleventa","b4xpage_appear", __ref);}
int _i = 0;
RemoteObject _c4 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _cantres = RemoteObject.createImmutable(0);
RemoteObject _oc = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _cant2 = RemoteObject.createImmutable(0);
RemoteObject _label1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _label2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _bgcolor = RemoteObject.createImmutable(0);
RemoteObject _textcolor = RemoteObject.createImmutable(0);
RemoteObject _c3 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _vc = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _cuenta = RemoteObject.createImmutable("");
RemoteObject _arti = RemoteObject.createImmutable("");
RemoteObject _vc2 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _cuenta1 = RemoteObject.createImmutable("");
RemoteObject _arti1 = RemoteObject.createImmutable("");
RemoteObject _preu = RemoteObject.createImmutable(0f);
RemoteObject _vc3 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _vc4 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _cuenta2 = RemoteObject.createImmutable("");
RemoteObject _arti2 = RemoteObject.createImmutable("");
RemoteObject _vc5 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _cuenta3 = RemoteObject.createImmutable("");
RemoteObject _arti3 = RemoteObject.createImmutable("");
 BA.debugLineNum = 68;BA.debugLine="Sub B4XPage_Appear";
Debug.ShouldStop(8);
 BA.debugLineNum = 69;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)";
Debug.ShouldStop(16);
c_detalleventa._subs.runVoidMethod ("_centrapanel" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_principal" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth")));
 BA.debugLineNum = 73;BA.debugLine="L_CANT.Text =\"\"";
Debug.ShouldStop(256);
__ref.getField(false,"_l_cant" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 74;BA.debugLine="L_TOTAL.Text=\"\"";
Debug.ShouldStop(512);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 75;BA.debugLine="c=Starter.skmt.ExecQuery(\"select count(*) as EXIS";
Debug.ShouldStop(1024);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as EXISTE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 "))));
 BA.debugLineNum = 76;BA.debugLine="C.Position=0";
Debug.ShouldStop(2048);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 77;BA.debugLine="Existe = C.GetString(\"EXISTE\")";
Debug.ShouldStop(4096);
__ref.setField ("_existe" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("EXISTE"))));
 BA.debugLineNum = 78;BA.debugLine="C.Close";
Debug.ShouldStop(8192);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 80;BA.debugLine="c=Starter.skmt.ExecQuery(\"select hvd_num_registro";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select hvd_num_registro,CONSECUTIVO, HVD_CLIENTE, HVD_PRONOMBRE, HVD_PROID, HVD_CANT, HVD_COSTO_TOT, HVD_CODPROMO, BCAJAS, CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_rechazo <> 2 and hvd_cant > 0 order by HVD_CODPROMO desc, HVD_PRONOMBRE asc"))));
 BA.debugLineNum = 81;BA.debugLine="ListView1.Clear";
Debug.ShouldStop(65536);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 82;BA.debugLine="clv_pedido.Clear";
Debug.ShouldStop(131072);
__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 83;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)";
Debug.ShouldStop(262144);
c_detalleventa._subs.runVoidMethod ("_setdivider" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_listview1" /*RemoteObject*/ )),(Object)(c_detalleventa.__c.getField(false,"Colors").getField(true,"LightGray")),(Object)(BA.numberCast(int.class, 2)));
 BA.debugLineNum = 84;BA.debugLine="clv_pedido.GetBase.SetLayoutAnimated(100, 0dip, 6";
Debug.ShouldStop(524288);
__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_getbase").runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 100)),(Object)(c_detalleventa.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 0)))),(Object)(c_detalleventa.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 60)))),(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(50)}, "-",1, 1)),(Object)(BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"),RemoteObject.createImmutable(0.62)}, "*",0, 0))));
 BA.debugLineNum = 85;BA.debugLine="clv_pedido.Base_Resize(clv_pedido.GetBase.Width,";
Debug.ShouldStop(1048576);
__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runVoidMethod ("_base_resize",(Object)(BA.numberCast(double.class, __ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_getbase").runMethod(true,"getWidth"))),(Object)(BA.numberCast(double.class, __ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_getbase").runMethod(true,"getHeight"))));
 BA.debugLineNum = 87;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 90;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(33554432);
{
final int step15 = 1;
final int limit15 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step15 > 0 && _i <= limit15) || (step15 < 0 && _i >= limit15) ;_i = ((int)(0 + _i + step15))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 91;BA.debugLine="c.Position=i";
Debug.ShouldStop(67108864);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 93;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery($";
Debug.ShouldStop(268435456);
_c4 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c4 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("SELECT IFNULL(PE_CANT,0) AS PE_CANT FROM PEDIDO WHERE PE_PROID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' AND PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("c4", _c4);Debug.locals.put("c4", _c4);
 BA.debugLineNum = 94;BA.debugLine="If c4.RowCount > 0 Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean(">",_c4.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 95;BA.debugLine="c4.Position = 0";
Debug.ShouldStop(1073741824);
_c4.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 96;BA.debugLine="Private cantres As Int = c4.GetString(\"PE_CANT";
Debug.ShouldStop(-2147483648);
_cantres = BA.numberCast(int.class, _c4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))));Debug.locals.put("cantres", _cantres);Debug.locals.put("cantres", _cantres);
 }else {
 BA.debugLineNum = 98;BA.debugLine="cantres = 0";
Debug.ShouldStop(2);
_cantres = BA.numberCast(int.class, 0);Debug.locals.put("cantres", _cantres);
 };
 BA.debugLineNum = 101;BA.debugLine="If c.GetString(\"BCAJAS\") = \"0\" Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("BCAJAS"))),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 102;BA.debugLine="If c.GetString(\"HVD_CANT\") <> c.GetString(\"HVD";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))) { 
 BA.debugLineNum = 104;BA.debugLine="Private oc As Cursor = Starter.skmt.ExecQuery";
Debug.ShouldStop(128);
_oc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_oc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select HVD_CANT from HIST_VENTAS2 WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' and HVD_NUM_REGISTRO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_NUM_REGISTRO")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("oc", _oc);Debug.locals.put("oc", _oc);
 BA.debugLineNum = 105;BA.debugLine="Private cant2 As Int = 0";
Debug.ShouldStop(256);
_cant2 = BA.numberCast(int.class, 0);Debug.locals.put("cant2", _cant2);Debug.locals.put("cant2", _cant2);
 BA.debugLineNum = 106;BA.debugLine="If oc.RowCount > 0 Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean(">",_oc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 107;BA.debugLine="oc.Position = 0";
Debug.ShouldStop(1024);
_oc.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 108;BA.debugLine="cant2 = oc.GetString(\"HVD_CANT\")";
Debug.ShouldStop(2048);
_cant2 = BA.numberCast(int.class, _oc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))));Debug.locals.put("cant2", _cant2);
 };
 BA.debugLineNum = 110;BA.debugLine="oc.Close";
Debug.ShouldStop(8192);
_oc.runVoidMethod ("Close");
 BA.debugLineNum = 111;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(16384);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 112;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
Debug.ShouldStop(32768);
_label1 = __ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 113;BA.debugLine="label1.TextSize = 12";
Debug.ShouldStop(65536);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 12));
 BA.debugLineNum = 114;BA.debugLine="label1.TextColor = Colors.black";
Debug.ShouldStop(131072);
_label1.runMethod(true,"setTextColor",c_detalleventa.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 115;BA.debugLine="Dim label2 As Label";
Debug.ShouldStop(262144);
_label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 116;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
Debug.ShouldStop(524288);
_label2 = __ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 117;BA.debugLine="label2.TextSize = 12";
Debug.ShouldStop(1048576);
_label2.runMethod(true,"setTextSize",BA.numberCast(float.class, 12));
 BA.debugLineNum = 118;BA.debugLine="label2.TextColor = Colors.black";
Debug.ShouldStop(2097152);
_label2.runMethod(true,"setTextColor",c_detalleventa.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 119;BA.debugLine="Private bgColor, textColor As Int";
Debug.ShouldStop(4194304);
_bgcolor = RemoteObject.createImmutable(0);Debug.locals.put("bgColor", _bgcolor);
_textcolor = RemoteObject.createImmutable(0);Debug.locals.put("textColor", _textcolor);
 BA.debugLineNum = 120;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul";
Debug.ShouldStop(8388608);
_bgcolor = c_detalleventa.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 177)),(Object)(BA.numberCast(int.class, 200)),(Object)(BA.numberCast(int.class, 249)));Debug.locals.put("bgColor", _bgcolor);
 BA.debugLineNum = 121;BA.debugLine="textColor = Colors.black";
Debug.ShouldStop(16777216);
_textcolor = c_detalleventa.__c.getField(false,"Colors").getField(true,"Black");Debug.locals.put("textColor", _textcolor);
 BA.debugLineNum = 122;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> Subs.traeAl";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO"))),c_detalleventa._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")))) { 
 BA.debugLineNum = 124;BA.debugLine="bgColor = Colors.White";
Debug.ShouldStop(134217728);
_bgcolor = c_detalleventa.__c.getField(false,"Colors").getField(true,"White");Debug.locals.put("bgColor", _bgcolor);
 };
 BA.debugLineNum = 128;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"HV";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (reparto_izca.keymon.lat.c_detalleventa.class, "_createlistitem" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE")))),(Object)(c_detalleventa._subs.runMethod(true,"_traeprecio2" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),(Object)(BA.numberCast(int.class, (RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))}, "-",1, 0)))),(Object)(BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT")))),_cantres}, "-",1, 0))),(Object)(__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getWidth")),(Object)(c_detalleventa.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 118)))),(Object)(__ref.getField(false,"_bmp" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))),(Object)(_bgcolor),(Object)(_textcolor),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO")))),(Object)(c_detalleventa._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_detalleventa._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(BA.NumberToString(0)),(Object)(BA.numberCast(int.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 };
 }else 
{ BA.debugLineNum = 131;BA.debugLine="Else If c.GetString(\"BCAJAS\") = \"1\" Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("BCAJAS"))),BA.ObjectToString("1"))) { 
 BA.debugLineNum = 132;BA.debugLine="If c.GetString(\"HVD_CANT\") <> c.GetString(\"HVD";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))) { 
 BA.debugLineNum = 134;BA.debugLine="Private oc As Cursor = Starter.skmt.ExecQuery";
Debug.ShouldStop(32);
_oc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_oc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select HVD_CANT from HIST_VENTAS2 WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' and HVD_NUM_REGISTRO = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_NUM_REGISTRO")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("oc", _oc);Debug.locals.put("oc", _oc);
 BA.debugLineNum = 135;BA.debugLine="Private cant2 As Int = 0";
Debug.ShouldStop(64);
_cant2 = BA.numberCast(int.class, 0);Debug.locals.put("cant2", _cant2);Debug.locals.put("cant2", _cant2);
 BA.debugLineNum = 136;BA.debugLine="If oc.RowCount > 0 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean(">",_oc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 137;BA.debugLine="oc.Position = 0";
Debug.ShouldStop(256);
_oc.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 138;BA.debugLine="cant2 = oc.GetString(\"HVD_CANT\")";
Debug.ShouldStop(512);
_cant2 = BA.numberCast(int.class, _oc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))));Debug.locals.put("cant2", _cant2);
 };
 BA.debugLineNum = 140;BA.debugLine="oc.Close";
Debug.ShouldStop(2048);
_oc.runVoidMethod ("Close");
 BA.debugLineNum = 141;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(4096);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 142;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
Debug.ShouldStop(8192);
_label1 = __ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 143;BA.debugLine="label1.TextSize = 12";
Debug.ShouldStop(16384);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 12));
 BA.debugLineNum = 144;BA.debugLine="label1.TextColor = Colors.black";
Debug.ShouldStop(32768);
_label1.runMethod(true,"setTextColor",c_detalleventa.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 145;BA.debugLine="Dim label2 As Label";
Debug.ShouldStop(65536);
_label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 146;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
Debug.ShouldStop(131072);
_label2 = __ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 147;BA.debugLine="label2.TextSize = 12";
Debug.ShouldStop(262144);
_label2.runMethod(true,"setTextSize",BA.numberCast(float.class, 12));
 BA.debugLineNum = 148;BA.debugLine="label2.TextColor = Colors.black";
Debug.ShouldStop(524288);
_label2.runMethod(true,"setTextColor",c_detalleventa.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 149;BA.debugLine="Private bgColor, textColor As Int";
Debug.ShouldStop(1048576);
_bgcolor = RemoteObject.createImmutable(0);Debug.locals.put("bgColor", _bgcolor);
_textcolor = RemoteObject.createImmutable(0);Debug.locals.put("textColor", _textcolor);
 BA.debugLineNum = 150;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul";
Debug.ShouldStop(2097152);
_bgcolor = c_detalleventa.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 177)),(Object)(BA.numberCast(int.class, 200)),(Object)(BA.numberCast(int.class, 249)));Debug.locals.put("bgColor", _bgcolor);
 BA.debugLineNum = 151;BA.debugLine="textColor = Colors.black";
Debug.ShouldStop(4194304);
_textcolor = c_detalleventa.__c.getField(false,"Colors").getField(true,"Black");Debug.locals.put("textColor", _textcolor);
 BA.debugLineNum = 152;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> Subs.traeAl";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO"))),c_detalleventa._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")))) { 
 BA.debugLineNum = 154;BA.debugLine="bgColor = Colors.White";
Debug.ShouldStop(33554432);
_bgcolor = c_detalleventa.__c.getField(false,"Colors").getField(true,"White");Debug.locals.put("bgColor", _bgcolor);
 };
 BA.debugLineNum = 158;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"HV";
Debug.ShouldStop(536870912);
__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (reparto_izca.keymon.lat.c_detalleventa.class, "_createlistitem" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE")))),(Object)(BA.NumberToString((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANTC"))))}, "/",0, 0)))),(Object)(BA.numberCast(int.class, ((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))}, "-",1, 0))))),(Object)(BA.numberCast(int.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))),(Object)(__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getWidth")),(Object)(c_detalleventa.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 118)))),(Object)(__ref.getField(false,"_bmp" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))),(Object)(_bgcolor),(Object)(_textcolor),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO")))),(Object)(c_detalleventa._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_detalleventa._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(BA.NumberToString(0)),(Object)(BA.numberCast(int.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 };
 }}
;
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 166;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery(\"Sele";
Debug.ShouldStop(32);
_c3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c3 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select * from PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_TIPO NOT IN ('SOBRANTE','FALTANTE')"))));Debug.locals.put("c3", _c3);Debug.locals.put("c3", _c3);
 BA.debugLineNum = 167;BA.debugLine="If c3.RowCount>0 Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean(">",_c3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 168;BA.debugLine="For i= 0 To c3.RowCount -1";
Debug.ShouldStop(128);
{
final int step79 = 1;
final int limit79 = RemoteObject.solve(new RemoteObject[] {_c3.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step79 > 0 && _i <= limit79) || (step79 < 0 && _i >= limit79) ;_i = ((int)(0 + _i + step79))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 169;BA.debugLine="c3.Position = i";
Debug.ShouldStop(256);
_c3.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 170;BA.debugLine="If c3.GetString(\"PE_BCAJAS\") = \"1\" Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("=",_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_BCAJAS"))),BA.ObjectToString("1"))) { 
 BA.debugLineNum = 171;BA.debugLine="Private bgColor, textColor As Int";
Debug.ShouldStop(1024);
_bgcolor = RemoteObject.createImmutable(0);Debug.locals.put("bgColor", _bgcolor);
_textcolor = RemoteObject.createImmutable(0);Debug.locals.put("textColor", _textcolor);
 BA.debugLineNum = 172;BA.debugLine="bgColor = Colors.RGB(221, 132, 132)'rosa";
Debug.ShouldStop(2048);
_bgcolor = c_detalleventa.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 221)),(Object)(BA.numberCast(int.class, 132)),(Object)(BA.numberCast(int.class, 132)));Debug.locals.put("bgColor", _bgcolor);
 BA.debugLineNum = 173;BA.debugLine="textColor = Colors.black";
Debug.ShouldStop(4096);
_textcolor = c_detalleventa.__c.getField(false,"Colors").getField(true,"Black");Debug.locals.put("textColor", _textcolor);
 BA.debugLineNum = 174;BA.debugLine="clv_pedido.Add(CreateListItem2(c3.GetString(\"P";
Debug.ShouldStop(8192);
__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (reparto_izca.keymon.lat.c_detalleventa.class, "_createlistitem2" /*RemoteObject*/ ,(Object)(_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE")))),(Object)(_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTOU")))),(Object)(BA.numberCast(int.class, _c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))))),(Object)(BA.numberCast(int.class, 0)),(Object)(__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getWidth")),(Object)(c_detalleventa.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 118)))),(Object)(__ref.getField(false,"_bmp" /*RemoteObject*/ )),(Object)(_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))),(Object)(_bgcolor),(Object)(_textcolor),(Object)(c_detalleventa._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_detalleventa._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CLIENTEOR")))),(Object)(BA.NumberToString(1)),(Object)(BA.numberCast(int.class, _c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 BA.debugLineNum = 175;BA.debugLine="Log(\"#####################\"&c3.GetString(\"PE_P";
Debug.ShouldStop(16384);
c_detalleventa.__c.runVoidMethod ("LogImpl","811862123",RemoteObject.concat(RemoteObject.createImmutable("#####################"),_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE"))),RemoteObject.createImmutable(","),_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))),0);
 }else {
 BA.debugLineNum = 177;BA.debugLine="Private bgColor, textColor As Int";
Debug.ShouldStop(65536);
_bgcolor = RemoteObject.createImmutable(0);Debug.locals.put("bgColor", _bgcolor);
_textcolor = RemoteObject.createImmutable(0);Debug.locals.put("textColor", _textcolor);
 BA.debugLineNum = 178;BA.debugLine="bgColor = Colors.RGB(221, 132, 132)'rosa";
Debug.ShouldStop(131072);
_bgcolor = c_detalleventa.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 221)),(Object)(BA.numberCast(int.class, 132)),(Object)(BA.numberCast(int.class, 132)));Debug.locals.put("bgColor", _bgcolor);
 BA.debugLineNum = 179;BA.debugLine="textColor = Colors.black";
Debug.ShouldStop(262144);
_textcolor = c_detalleventa.__c.getField(false,"Colors").getField(true,"Black");Debug.locals.put("textColor", _textcolor);
 BA.debugLineNum = 180;BA.debugLine="Log(\"#####################\"&c3.GetString(\"PE_P";
Debug.ShouldStop(524288);
c_detalleventa.__c.runVoidMethod ("LogImpl","811862128",RemoteObject.concat(RemoteObject.createImmutable("#####################"),_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE"))),RemoteObject.createImmutable(","),_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))),0);
 BA.debugLineNum = 181;BA.debugLine="clv_pedido.Add(CreateListItem(c3.GetString(\"PE";
Debug.ShouldStop(1048576);
__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (reparto_izca.keymon.lat.c_detalleventa.class, "_createlistitem" /*RemoteObject*/ ,(Object)(_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE")))),(Object)(_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTOU")))),(Object)(BA.numberCast(int.class, _c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))))),(Object)(BA.numberCast(int.class, 0)),(Object)(__ref.getField(false,"_clv_pedido" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getWidth")),(Object)(c_detalleventa.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 118)))),(Object)(__ref.getField(false,"_bmp" /*RemoteObject*/ )),(Object)(_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))),(Object)(_bgcolor),(Object)(_textcolor),(Object)(c_detalleventa._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_detalleventa._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(_c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CLIENTEOR")))),(Object)(BA.NumberToString(1)),(Object)(BA.numberCast(int.class, _c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 };
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 187;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(67108864);
_vc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_vc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select HVD_PROID, HVD_CANT,HVD_COSTO_TOT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT from HIST_VENTAS where BCAJAS = 0 and HVD_CODPROMO ='"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_detalleventa._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),RemoteObject.createImmutable("' and HVD_CLIENTE in (select cuenta from cuentaa)"))))));Debug.locals.put("vc", _vc);Debug.locals.put("vc", _vc);
 BA.debugLineNum = 189;BA.debugLine="Private Cuenta As String = 0";
Debug.ShouldStop(268435456);
_cuenta = BA.NumberToString(0);Debug.locals.put("Cuenta", _cuenta);Debug.locals.put("Cuenta", _cuenta);
 BA.debugLineNum = 190;BA.debugLine="Private arti As String = 0";
Debug.ShouldStop(536870912);
_arti = BA.NumberToString(0);Debug.locals.put("arti", _arti);Debug.locals.put("arti", _arti);
 BA.debugLineNum = 191;BA.debugLine="If vc.RowCount > 0 Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean(">",_vc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 192;BA.debugLine="For i = 0 To vc.RowCount - 1";
Debug.ShouldStop(-2147483648);
{
final int step100 = 1;
final int limit100 = RemoteObject.solve(new RemoteObject[] {_vc.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step100 > 0 && _i <= limit100) || (step100 < 0 && _i >= limit100) ;_i = ((int)(0 + _i + step100))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 193;BA.debugLine="vc.Position = i";
Debug.ShouldStop(1);
_vc.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 194;BA.debugLine="Private cantres As Int = 0";
Debug.ShouldStop(2);
_cantres = BA.numberCast(int.class, 0);Debug.locals.put("cantres", _cantres);Debug.locals.put("cantres", _cantres);
 BA.debugLineNum = 195;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery($";
Debug.ShouldStop(4);
_c4 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c4 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("SELECT IFNULL(PE_CANT,0) AS PE_CANT FROM PEDIDO WHERE PE_PROID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' AND PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA)"))))));Debug.locals.put("c4", _c4);Debug.locals.put("c4", _c4);
 BA.debugLineNum = 196;BA.debugLine="If c4.RowCount > 0 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean(">",_c4.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 197;BA.debugLine="c4.Position = 0";
Debug.ShouldStop(16);
_c4.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 198;BA.debugLine="cantres = c4.GetString(\"PE_CANT\")";
Debug.ShouldStop(32);
_cantres = BA.numberCast(int.class, _c4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))));Debug.locals.put("cantres", _cantres);
 BA.debugLineNum = 199;BA.debugLine="Log(c4.GetString(\"PE_CANT\"))";
Debug.ShouldStop(64);
c_detalleventa.__c.runVoidMethod ("LogImpl","811862147",_c4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))),0);
 }else {
 BA.debugLineNum = 201;BA.debugLine="cantres = 0";
Debug.ShouldStop(256);
_cantres = BA.numberCast(int.class, 0);Debug.locals.put("cantres", _cantres);
 };
 BA.debugLineNum = 206;BA.debugLine="arti = arti + (vc.GetString(\"HVD_CANT\") - vc.Ge";
Debug.ShouldStop(8192);
_arti = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _arti),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),BA.numberCast(double.class, _vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))}, "-",1, 0))}, "+",1, 0));Debug.locals.put("arti", _arti);
 BA.debugLineNum = 207;BA.debugLine="Cuenta = Cuenta + ((vc.GetString(\"HVD_CANT\") -";
Debug.ShouldStop(16384);
_cuenta = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cuenta),(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),BA.numberCast(double.class, _vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))}, "-",1, 0)),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, _vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))))}, "/",0, 0))}, "*",0, 0))}, "+",1, 0));Debug.locals.put("Cuenta", _cuenta);
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 214;BA.debugLine="Private vc2 As Cursor = Starter.skmt.ExecQuery(\"s";
Debug.ShouldStop(2097152);
_vc2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_vc2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) AND BCAJAS = 1"))));Debug.locals.put("vc2", _vc2);Debug.locals.put("vc2", _vc2);
 BA.debugLineNum = 215;BA.debugLine="Private Cuenta1 As String = 0";
Debug.ShouldStop(4194304);
_cuenta1 = BA.NumberToString(0);Debug.locals.put("Cuenta1", _cuenta1);Debug.locals.put("Cuenta1", _cuenta1);
 BA.debugLineNum = 216;BA.debugLine="Private arti1 As String = 0";
Debug.ShouldStop(8388608);
_arti1 = BA.NumberToString(0);Debug.locals.put("arti1", _arti1);Debug.locals.put("arti1", _arti1);
 BA.debugLineNum = 217;BA.debugLine="If vc2.RowCount > 0 Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean(">",_vc2.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 218;BA.debugLine="For i = 0 To vc2.RowCount - 1";
Debug.ShouldStop(33554432);
{
final int step119 = 1;
final int limit119 = RemoteObject.solve(new RemoteObject[] {_vc2.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step119 > 0 && _i <= limit119) || (step119 < 0 && _i >= limit119) ;_i = ((int)(0 + _i + step119))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 219;BA.debugLine="vc2.Position = i";
Debug.ShouldStop(67108864);
_vc2.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 220;BA.debugLine="Dim preu As Float = NumberFormat2(vc2.GetString";
Debug.ShouldStop(134217728);
_preu = BA.numberCast(float.class, c_detalleventa.__c.runMethod(true,"NumberFormat2",(Object)(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, _vc2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANTC"))))}, "/",0, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_detalleventa.__c.getField(true,"False"))));Debug.locals.put("preu", _preu);Debug.locals.put("preu", _preu);
 BA.debugLineNum = 221;BA.debugLine="Private vc3 As Cursor = Starter.skmt.ExecQuery(";
Debug.ShouldStop(268435456);
_vc3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_vc3 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select PRECIOCONVER, CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_vc2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("vc3", _vc3);Debug.locals.put("vc3", _vc3);
 BA.debugLineNum = 222;BA.debugLine="If vc3.RowCount > 0 Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean(">",_vc3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 223;BA.debugLine="vc3.Position = 0";
Debug.ShouldStop(1073741824);
_vc3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 224;BA.debugLine="Cuenta1 = Cuenta1 + ((vc2.GetString(\"CANTC\")-(";
Debug.ShouldStop(-2147483648);
_cuenta1 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cuenta1),(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANTC")))),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT")))),BA.numberCast(double.class, _vc3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONVERSION"))))}, "/",0, 0))}, "-",1, 0)),_preu}, "*",0, 0))}, "+",1, 0));Debug.locals.put("Cuenta1", _cuenta1);
 BA.debugLineNum = 225;BA.debugLine="arti1 = arti1 + (vc2.GetString(\"HVD_CANT\") - v";
Debug.ShouldStop(1);
_arti1 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _arti1),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),BA.numberCast(double.class, _vc2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))}, "-",1, 0))}, "+",1, 0));Debug.locals.put("arti1", _arti1);
 };
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 231;BA.debugLine="Private vc4 As Cursor = Starter.skmt.ExecQuery($\"";
Debug.ShouldStop(64);
_vc4 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_vc4 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) AND BCAJAS = 0 and HVD_CODPROMO <> '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_detalleventa._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("vc4", _vc4);Debug.locals.put("vc4", _vc4);
 BA.debugLineNum = 232;BA.debugLine="Private Cuenta2 As String = 0";
Debug.ShouldStop(128);
_cuenta2 = BA.NumberToString(0);Debug.locals.put("Cuenta2", _cuenta2);Debug.locals.put("Cuenta2", _cuenta2);
 BA.debugLineNum = 233;BA.debugLine="Private arti2 As String = 0";
Debug.ShouldStop(256);
_arti2 = BA.NumberToString(0);Debug.locals.put("arti2", _arti2);Debug.locals.put("arti2", _arti2);
 BA.debugLineNum = 234;BA.debugLine="If vc4.RowCount > 0 Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean(">",_vc4.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 236;BA.debugLine="For i = 0 To vc4.RowCount - 1";
Debug.ShouldStop(2048);
{
final int step134 = 1;
final int limit134 = RemoteObject.solve(new RemoteObject[] {_vc4.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step134 > 0 && _i <= limit134) || (step134 < 0 && _i >= limit134) ;_i = ((int)(0 + _i + step134))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 237;BA.debugLine="vc4.Position = i";
Debug.ShouldStop(4096);
_vc4.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 238;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetString(";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("!",_vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID"))),_vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO"))))) { 
 BA.debugLineNum = 239;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("=",_vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZO"))),BA.NumberToString(0))) { 
 BA.debugLineNum = 240;BA.debugLine="Cuenta2 = Cuenta2 + vc4.GetString(\"HVD_COSTO_";
Debug.ShouldStop(32768);
_cuenta2 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cuenta2),BA.numberCast(double.class, _vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT"))))}, "+",1, 0));Debug.locals.put("Cuenta2", _cuenta2);
 BA.debugLineNum = 241;BA.debugLine="arti2 = arti2 + vc4.GetString(\"HVD_CANT\")";
Debug.ShouldStop(65536);
_arti2 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _arti2),BA.numberCast(double.class, _vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))))}, "+",1, 0));Debug.locals.put("arti2", _arti2);
 }else {
 BA.debugLineNum = 243;BA.debugLine="Private vc5 As Cursor = Starter.skmt.ExecQuer";
Debug.ShouldStop(262144);
_vc5 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_vc5 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("vc5", _vc5);Debug.locals.put("vc5", _vc5);
 BA.debugLineNum = 244;BA.debugLine="If vc5.RowCount > 0 Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean(">",_vc5.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 245;BA.debugLine="vc5.Position= 0";
Debug.ShouldStop(1048576);
_vc5.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 247;BA.debugLine="Cuenta2 = Cuenta2 +((vc4.GetString(\"HVD_CANT";
Debug.ShouldStop(4194304);
_cuenta2 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cuenta2),(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),BA.numberCast(double.class, _vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))}, "-",1, 0)),BA.numberCast(double.class, _vc5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO"))))}, "*",0, 0))}, "+",1, 0));Debug.locals.put("Cuenta2", _cuenta2);
 BA.debugLineNum = 248;BA.debugLine="arti2 = arti2 +(vc4.GetString(\"HVD_CANT\")- v";
Debug.ShouldStop(8388608);
_arti2 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _arti2),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),BA.numberCast(double.class, _vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))}, "-",1, 0))}, "+",1, 0));Debug.locals.put("arti2", _arti2);
 };
 };
 };
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 259;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery($\"S";
Debug.ShouldStop(4);
_c4 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c4 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_detalleventa._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("SELECT IFNULL(PE_CANT,0) AS PE_CANT, iFNULL(PE_COSTO_TOT,0) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_TIPO NOT IN ('SOBRANTE','FALTANTE')")))));Debug.locals.put("c4", _c4);Debug.locals.put("c4", _c4);
 BA.debugLineNum = 260;BA.debugLine="Private Cuenta3 As String = 0";
Debug.ShouldStop(8);
_cuenta3 = BA.NumberToString(0);Debug.locals.put("Cuenta3", _cuenta3);Debug.locals.put("Cuenta3", _cuenta3);
 BA.debugLineNum = 261;BA.debugLine="Private arti3 As String = 0";
Debug.ShouldStop(16);
_arti3 = BA.NumberToString(0);Debug.locals.put("arti3", _arti3);Debug.locals.put("arti3", _arti3);
 BA.debugLineNum = 262;BA.debugLine="If c4.RowCount > 0 Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean(">",_c4.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 263;BA.debugLine="For i = 0 To c4.RowCount -1";
Debug.ShouldStop(64);
{
final int step155 = 1;
final int limit155 = RemoteObject.solve(new RemoteObject[] {_c4.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step155 > 0 && _i <= limit155) || (step155 < 0 && _i >= limit155) ;_i = ((int)(0 + _i + step155))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 264;BA.debugLine="c4.Position = i";
Debug.ShouldStop(128);
_c4.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 265;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")";
Debug.ShouldStop(256);
_arti3 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _arti3),BA.numberCast(double.class, _c4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))))}, "+",1, 0));Debug.locals.put("arti3", _arti3);
 BA.debugLineNum = 266;BA.debugLine="Cuenta3 = Cuenta3 + c4.GetString(\"PE_COSTO_TOT\"";
Debug.ShouldStop(512);
_cuenta3 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cuenta3),BA.numberCast(double.class, _c4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT"))))}, "+",1, 0));Debug.locals.put("Cuenta3", _cuenta3);
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 270;BA.debugLine="If Cuenta < 0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _cuenta),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 271;BA.debugLine="Cuenta = 0";
Debug.ShouldStop(16384);
_cuenta = BA.NumberToString(0);Debug.locals.put("Cuenta", _cuenta);
 };
 BA.debugLineNum = 273;BA.debugLine="If Cuenta1 < 0 Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _cuenta1),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 274;BA.debugLine="Cuenta = 0";
Debug.ShouldStop(131072);
_cuenta = BA.NumberToString(0);Debug.locals.put("Cuenta", _cuenta);
 };
 BA.debugLineNum = 276;BA.debugLine="If Cuenta2 < 0 Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _cuenta2),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 277;BA.debugLine="Cuenta = 0";
Debug.ShouldStop(1048576);
_cuenta = BA.NumberToString(0);Debug.locals.put("Cuenta", _cuenta);
 };
 BA.debugLineNum = 279;BA.debugLine="If Cuenta3 < 0 Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _cuenta3),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 280;BA.debugLine="Cuenta = 0";
Debug.ShouldStop(8388608);
_cuenta = BA.NumberToString(0);Debug.locals.put("Cuenta", _cuenta);
 };
 BA.debugLineNum = 283;BA.debugLine="If arti < 0 Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _arti),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 284;BA.debugLine="arti = 0";
Debug.ShouldStop(134217728);
_arti = BA.NumberToString(0);Debug.locals.put("arti", _arti);
 };
 BA.debugLineNum = 286;BA.debugLine="If arti1 < 0 Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _arti1),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 287;BA.debugLine="arti = 0";
Debug.ShouldStop(1073741824);
_arti = BA.NumberToString(0);Debug.locals.put("arti", _arti);
 };
 BA.debugLineNum = 289;BA.debugLine="If arti2 < 0 Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _arti2),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 290;BA.debugLine="arti = 0";
Debug.ShouldStop(2);
_arti = BA.NumberToString(0);Debug.locals.put("arti", _arti);
 };
 BA.debugLineNum = 292;BA.debugLine="If arti3 < 0 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _arti3),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 293;BA.debugLine="arti = 0";
Debug.ShouldStop(16);
_arti = BA.NumberToString(0);Debug.locals.put("arti", _arti);
 };
 BA.debugLineNum = 296;BA.debugLine="Log(Cuenta&\",\"&Cuenta1&\",\"&Cuenta2&\",\"&Cuenta3)";
Debug.ShouldStop(128);
c_detalleventa.__c.runVoidMethod ("LogImpl","811862244",RemoteObject.concat(_cuenta,RemoteObject.createImmutable(","),_cuenta1,RemoteObject.createImmutable(","),_cuenta2,RemoteObject.createImmutable(","),_cuenta3),0);
 BA.debugLineNum = 297;BA.debugLine="Log(arti&\",\"&arti1&\",\"&arti2&\",\"&arti3)";
Debug.ShouldStop(256);
c_detalleventa.__c.runVoidMethod ("LogImpl","811862245",RemoteObject.concat(_arti,RemoteObject.createImmutable(","),_arti1,RemoteObject.createImmutable(","),_arti2,RemoteObject.createImmutable(","),_arti3),0);
 BA.debugLineNum = 298;BA.debugLine="If Cuenta + Cuenta1 + Cuenta2 + Cuenta3 < 0 Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("<",RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cuenta),BA.numberCast(double.class, _cuenta1),BA.numberCast(double.class, _cuenta2),BA.numberCast(double.class, _cuenta3)}, "+++",3, 0),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 299;BA.debugLine="L_TOTAL.Text = 0";
Debug.ShouldStop(1024);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 }else {
 BA.debugLineNum = 301;BA.debugLine="L_TOTAL.Text = NumberFormat2((Cuenta + Cuenta1 +";
Debug.ShouldStop(4096);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_detalleventa.__c.runMethod(true,"NumberFormat2",(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cuenta),BA.numberCast(double.class, _cuenta1),BA.numberCast(double.class, _cuenta2),BA.numberCast(double.class, _cuenta3)}, "+++",3, 0))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_detalleventa.__c.getField(true,"True")))));
 };
 BA.debugLineNum = 303;BA.debugLine="If arti + arti1 +arti2 + arti3 < 0 Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("<",RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _arti),BA.numberCast(double.class, _arti1),BA.numberCast(double.class, _arti2),BA.numberCast(double.class, _arti3)}, "+++",3, 0),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 304;BA.debugLine="L_CANT.Text = 0";
Debug.ShouldStop(32768);
__ref.getField(false,"_l_cant" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 }else {
 BA.debugLineNum = 306;BA.debugLine="L_CANT.Text = NumberFormat2((arti + arti1 +arti2";
Debug.ShouldStop(131072);
__ref.getField(false,"_l_cant" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_detalleventa.__c.runMethod(true,"NumberFormat2",(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _arti),BA.numberCast(double.class, _arti1),BA.numberCast(double.class, _arti2),BA.numberCast(double.class, _arti3)}, "+++",3, 0))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(c_detalleventa.__c.getField(true,"True")))));
 };
 BA.debugLineNum = 310;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b4xpage_closerequest(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_CloseRequest (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,321);
if (RapidSub.canDelegate("b4xpage_closerequest")) { return __ref.runUserSub(false, "c_detalleventa","b4xpage_closerequest", __ref);}
ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(null,__ref);
rsub.remoteResumableSub = anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSubForFilter();
rsub.resume(null, null);
return RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.keywords.Common.ResumableSubWrapper"), rsub.remoteResumableSub);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_detalleventa parent,RemoteObject __ref) {
this.parent = parent;
this.__ref = __ref;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
reparto_izca.keymon.lat.c_detalleventa parent;

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_CloseRequest (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,321);
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;

    while (true) {
        switch (state) {
            case -1:
{
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,RemoteObject.createImmutable(null));return;}
case 0:
//C
this.state = -1;
Debug.locals.put("_ref", __ref);
 BA.debugLineNum = 324;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(8);
parent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 326;BA.debugLine="Return False";
Debug.ShouldStop(32);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"False")));return;};
 BA.debugLineNum = 327;BA.debugLine="End Sub";
Debug.ShouldStop(64);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static RemoteObject  _b4xpage_created(RemoteObject __ref,RemoteObject _root1) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_Created (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,56);
if (RapidSub.canDelegate("b4xpage_created")) { return __ref.runUserSub(false, "c_detalleventa","b4xpage_created", __ref, _root1);}
Debug.locals.put("Root1", _root1);
 BA.debugLineNum = 56;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 57;BA.debugLine="Root = Root1";
Debug.ShouldStop(16777216);
__ref.setField ("_root" /*RemoteObject*/ ,_root1);
 BA.debugLineNum = 58;BA.debugLine="B4XPages.SetTitle(Me, \"Detalle de venta\")";
Debug.ShouldStop(33554432);
c_detalleventa._b4xpages.runVoidMethod ("_settitle" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref),(Object)((RemoteObject.createImmutable("Detalle de venta"))));
 BA.debugLineNum = 60;BA.debugLine="g.Initialize(\"GPS\")";
Debug.ShouldStop(134217728);
__ref.getField(false,"_g" /*RemoteObject*/ ).runVoidMethod ("Initialize",(Object)(RemoteObject.createImmutable("GPS")));
 BA.debugLineNum = 61;BA.debugLine="Root.LoadLayout(\"detalleVenta\")";
Debug.ShouldStop(268435456);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("detalleVenta")),__ref.getField(false, "ba"));
 BA.debugLineNum = 62;BA.debugLine="b_borra.Visible = False";
Debug.ShouldStop(536870912);
__ref.getField(false,"_b_borra" /*RemoteObject*/ ).runMethod(true,"setVisible",c_detalleventa.__c.getField(true,"False"));
 BA.debugLineNum = 63;BA.debugLine="Titulo.Text = \"Pedido\"";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_titulo" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Pedido"));
 BA.debugLineNum = 64;BA.debugLine="End Sub";
Debug.ShouldStop(-2147483648);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _class_globals(RemoteObject __ref) throws Exception{
 //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
 //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
c_detalleventa._root = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_root",c_detalleventa._root);
 //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
c_detalleventa._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",c_detalleventa._xui);
 //BA.debugLineNum = 4;BA.debugLine="Dim g As GPS";
c_detalleventa._g = RemoteObject.createNew ("anywheresoftware.b4a.gps.GPS");__ref.setField("_g",c_detalleventa._g);
 //BA.debugLineNum = 5;BA.debugLine="Dim clie_id As String";
c_detalleventa._clie_id = RemoteObject.createImmutable("");__ref.setField("_clie_id",c_detalleventa._clie_id);
 //BA.debugLineNum = 6;BA.debugLine="Dim sDate,sTime As String";
c_detalleventa._sdate = RemoteObject.createImmutable("");__ref.setField("_sdate",c_detalleventa._sdate);
c_detalleventa._stime = RemoteObject.createImmutable("");__ref.setField("_stime",c_detalleventa._stime);
 //BA.debugLineNum = 7;BA.debugLine="Dim usuario As String";
c_detalleventa._usuario = RemoteObject.createImmutable("");__ref.setField("_usuario",c_detalleventa._usuario);
 //BA.debugLineNum = 8;BA.debugLine="Dim c As Cursor";
c_detalleventa._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_c",c_detalleventa._c);
 //BA.debugLineNum = 10;BA.debugLine="Dim b_regresar As Button";
c_detalleventa._b_regresar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_regresar",c_detalleventa._b_regresar);
 //BA.debugLineNum = 11;BA.debugLine="Dim ListView1 As ListView";
c_detalleventa._listview1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_listview1",c_detalleventa._listview1);
 //BA.debugLineNum = 12;BA.debugLine="Dim L_CANT As Label";
c_detalleventa._l_cant = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_cant",c_detalleventa._l_cant);
 //BA.debugLineNum = 13;BA.debugLine="Dim L_TOTAL As Label";
c_detalleventa._l_total = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_total",c_detalleventa._l_total);
 //BA.debugLineNum = 14;BA.debugLine="Dim b_borra As Button";
c_detalleventa._b_borra = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_borra",c_detalleventa._b_borra);
 //BA.debugLineNum = 15;BA.debugLine="Dim Existe As String";
c_detalleventa._existe = RemoteObject.createImmutable("");__ref.setField("_existe",c_detalleventa._existe);
 //BA.debugLineNum = 16;BA.debugLine="Dim result As String";
c_detalleventa._result = RemoteObject.createImmutable("");__ref.setField("_result",c_detalleventa._result);
 //BA.debugLineNum = 18;BA.debugLine="Dim cuantos As String";
c_detalleventa._cuantos = RemoteObject.createImmutable("");__ref.setField("_cuantos",c_detalleventa._cuantos);
 //BA.debugLineNum = 19;BA.debugLine="Dim nombre_prod As String";
c_detalleventa._nombre_prod = RemoteObject.createImmutable("");__ref.setField("_nombre_prod",c_detalleventa._nombre_prod);
 //BA.debugLineNum = 20;BA.debugLine="Dim cuantos_pedido As String";
c_detalleventa._cuantos_pedido = RemoteObject.createImmutable("");__ref.setField("_cuantos_pedido",c_detalleventa._cuantos_pedido);
 //BA.debugLineNum = 21;BA.debugLine="Private Titulo As Label";
c_detalleventa._titulo = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_titulo",c_detalleventa._titulo);
 //BA.debugLineNum = 22;BA.debugLine="Private P1 As Panel";
c_detalleventa._p1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p1",c_detalleventa._p1);
 //BA.debugLineNum = 23;BA.debugLine="Private lv2 As ListView";
c_detalleventa._lv2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_lv2",c_detalleventa._lv2);
 //BA.debugLineNum = 24;BA.debugLine="Private p_principal As Panel";
c_detalleventa._p_principal = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_principal",c_detalleventa._p_principal);
 //BA.debugLineNum = 25;BA.debugLine="Dim clv_pedido As CustomListView";
c_detalleventa._clv_pedido = RemoteObject.createNew ("b4a.example3.customlistview");__ref.setField("_clv_pedido",c_detalleventa._clv_pedido);
 //BA.debugLineNum = 26;BA.debugLine="Private p_prods As Panel";
c_detalleventa._p_prods = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_prods",c_detalleventa._p_prods);
 //BA.debugLineNum = 27;BA.debugLine="Private l_prodX As Label";
c_detalleventa._l_prodx = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_prodx",c_detalleventa._l_prodx);
 //BA.debugLineNum = 28;BA.debugLine="Private l_pCant As Label";
c_detalleventa._l_pcant = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_pcant",c_detalleventa._l_pcant);
 //BA.debugLineNum = 29;BA.debugLine="Private et_pCant As EditText";
c_detalleventa._et_pcant = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_et_pcant",c_detalleventa._et_pcant);
 //BA.debugLineNum = 30;BA.debugLine="Dim bmp As Bitmap";
c_detalleventa._bmp = RemoteObject.createNew ("anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper");__ref.setField("_bmp",c_detalleventa._bmp);
 //BA.debugLineNum = 31;BA.debugLine="Dim etCantHasFocus As Boolean = False";
c_detalleventa._etcanthasfocus = c_detalleventa.__c.getField(true,"False");__ref.setField("_etcanthasfocus",c_detalleventa._etcanthasfocus);
 //BA.debugLineNum = 32;BA.debugLine="Dim totalProds As Int = 0";
c_detalleventa._totalprods = BA.numberCast(int.class, 0);__ref.setField("_totalprods",c_detalleventa._totalprods);
 //BA.debugLineNum = 33;BA.debugLine="Dim totalCompra As Int = 0";
c_detalleventa._totalcompra = BA.numberCast(int.class, 0);__ref.setField("_totalcompra",c_detalleventa._totalcompra);
 //BA.debugLineNum = 34;BA.debugLine="Dim prodsMap As Map";
c_detalleventa._prodsmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");__ref.setField("_prodsmap",c_detalleventa._prodsmap);
 //BA.debugLineNum = 35;BA.debugLine="Dim reconstruirPedido As Boolean = False";
c_detalleventa._reconstruirpedido = c_detalleventa.__c.getField(true,"False");__ref.setField("_reconstruirpedido",c_detalleventa._reconstruirpedido);
 //BA.debugLineNum = 36;BA.debugLine="Dim promoABorrar As String";
c_detalleventa._promoaborrar = RemoteObject.createImmutable("");__ref.setField("_promoaborrar",c_detalleventa._promoaborrar);
 //BA.debugLineNum = 37;BA.debugLine="Private b_guardar As Button";
c_detalleventa._b_guardar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_guardar",c_detalleventa._b_guardar);
 //BA.debugLineNum = 38;BA.debugLine="Private b_prodMas As Button";
c_detalleventa._b_prodmas = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_prodmas",c_detalleventa._b_prodmas);
 //BA.debugLineNum = 39;BA.debugLine="Private b_prodMenos As Button";
c_detalleventa._b_prodmenos = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_prodmenos",c_detalleventa._b_prodmenos);
 //BA.debugLineNum = 40;BA.debugLine="Private b_prodMenosC As Button";
c_detalleventa._b_prodmenosc = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_prodmenosc",c_detalleventa._b_prodmenosc);
 //BA.debugLineNum = 41;BA.debugLine="Private l_pCantC As Label";
c_detalleventa._l_pcantc = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_pcantc",c_detalleventa._l_pcantc);
 //BA.debugLineNum = 42;BA.debugLine="Private et_pCantC As EditText";
c_detalleventa._et_pcantc = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_et_pcantc",c_detalleventa._et_pcantc);
 //BA.debugLineNum = 43;BA.debugLine="Private b_prodMasC As Button";
c_detalleventa._b_prodmasc = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_prodmasc",c_detalleventa._b_prodmasc);
 //BA.debugLineNum = 44;BA.debugLine="Private p_botMasMenC As Panel";
c_detalleventa._p_botmasmenc = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_botmasmenc",c_detalleventa._p_botmasmenc);
 //BA.debugLineNum = 45;BA.debugLine="Private p_botMasMen As Panel";
c_detalleventa._p_botmasmen = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_botmasmen",c_detalleventa._p_botmasmen);
 //BA.debugLineNum = 46;BA.debugLine="Private l_cajas As Label";
c_detalleventa._l_cajas = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_cajas",c_detalleventa._l_cajas);
 //BA.debugLineNum = 47;BA.debugLine="Private l_piezas As Label";
c_detalleventa._l_piezas = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_piezas",c_detalleventa._l_piezas);
 //BA.debugLineNum = 48;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _createlistitem(RemoteObject __ref,RemoteObject _text,RemoteObject _preciou,RemoteObject _inv,RemoteObject _inv2,RemoteObject _width,RemoteObject _height,RemoteObject _img,RemoteObject _prodid,RemoteObject _bc,RemoteObject _tc,RemoteObject _promo,RemoteObject _cliente_original,RemoteObject _clienterecha,RemoteObject _bandera,RemoteObject _consecutivo) throws Exception{
try {
		Debug.PushSubsStack("CreateListItem (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,442);
if (RapidSub.canDelegate("createlistitem")) { return __ref.runUserSub(false, "c_detalleventa","createlistitem", __ref, _text, _preciou, _inv, _inv2, _width, _height, _img, _prodid, _bc, _tc, _promo, _cliente_original, _clienterecha, _bandera, _consecutivo);}
RemoteObject _p = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _cs = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
Debug.locals.put("Text", _text);
Debug.locals.put("precioU", _preciou);
Debug.locals.put("inv", _inv);
Debug.locals.put("inv2", _inv2);
Debug.locals.put("Width", _width);
Debug.locals.put("Height", _height);
Debug.locals.put("img", _img);
Debug.locals.put("prodId", _prodid);
Debug.locals.put("bc", _bc);
Debug.locals.put("tc", _tc);
Debug.locals.put("promo", _promo);
Debug.locals.put("cliente_original", _cliente_original);
Debug.locals.put("clienterecha", _clienterecha);
Debug.locals.put("bandera", _bandera);
Debug.locals.put("consecutivo", _consecutivo);
 BA.debugLineNum = 442;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri";
Debug.ShouldStop(33554432);
 BA.debugLineNum = 443;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
Debug.ShouldStop(67108864);
_p = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_p = __ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreatePanel",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));Debug.locals.put("p", _p);Debug.locals.put("p", _p);
 BA.debugLineNum = 444;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(134217728);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 445;BA.debugLine="cs.Initialize";
Debug.ShouldStop(268435456);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 446;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
Debug.ShouldStop(536870912);
_p.runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(_width),(Object)(_height));
 BA.debugLineNum = 447;BA.debugLine="p.LoadLayout(\"prodItem2\")";
Debug.ShouldStop(1073741824);
_p.runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("prodItem2")),__ref.getField(false, "ba"));
 BA.debugLineNum = 448;BA.debugLine="p_prods.Color = bc";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runVoidMethod ("setColor",_bc);
 BA.debugLineNum = 449;BA.debugLine="l_prodX.TextColor = tc";
Debug.ShouldStop(1);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setTextColor",_tc);
 BA.debugLineNum = 450;BA.debugLine="precioU = $\"$1.2{precioU}\"$";
Debug.ShouldStop(2);
_preciou = (RemoteObject.concat(RemoteObject.createImmutable(""),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.2")),(Object)((_preciou))),RemoteObject.createImmutable("")));Debug.locals.put("precioU", _preciou);
 BA.debugLineNum = 451;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \"   $\"";
Debug.ShouldStop(4);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(_text,c_detalleventa.__c.getField(true,"CRLF"),RemoteObject.createImmutable("Cant: "),_inv2,RemoteObject.createImmutable("   $"),_preciou)));
 BA.debugLineNum = 452;BA.debugLine="If promo <> \"1\" And precioU = 0 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("!",_promo,BA.ObjectToString("1")) && RemoteObject.solveBoolean("=",_preciou,BA.NumberToString(0))) { 
 BA.debugLineNum = 453;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app";
Debug.ShouldStop(16);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_cs.runMethod(false,"Color",(Object)(c_detalleventa.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 123)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0))))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(_text,c_detalleventa.__c.getField(true,"CRLF"),RemoteObject.createImmutable("Cant: "),_inv2,RemoteObject.createImmutable("   $"),_preciou)))).runMethod(false,"PopAll").getObject()));
 };
 BA.debugLineNum = 455;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF";
Debug.ShouldStop(64);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(false,"setTag",((RemoteObject.concat(RemoteObject.createImmutable("ID: "),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodid))),RemoteObject.createImmutable(""),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_detalleventa.__c.getField(true,"CRLF")))),RemoteObject.createImmutable(""),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_text))),RemoteObject.createImmutable(""),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_detalleventa.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Precio: $"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.2")),(Object)((_preciou))),RemoteObject.createImmutable(""),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_detalleventa.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Inv: "),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_inv))),RemoteObject.createImmutable(" pzs")))));
 BA.debugLineNum = 458;BA.debugLine="l_pCant.Tag = Round2(precioU.Replace(\",\",\"\"),2)&\"";
Debug.ShouldStop(512);
__ref.getField(false,"_l_pcant" /*RemoteObject*/ ).runMethod(false,"setTag",(RemoteObject.concat(c_detalleventa.__c.runMethod(true,"Round2",(Object)(BA.numberCast(double.class, _preciou.runMethod(true,"replace",(Object)(BA.ObjectToString(",")),(Object)(RemoteObject.createImmutable(""))))),(Object)(BA.numberCast(int.class, 2))),RemoteObject.createImmutable("|"),_inv,RemoteObject.createImmutable("|"),_prodid,RemoteObject.createImmutable("|"),_promo,RemoteObject.createImmutable("|"),_inv2,RemoteObject.createImmutable("|"),_cliente_original,RemoteObject.createImmutable("|"),_clienterecha,RemoteObject.createImmutable("|"),_bandera,RemoteObject.createImmutable("|"),_consecutivo)));
 BA.debugLineNum = 459;BA.debugLine="et_pCant.Tag = Round2(precioU.Replace(\",\",\"\"),2)&";
Debug.ShouldStop(1024);
__ref.getField(false,"_et_pcant" /*RemoteObject*/ ).runMethod(false,"setTag",(RemoteObject.concat(c_detalleventa.__c.runMethod(true,"Round2",(Object)(BA.numberCast(double.class, _preciou.runMethod(true,"replace",(Object)(BA.ObjectToString(",")),(Object)(RemoteObject.createImmutable(""))))),(Object)(BA.numberCast(int.class, 2))),RemoteObject.createImmutable("|"),_inv,RemoteObject.createImmutable("|"),_prodid,RemoteObject.createImmutable("|"),_promo,RemoteObject.createImmutable("|"),_inv2,RemoteObject.createImmutable("|"),_cliente_original,RemoteObject.createImmutable("|"),_clienterecha,RemoteObject.createImmutable("|"),_bandera,RemoteObject.createImmutable("|"),_consecutivo)));
 BA.debugLineNum = 460;BA.debugLine="p_prods.Tag = l_pCant.tag";
Debug.ShouldStop(2048);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(false,"setTag",__ref.getField(false,"_l_pcant" /*RemoteObject*/ ).runMethod(false,"getTag"));
 BA.debugLineNum = 462;BA.debugLine="l_pCant.Text = inv";
Debug.ShouldStop(8192);
__ref.getField(false,"_l_pcant" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_inv));
 BA.debugLineNum = 466;BA.debugLine="l_pCant.BringToFront";
Debug.ShouldStop(131072);
__ref.getField(false,"_l_pcant" /*RemoteObject*/ ).runVoidMethod ("BringToFront");
 BA.debugLineNum = 467;BA.debugLine="et_pCant.SendToBack";
Debug.ShouldStop(262144);
__ref.getField(false,"_et_pcant" /*RemoteObject*/ ).runVoidMethod ("SendToBack");
 BA.debugLineNum = 468;BA.debugLine="p_botMasMenC.Visible = False";
Debug.ShouldStop(524288);
__ref.getField(false,"_p_botmasmenc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_detalleventa.__c.getField(true,"False"));
 BA.debugLineNum = 469;BA.debugLine="l_cajas.Visible = False";
Debug.ShouldStop(1048576);
__ref.getField(false,"_l_cajas" /*RemoteObject*/ ).runMethod(true,"setVisible",c_detalleventa.__c.getField(true,"False"));
 BA.debugLineNum = 471;BA.debugLine="Return p";
Debug.ShouldStop(4194304);
if (true) return RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), _p.getObject());
 BA.debugLineNum = 472;BA.debugLine="End Sub";
Debug.ShouldStop(8388608);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _createlistitem2(RemoteObject __ref,RemoteObject _text,RemoteObject _preciou,RemoteObject _inv,RemoteObject _inv2,RemoteObject _width,RemoteObject _height,RemoteObject _img,RemoteObject _prodid,RemoteObject _bc,RemoteObject _tc,RemoteObject _promo,RemoteObject _cliente_original,RemoteObject _clienterecha,RemoteObject _bandera,RemoteObject _consecutivo) throws Exception{
try {
		Debug.PushSubsStack("CreateListItem2 (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,474);
if (RapidSub.canDelegate("createlistitem2")) { return __ref.runUserSub(false, "c_detalleventa","createlistitem2", __ref, _text, _preciou, _inv, _inv2, _width, _height, _img, _prodid, _bc, _tc, _promo, _cliente_original, _clienterecha, _bandera, _consecutivo);}
RemoteObject _p = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _cs = RemoteObject.declareNull("anywheresoftware.b4a.objects.CSBuilder");
Debug.locals.put("Text", _text);
Debug.locals.put("precioU", _preciou);
Debug.locals.put("inv", _inv);
Debug.locals.put("inv2", _inv2);
Debug.locals.put("Width", _width);
Debug.locals.put("Height", _height);
Debug.locals.put("img", _img);
Debug.locals.put("prodId", _prodid);
Debug.locals.put("bc", _bc);
Debug.locals.put("tc", _tc);
Debug.locals.put("promo", _promo);
Debug.locals.put("cliente_original", _cliente_original);
Debug.locals.put("clienterecha", _clienterecha);
Debug.locals.put("bandera", _bandera);
Debug.locals.put("consecutivo", _consecutivo);
 BA.debugLineNum = 474;BA.debugLine="Sub CreateListItem2(Text As String, precioU As Str";
Debug.ShouldStop(33554432);
 BA.debugLineNum = 475;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
Debug.ShouldStop(67108864);
_p = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_p = __ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreatePanel",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));Debug.locals.put("p", _p);Debug.locals.put("p", _p);
 BA.debugLineNum = 476;BA.debugLine="Private cs As CSBuilder";
Debug.ShouldStop(134217728);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.objects.CSBuilder");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 477;BA.debugLine="cs.Initialize";
Debug.ShouldStop(268435456);
_cs.runVoidMethod ("Initialize");
 BA.debugLineNum = 478;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
Debug.ShouldStop(536870912);
_p.runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(_width),(Object)(_height));
 BA.debugLineNum = 479;BA.debugLine="p.LoadLayout(\"prodItem2\")";
Debug.ShouldStop(1073741824);
_p.runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("prodItem2")),__ref.getField(false, "ba"));
 BA.debugLineNum = 480;BA.debugLine="p_prods.Color = bc";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runVoidMethod ("setColor",_bc);
 BA.debugLineNum = 481;BA.debugLine="l_prodX.TextColor = tc";
Debug.ShouldStop(1);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setTextColor",_tc);
 BA.debugLineNum = 482;BA.debugLine="precioU = $\"$1.2{precioU}\"$";
Debug.ShouldStop(2);
_preciou = (RemoteObject.concat(RemoteObject.createImmutable(""),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.2")),(Object)((_preciou))),RemoteObject.createImmutable("")));Debug.locals.put("precioU", _preciou);
 BA.debugLineNum = 483;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \"   $\"";
Debug.ShouldStop(4);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(_text,c_detalleventa.__c.getField(true,"CRLF"),RemoteObject.createImmutable("Cant: "),_inv2,RemoteObject.createImmutable("   $"),_preciou)));
 BA.debugLineNum = 485;BA.debugLine="If promo <> \"1\" And precioU = 0 Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("!",_promo,BA.ObjectToString("1")) && RemoteObject.solveBoolean("=",_preciou,BA.NumberToString(0))) { 
 BA.debugLineNum = 486;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app";
Debug.ShouldStop(32);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_cs.runMethod(false,"Color",(Object)(c_detalleventa.__c.getField(false,"Colors").runMethod(true,"RGB",(Object)(BA.numberCast(int.class, 123)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0))))).runMethod(false,"Append",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(_text,c_detalleventa.__c.getField(true,"CRLF"),RemoteObject.createImmutable("Cant: "),_inv2,RemoteObject.createImmutable("   $"),_preciou)))).runMethod(false,"PopAll").getObject()));
 };
 BA.debugLineNum = 488;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF";
Debug.ShouldStop(128);
__ref.getField(false,"_l_prodx" /*RemoteObject*/ ).runMethod(false,"setTag",((RemoteObject.concat(RemoteObject.createImmutable("ID: "),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_prodid))),RemoteObject.createImmutable(""),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_detalleventa.__c.getField(true,"CRLF")))),RemoteObject.createImmutable(""),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_text))),RemoteObject.createImmutable(""),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_detalleventa.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Precio: $"),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.2")),(Object)((_preciou))),RemoteObject.createImmutable(""),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_detalleventa.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Inv: "),c_detalleventa.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_inv))),RemoteObject.createImmutable(" pzs")))));
 BA.debugLineNum = 490;BA.debugLine="l_pCantC.Tag = Round2(precioU.Replace(\",\",\"\"),2)&";
Debug.ShouldStop(512);
__ref.getField(false,"_l_pcantc" /*RemoteObject*/ ).runMethod(false,"setTag",(RemoteObject.concat(c_detalleventa.__c.runMethod(true,"Round2",(Object)(BA.numberCast(double.class, _preciou.runMethod(true,"replace",(Object)(BA.ObjectToString(",")),(Object)(RemoteObject.createImmutable(""))))),(Object)(BA.numberCast(int.class, 2))),RemoteObject.createImmutable("|"),_inv,RemoteObject.createImmutable("|"),_prodid,RemoteObject.createImmutable("|"),_promo,RemoteObject.createImmutable("|"),_inv2,RemoteObject.createImmutable("|"),_cliente_original,RemoteObject.createImmutable("|"),_clienterecha,RemoteObject.createImmutable("|"),_bandera,RemoteObject.createImmutable("|"),_consecutivo)));
 BA.debugLineNum = 491;BA.debugLine="et_pCantC.Tag = Round2(precioU.Replace(\",\",\"\"),2)";
Debug.ShouldStop(1024);
__ref.getField(false,"_et_pcantc" /*RemoteObject*/ ).runMethod(false,"setTag",(RemoteObject.concat(c_detalleventa.__c.runMethod(true,"Round2",(Object)(BA.numberCast(double.class, _preciou.runMethod(true,"replace",(Object)(BA.ObjectToString(",")),(Object)(RemoteObject.createImmutable(""))))),(Object)(BA.numberCast(int.class, 2))),RemoteObject.createImmutable("|"),_inv,RemoteObject.createImmutable("|"),_prodid,RemoteObject.createImmutable("|"),_promo,RemoteObject.createImmutable("|"),_inv2,RemoteObject.createImmutable("|"),_cliente_original,RemoteObject.createImmutable("|"),_clienterecha,RemoteObject.createImmutable("|"),_bandera,RemoteObject.createImmutable("|"),_consecutivo)));
 BA.debugLineNum = 492;BA.debugLine="p_prods.Tag = l_pCantC.tag";
Debug.ShouldStop(2048);
__ref.getField(false,"_p_prods" /*RemoteObject*/ ).runMethod(false,"setTag",__ref.getField(false,"_l_pcantc" /*RemoteObject*/ ).runMethod(false,"getTag"));
 BA.debugLineNum = 494;BA.debugLine="l_pCantC.Text = NumberFormat2(inv/Subs.traeConver";
Debug.ShouldStop(8192);
__ref.getField(false,"_l_pcantc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_detalleventa.__c.runMethod(true,"NumberFormat2",(Object)(RemoteObject.solve(new RemoteObject[] {_inv,BA.numberCast(double.class, c_detalleventa._subs.runMethod(true,"_traeconversion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_prodid)))}, "/",0, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(c_detalleventa.__c.getField(true,"False")))));
 BA.debugLineNum = 498;BA.debugLine="l_pCantC.BringToFront";
Debug.ShouldStop(131072);
__ref.getField(false,"_l_pcantc" /*RemoteObject*/ ).runVoidMethod ("BringToFront");
 BA.debugLineNum = 499;BA.debugLine="et_pCantC.SendToBack";
Debug.ShouldStop(262144);
__ref.getField(false,"_et_pcantc" /*RemoteObject*/ ).runVoidMethod ("SendToBack");
 BA.debugLineNum = 500;BA.debugLine="p_botMasMen.Visible = False";
Debug.ShouldStop(524288);
__ref.getField(false,"_p_botmasmen" /*RemoteObject*/ ).runMethod(true,"setVisible",c_detalleventa.__c.getField(true,"False"));
 BA.debugLineNum = 501;BA.debugLine="l_piezas.Visible = False";
Debug.ShouldStop(1048576);
__ref.getField(false,"_l_piezas" /*RemoteObject*/ ).runMethod(true,"setVisible",c_detalleventa.__c.getField(true,"False"));
 BA.debugLineNum = 503;BA.debugLine="Return p";
Debug.ShouldStop(4194304);
if (true) return RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), _p.getObject());
 BA.debugLineNum = 504;BA.debugLine="End Sub";
Debug.ShouldStop(8388608);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _cuentaprods(RemoteObject __ref,RemoteObject _accion) throws Exception{
try {
		Debug.PushSubsStack("cuentaProds (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,751);
if (RapidSub.canDelegate("cuentaprods")) { return __ref.runUserSub(false, "c_detalleventa","cuentaprods", __ref, _accion);}
Debug.locals.put("accion", _accion);
 BA.debugLineNum = 751;BA.debugLine="Sub cuentaProds(accion As String)";
Debug.ShouldStop(16384);
 BA.debugLineNum = 913;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _gps_locationchanged(RemoteObject __ref,RemoteObject _location1) throws Exception{
try {
		Debug.PushSubsStack("GPS_LocationChanged (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,312);
if (RapidSub.canDelegate("gps_locationchanged")) { return __ref.runUserSub(false, "c_detalleventa","gps_locationchanged", __ref, _location1);}
Debug.locals.put("Location1", _location1);
 BA.debugLineNum = 312;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 315;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _initialize(RemoteObject __ref,RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("Initialize (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,51);
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "c_detalleventa","initialize", __ref, _ba);}
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
 BA.debugLineNum = 51;BA.debugLine="Public Sub Initialize As Object";
Debug.ShouldStop(262144);
 BA.debugLineNum = 52;BA.debugLine="Return Me";
Debug.ShouldStop(524288);
if (true) return __ref;
 BA.debugLineNum = 53;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _l_pcant_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("l_pCant_Click (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,920);
if (RapidSub.canDelegate("l_pcant_click")) { return __ref.runUserSub(false, "c_detalleventa","l_pcant_click", __ref);}
 BA.debugLineNum = 920;BA.debugLine="Private Sub l_pCant_Click";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 922;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _l_pcantc_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("l_pCantC_Click (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,1052);
if (RapidSub.canDelegate("l_pcantc_click")) { return __ref.runUserSub(false, "c_detalleventa","l_pcantc_click", __ref);}
 BA.debugLineNum = 1052;BA.debugLine="Private Sub l_pCantC_Click";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 1054;BA.debugLine="End Sub";
Debug.ShouldStop(536870912);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _listview1_itemlongclick(RemoteObject __ref,RemoteObject _position,RemoteObject _value) throws Exception{
try {
		Debug.PushSubsStack("ListView1_ItemLongClick (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,329);
if (RapidSub.canDelegate("listview1_itemlongclick")) { return __ref.runUserSub(false, "c_detalleventa","listview1_itemlongclick", __ref, _position, _value);}
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 329;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu";
Debug.ShouldStop(256);
 BA.debugLineNum = 373;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _lv2_itemclick(RemoteObject __ref,RemoteObject _position,RemoteObject _value) throws Exception{
try {
		Debug.PushSubsStack("lv2_ItemClick (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,375);
if (RapidSub.canDelegate("lv2_itemclick")) { return __ref.runUserSub(false, "c_detalleventa","lv2_itemclick", __ref, _position, _value);}
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 375;BA.debugLine="Sub lv2_ItemClick (Position As Int, Value As Objec";
Debug.ShouldStop(4194304);
 BA.debugLineNum = 436;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_prods_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("p_prods_Click (c_detalleventa) ","c_detalleventa",9,__ref.getField(false, "ba"),__ref,924);
if (RapidSub.canDelegate("p_prods_click")) { return __ref.runUserSub(false, "c_detalleventa","p_prods_click", __ref);}
 BA.debugLineNum = 924;BA.debugLine="Sub p_prods_Click";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 925;BA.debugLine="Log(Sender.As(Panel).tag)";
Debug.ShouldStop(268435456);
c_detalleventa.__c.runVoidMethod ("LogImpl","812713985",BA.ObjectToString((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), c_detalleventa.__c.runMethod(false,"Sender",__ref.getField(false, "ba")))).runMethod(false,"getTag")),0);
 BA.debugLineNum = 926;BA.debugLine="End Sub";
Debug.ShouldStop(536870912);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}