feat: Introduce InvoiceStep enum and add reminder_step column to invoice table.

This commit is contained in:
pbao9
2026-03-02 14:44:07 +07:00
parent 0c260a7e1c
commit db3a8c4949
3 changed files with 53 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace App\Enums\Invoice;
enum InvoiceStep: int
{
case STEP_1 = 1;
case STEP_2 = 2;
case STEP_3 = 3;
case STEP_4 = 4;
case STEP_5 = 5;
public function label(): string
{
return match ($this) {
self::STEP_1 => '1 ngày trước khi hết hạn',
self::STEP_2 => '3 ngày trước khi hết hạn',
self::STEP_3 => '7 ngày trước khi hết hạn',
self::STEP_4 => '14 ngày trước khi hết hạn',
self::STEP_5 => '30 ngày trước khi hết hạn',
};
}
}