fix onboarding bugs

This commit is contained in:
Thanakorn S
2026-05-21 16:51:19 +07:00
parent 86b1aa9d62
commit f2b87cfd0f
7 changed files with 28 additions and 12 deletions
+6 -1
View File
@@ -17,6 +17,11 @@
$answer['output'] = $wh->getWarehouseList($type, $sku, $id);
}
$answer['success'] = 1;
if (empty($answer['output'])) {
$answer['success'] = 0;
$answer['message'] = 'No warehouse found. Please go to <b>Inventory → Warehouse</b> to create your first warehouse before using this page.';
} else {
$answer['success'] = 1;
}
exit(json_encode($answer));
?>