create stock and stock logs

This commit is contained in:
2025-06-10 18:38:06 +07:00
parent 1a2ddb59d4
commit 51079aa567
36 changed files with 1621 additions and 311 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Enums;
enum StockChangeType: string
{
case INCREASE = 'increase';
case DECREASE = 'decrease';
case ADJUSTMENT = 'adjustment'; // Untuk kasus dimana quantity sama tapi perlu dicatat
case NO_CHANGE = 'no_change'; // Untuk kasus dimana quantity sama dan tidak perlu dicatat
public function label(): string
{
return match($this) {
self::INCREASE => 'Penambahan',
self::DECREASE => 'Pengurangan',
self::ADJUSTMENT => 'Penyesuaian',
self::NO_CHANGE => 'Tidak Ada Perubahan'
};
}
}