close #434 Fixed: Cannot Import Data

This commit is contained in:
cuneytsenturk
2018-08-07 16:39:54 +03:00
parent 9d8029893f
commit 36df336578
3 changed files with 11 additions and 12 deletions

View File

@ -234,8 +234,8 @@ class Items extends Controller
*/
public function export()
{
\Excel::create('items', function($excel) {
$excel->sheet('items', function($sheet) {
\Excel::create('items', function ($excel) {
$excel->sheet('items', function ($sheet) {
$sheet->fromModel(Item::filter(request()->input())->get()->makeHidden([
'id', 'company_id', 'item_id', 'created_at', 'updated_at', 'deleted_at'
]));
@ -315,7 +315,7 @@ class Items extends Controller
if ($input_items) {
foreach ($input_items as $key => $item) {
$price = (double) $item['price'];
$price = money($item['price'], $currency_code)->getAmount();
$quantity = (double) $item['quantity'];
$item_tax_total= 0;