accounting workflows

This commit is contained in:
Thanakorn S
2026-05-20 10:17:02 +07:00
parent 04a683bd02
commit 7396db6ffc
199 changed files with 23539 additions and 5345 deletions
+2 -4
View File
@@ -30,10 +30,8 @@
if (!empty($_FILES['product_image']['name'])) {
if ($id > 0) {
$sql = "SELECT `product_image` FROM md_product WHERE company_id = :company_id AND id = :id";
$sth = $pdo2->prepare($sql);
$sth->execute([':company_id' => $company_id, ':id' => $id]);
$uploader->cleanup($sth->fetchColumn(), '');
$product = new ProductManager($pdo2, $company_id);
$uploader->cleanup($product->getProductImage($id), '');
}
$errors = $uploader->upload('product_image');