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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user