mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-22 14:04:01 +00:00
import bank record
This commit is contained in:
@@ -23,7 +23,7 @@ class ImportsBankRecord implements ToModel, WithHeadingRow, WithBatchInserts, Wi
|
||||
public function model($row = [])
|
||||
{
|
||||
$date = Date::excelToDateTimeObject($row['date']);
|
||||
$credit = $row['credit'];
|
||||
$credit = (float) $row['credit'];
|
||||
|
||||
$transaction = Transaction::whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])
|
||||
->where('type', TransactionType::PAYMENT)->where('owner_type', Booking::class)
|
||||
|
||||
Reference in New Issue
Block a user