Commit 72b1eb8f authored by DevPilot's avatar DevPilot

fix(installments): نوع الورقة في enum هو check مش cheque

parent f39de0e0
...@@ -160,7 +160,7 @@ final class ChequeService ...@@ -160,7 +160,7 @@ final class ChequeService
foreach ($cheques as $chq) { foreach ($cheques as $chq) {
try { try {
$instrumentId = $db->insert('negotiable_instruments', [ $instrumentId = $db->insert('negotiable_instruments', [
'instrument_type' => 'cheque', 'instrument_type' => 'check', // قيمة الـ enum الفعلية
'direction' => 'receivable', 'direction' => 'receivable',
'instrument_number' => (string) ($chq['cheque_number'] ?? ('INST-' . $chq['id'])), 'instrument_number' => (string) ($chq['cheque_number'] ?? ('INST-' . $chq['id'])),
'amount' => (string) $chq['cheque_amount'], 'amount' => (string) $chq['cheque_amount'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment