Fixing style errors.

This commit is contained in:
stickler-ci 2022-02-07 10:00:17 +00:00
parent ed2ff38318
commit 09efa97a31

View File

@ -34,7 +34,6 @@ $action = GETPOST('action', 'alphanohtml');
$permissiontoproduce = GETPOST('permissiontoproduce', 'int'); $permissiontoproduce = GETPOST('permissiontoproduce', 'int');
if ($action == 'updateselectbatchbywarehouse' && $permissiontoproduce) { if ($action == 'updateselectbatchbywarehouse' && $permissiontoproduce) {
$TRes = array(); $TRes = array();
$sql = "SELECT pb.batch, pb.rowid, ps.fk_entrepot, pb.qty, e.ref as label, ps.fk_product"; $sql = "SELECT pb.batch, pb.rowid, ps.fk_entrepot, pb.qty, e.ref as label, ps.fk_product";
@ -55,7 +54,6 @@ if($action == 'updateselectbatchbywarehouse' && $permissiontoproduce) {
print json_encode($TRes); print json_encode($TRes);
} elseif ($action == 'updateselectwarehousebybatch' && $permissiontoproduce) { } elseif ($action == 'updateselectwarehousebybatch' && $permissiontoproduce) {
$res = 0; $res = 0;
$sql = "SELECT pb.batch, pb.rowid, ps.fk_entrepot, e.ref, pb.qty"; $sql = "SELECT pb.batch, pb.rowid, ps.fk_entrepot, e.ref, pb.qty";
@ -76,8 +74,4 @@ if($action == 'updateselectbatchbywarehouse' && $permissiontoproduce) {
} }
print json_encode($res); print json_encode($res);
} }