Commit 160e9785 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Fix null metadata crash on invoice_items insert

JSONB column has NOT NULL constraint — pass empty array instead of null
when no price override metadata exists.
Co-Authored-By: 's avatarClaude Sonnet 4.6 <noreply@anthropic.com>
parent a979f30b
...@@ -909,7 +909,7 @@ public function confirm(): void ...@@ -909,7 +909,7 @@ public function confirm(): void
'unit_price' => $programFee, 'unit_price' => $programFee,
'discount_amount' => 0, 'discount_amount' => 0,
'tax_amount' => 0, 'tax_amount' => 0,
'metadata' => $programItemMeta ?: null, 'metadata' => $programItemMeta ?: [],
]; ];
} }
......
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