Fixing style errors.
This commit is contained in:
parent
9537fb3808
commit
797f30a2db
@ -48,7 +48,7 @@ if ($action == 'updateselectbatchbywarehouse' && $permissiontoproduce) {
|
|||||||
|
|
||||||
if ($resql) {
|
if ($resql) {
|
||||||
while ($obj = $db->fetch_object($resql)) {
|
while ($obj = $db->fetch_object($resql)) {
|
||||||
if(empty($TRes[$obj->batch])){
|
if (empty($TRes[$obj->batch])) {
|
||||||
$TRes[$obj->batch] = $obj->qty;
|
$TRes[$obj->batch] = $obj->qty;
|
||||||
} else {
|
} else {
|
||||||
$TRes[$obj->batch] += $obj->qty;
|
$TRes[$obj->batch] += $obj->qty;
|
||||||
@ -58,7 +58,6 @@ if ($action == 'updateselectbatchbywarehouse' && $permissiontoproduce) {
|
|||||||
|
|
||||||
echo json_encode($TRes);
|
echo json_encode($TRes);
|
||||||
exit();
|
exit();
|
||||||
|
|
||||||
} elseif ($action == 'updateselectwarehousebybatch' && $permissiontoproduce) {
|
} elseif ($action == 'updateselectwarehousebybatch' && $permissiontoproduce) {
|
||||||
$res = 0;
|
$res = 0;
|
||||||
|
|
||||||
@ -81,5 +80,4 @@ if ($action == 'updateselectbatchbywarehouse' && $permissiontoproduce) {
|
|||||||
|
|
||||||
echo json_encode($res);
|
echo json_encode($res);
|
||||||
exit();
|
exit();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user