Lot, Serial, ExpiryDate

This commit is contained in:
Thanakorn S
2026-04-25 14:37:00 +07:00
parent 92d116fd21
commit 3cc5baba3f
35 changed files with 3518 additions and 1890 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
session_start();
require '../../../assets/utils/db_auth.php';
$sql = "SELECT *
FROM md_lot
WHERE
company_id = :company_id AND
product_sku = :product_sku AND
lot_number LIKE :keyword
ORDER BY lot_number ASC
LIMIT 50";
$sth = $pdo2->prepare($sql);
$sth->execute([
":company_id" => $company_id,
":product_sku" => $data["product_sku"] ?? '',
":keyword" => '%'.$data["keyword"].'%'
]);
db_check($sth, $answer);
$answer["result"] = $sth->fetchAll(PDO::FETCH_ASSOC);
$answer["success"] = 1;
exit(json_encode($answer));
?>