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