missing sample import files

This commit is contained in:
denisdulici
2020-01-20 00:21:37 +03:00
parent 9574f154a7
commit de1a090ff6
28 changed files with 97 additions and 56 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Exports\Sales\Sheets;
use App\Models\Sale\Invoice as Model;
use Jenssegers\Date\Date;
use Maatwebsite\Excel\Concerns\FromCollection;
use Maatwebsite\Excel\Concerns\ShouldAutoSize;
use Maatwebsite\Excel\Concerns\WithHeadings;
@@ -35,11 +36,12 @@ class Invoices implements FromCollection, ShouldAutoSize, WithHeadings, WithMapp
$model->invoice_number,
$model->order_number,
$model->status,
$model->invoiced_at,
$model->due_at,
Date::parse($model->invoiced_at)->format('Y-m-d'),
Date::parse($model->due_at)->format('Y-m-d'),
$model->amount,
$model->currency_code,
$model->currency_rate,
$model->category_id,
$model->contact_id,
$model->contact_name,
$model->contact_email,
@@ -47,7 +49,6 @@ class Invoices implements FromCollection, ShouldAutoSize, WithHeadings, WithMapp
$model->contact_phone,
$model->contact_address,
$model->notes,
$model->category_id,
$model->footer,
];
}
@@ -63,6 +64,7 @@ class Invoices implements FromCollection, ShouldAutoSize, WithHeadings, WithMapp
'amount',
'currency_code',
'currency_rate',
'category_id',
'contact_id',
'contact_name',
'contact_email',
@@ -70,7 +72,6 @@ class Invoices implements FromCollection, ShouldAutoSize, WithHeadings, WithMapp
'contact_phone',
'contact_address',
'notes',
'category_id',
'footer',
];
}