import bank record

This commit is contained in:
Omair Saleh
2023-03-13 01:17:09 +08:00
parent 2e4395d649
commit b474cec411
@@ -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)