diff --git a/src/Patient/Entity/PatientSession.php b/src/Patient/Entity/PatientSession.php index e3851669..9299bd28 100644 --- a/src/Patient/Entity/PatientSession.php +++ b/src/Patient/Entity/PatientSession.php @@ -95,11 +95,11 @@ class PatientSession private ?string $discountType = null; /** مقدار خام تخفیف (درصد یا ریال، بسته به نوع) */ - #[ORM\Column(name: 'discount_value', type: 'integer')] + #[ORM\Column(name: 'discount_value', type: 'integer', options: ['default' => 0])] private int $discountValue = 0; /** مبلغ محاسبه‌شده‌ی تخفیف به ریال (سقف: مبلغ نهایی) */ - #[ORM\Column(name: 'discount_rials', type: 'integer')] + #[ORM\Column(name: 'discount_rials', type: 'integer', options: ['default' => 0])] private int $discountRials = 0; /** منبع تخفیف: id قانون تخفیف اعمال‌شده (audit)؛ null اگر دستی یا بدون تخفیف */ diff --git a/src/Settlement/Entity/WalletTransaction.php b/src/Settlement/Entity/WalletTransaction.php index 9681364b..086be721 100644 --- a/src/Settlement/Entity/WalletTransaction.php +++ b/src/Settlement/Entity/WalletTransaction.php @@ -64,7 +64,7 @@ class WalletTransaction #[ORM\Column(type: 'string', length: 120, nullable: true)] private ?string $reference = null; - #[ORM\Column(type: 'string', length: 15)] + #[ORM\Column(type: 'string', length: 15, options: ['default' => self::STATUS_CONFIRMED])] private string $status = self::STATUS_CONFIRMED; #[ORM\Column(name: 'created_at', type: 'integer')]