22 lines
461 B
PHP
22 lines
461 B
PHP
<?php
|
|
/**
|
|
* PaymentPosting
|
|
*
|
|
* Builds the journal entry when a supplier payment is recorded.
|
|
* DR: Accounts Payable
|
|
* CR: Bank / Cash
|
|
*/
|
|
class PaymentPosting
|
|
{
|
|
private PDO $pdo;
|
|
private int $companyId;
|
|
|
|
public function __construct(PDO $pdo, int $company_id)
|
|
{
|
|
$this->pdo = $pdo;
|
|
$this->companyId = $company_id;
|
|
}
|
|
|
|
// TODO: build(int $payment_id): array — returns [header, lines] ready for JournalManager
|
|
}
|