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
+11 -1
View File
@@ -287,6 +287,16 @@ class ContactManager {
return $sth->fetch(PDO::FETCH_ASSOC);
}
public function getContactImage(int $id): string
{
$sth = $this->pdo->prepare(
"SELECT contact_image FROM md_contact
WHERE company_id = :company_id AND id = :id"
);
$sth->execute([':company_id' => $this->company_id, ':id' => $id]);
return (string)($sth->fetchColumn() ?: '');
}
/**
* Search contacts by name keyword — for live autocomplete on stock forms.
*
@@ -437,4 +447,4 @@ class ContactManager {
':company_id' => $this->company_id,
]);
}
}
}