remove codeigniter
This commit is contained in:
@@ -10,7 +10,7 @@ class Payment extends BaseModel
|
||||
protected $table = 'payments';
|
||||
|
||||
/**
|
||||
* CI: useTimestamps = false because DB handles created_at/updated_at (defaults/triggers).
|
||||
* legacy: useTimestamps = false because DB handles created_at/updated_at (defaults/triggers).
|
||||
* Keep OFF in Laravel too.
|
||||
*/
|
||||
public $timestamps = false;
|
||||
@@ -58,7 +58,7 @@ class Payment extends BaseModel
|
||||
}
|
||||
|
||||
/* =========================
|
||||
* CI method equivalents
|
||||
* legacy method equivalents
|
||||
* ========================= */
|
||||
|
||||
public static function getPaymentsByParentId(int $parentId): array
|
||||
@@ -135,7 +135,7 @@ class Payment extends BaseModel
|
||||
|
||||
/**
|
||||
* Get latest payment (date/amount/status) per invoice for given invoice IDs.
|
||||
* Matches your CI logic: statuses in ['Full','Paid','Partially Paid'].
|
||||
* Matches your legacy logic: statuses in ['Full','Paid','Partially Paid'].
|
||||
*/
|
||||
public static function getPaymentsByInvoice($invoiceIds): array
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user