accounting workflows
This commit is contained in:
@@ -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,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user