feat: Introduce InvoiceStep enum and add reminder_step column to invoice table.
This commit is contained in:
@@ -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',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user