InsideOrders fix
This commit is contained in:
@@ -35,17 +35,14 @@ else if ($_REQUEST['isDuplicate']=="true") {
|
||||
$duplicate=true;
|
||||
//get data
|
||||
$focus->retrieve($_REQUEST['return_id']);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$new_number=true;
|
||||
//dates
|
||||
$focus->register_date = date("d.m.Y");
|
||||
$OPT ['check_parent_id'] = false;
|
||||
|
||||
// add mz@bim-it.pl 11.11.2023
|
||||
$products = [];
|
||||
if ($_REQUEST['fromProductsBySalesReport']) {
|
||||
$requestProducts = explode('*', $_POST['insideOrderProducts']);
|
||||
if ($_REQUEST['fromProductionScheduler']) {
|
||||
$requestProducts = explode('*', $_REQUEST['insideOrderProducts']);
|
||||
if (is_array($requestProducts)) {
|
||||
$position = 0;
|
||||
foreach ($requestProducts as $p) {
|
||||
@@ -95,6 +92,7 @@ else {
|
||||
$products[] = $row;
|
||||
}
|
||||
}
|
||||
$focus->position_list = json_encode($products);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -152,7 +150,7 @@ $edit->ss->assign("STOCK_PW", $stock_pw);
|
||||
$edit->ss->assign("STOCK_RW", $stock_rw);
|
||||
$edit->ss->assign("EMPLOYERS", $eas);
|
||||
if (isset($products)) {
|
||||
$edit->ss->assign("POSITION_LIST", str_replace('"', "'", json_encode($products)));
|
||||
$edit->ss->assign("POSITION_LIST", str_replace('"', "'", json_encode($products)));
|
||||
}
|
||||
echo $edit->display ();
|
||||
//loading view
|
||||
|
||||
Reference in New Issue
Block a user