format date
This commit is contained in:
@ -5,6 +5,7 @@ namespace App\Imports\Purchases\Sheets;
|
||||
use App\Abstracts\Import;
|
||||
use App\Models\Banking\Transaction as Model;
|
||||
use App\Http\Requests\Banking\Transaction as Request;
|
||||
use Jenssegers\Date\Date;
|
||||
|
||||
class BillTransactions extends Import
|
||||
{
|
||||
@ -17,6 +18,7 @@ class BillTransactions extends Import
|
||||
{
|
||||
$row['company_id'] = session('company_id');
|
||||
$row['type'] = 'expense';
|
||||
$row['paid_at'] = Date::parse($row['paid_at'])->format('Y-m-d H:i:s');
|
||||
|
||||
// Make reconciled field integer
|
||||
if (isset($row['reconciled'])) {
|
||||
|
Reference in New Issue
Block a user