feat(account): perbarui logika pemrosesan data akun

- Ganti penggunaan model TempAccount dengan Account.
- Perbarui jalur file CSV yang digunakan untuk pemrosesan.
- Tambahkan logika untuk mengatur nilai default untuk 'start_year_bal' dan 'closure_date'.
- Gunakan firstOrNew untuk menyimpan data akun.
This commit is contained in:
Daeng Deni Mardaeni
2025-04-08 16:34:42 +07:00
parent 5024f3eb58
commit 21fd3f1b99
2 changed files with 33 additions and 16 deletions

View File

@@ -15,14 +15,18 @@ class Account extends Model
*/
protected $fillable = [
'account_number',
'customer_code',
'customer_no',
'currency',
'opening_date',
'branch_code',
'product_category',
'co_code',
'open_category',
'start_year_bal',
'closure_date',
'account_type',
'stmt_email',
'stmt_sent_type'
];
// Relationships
public function customer()
{