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
+3 -5
View File
@@ -13,10 +13,8 @@
$uploader = new FileUploader($include_url . 'uploads/contact/');
if ($id > 0) {
$sql = "SELECT `contact_image` FROM md_contact WHERE company_id = :company_id AND id = :id";
$sth = $pdo2->prepare($sql);
$sth->execute([':company_id' => $company_id, ':id' => $id]);
$uploader->cleanup($sth->fetchColumn(), $data['keep_files'] ?? '');
$contact = new ContactManager($pdo2, $company_id);
$uploader->cleanup($contact->getContactImage($id), $data['keep_files'] ?? '');
}
$errors = $uploader->upload('contact_image');
@@ -50,4 +48,4 @@
}
exit(json_encode($answer));
?>
?>