ICS modules

This commit is contained in:
Thanakorn S
2026-03-21 14:58:15 +07:00
parent 2e558a55bb
commit a4f474b5df
45 changed files with 3110 additions and 597 deletions
+10 -3
View File
@@ -4,7 +4,14 @@
require '../../../assets/utils/db_auth.php';
$id = (int)$data['id'];
$warehouse = (int)$data['warehouse'];
// identity source of zone and aisle
if(empty($data["type"])){
$warehouse = (int)$data['warehouse'];
$zone = $data['zone'];
}else{
$warehouse = (int)$data['warehouse_'.$data["type"]];
$zone = $data['zone_'.$data["type"]];
}
$sql = "SELECT *
FROM md_storage
@@ -18,7 +25,7 @@
$sth->execute([
":company_id" => $company_id,
":warehouse" => $warehouse,
":zone" => $data["zone"]
":zone" => $zone
]);
db_check($sth, $answer);
@@ -26,7 +33,7 @@
$output = [];
foreach ($pre as $key => $value) {
$output = array_merge($output, range($value["aisle_form"], $value["aisle_to"]));
$output = array_merge($output, range($value["aisle_from"], $value["aisle_to"]));
}
$answer["output"] = $output;