142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
$status[] = $v;
}
}
$row->status = implode(', ', $status);
$row->date = \DateTime::createFromFormat('Y-m-d', $row->date);
$row->date = $row->date->format('d/m/Y');
}
$row->credit = Utils::money_format($row->credit, ',', '');
$row->debit = Utils::money_format($row->debit, ',', '');
$previous_id = $row->id;
yield $row;
}
}
static public function importCSV(Year $year, array $file, int $user_id)
{
if ($year->closed) {
|
>
<
|
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
$status[] = $v;
}
}
$row->status = implode(', ', $status);
$row->date = \DateTime::createFromFormat('Y-m-d', $row->date);
$row->date = $row->date->format('d/m/Y');
$previous_id = $row->id;
}
$row->credit = Utils::money_format($row->credit, ',', '');
$row->debit = Utils::money_format($row->debit, ',', '');
yield $row;
}
}
static public function importCSV(Year $year, array $file, int $user_id)
{
if ($year->closed) {
|