Skip to content

Commit

Permalink
fixed #167
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Dec 24, 2017
1 parent 8a40bfe commit bc3cf0d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Api/Expenses/Bills.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function store(Request $request)
}

$bill_item['item_id'] = $item_id;
$bill_item['name'] = $item['name'];
$bill_item['name'] = str_limit($item['name'], 180, '');
$bill_item['sku'] = $item_sku;
$bill_item['quantity'] = $item['quantity'];
$bill_item['price'] = $item['price'];
Expand Down Expand Up @@ -161,7 +161,7 @@ public function update(Bill $bill, Request $request)
}

$bill_item['item_id'] = $item_id;
$bill_item['name'] = $item['name'];
$bill_item['name'] = str_limit($item['name'], 180, '');
$bill_item['sku'] = $item_sku;
$bill_item['quantity'] = $item['quantity'];
$bill_item['price'] = $item['price'];
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Api/Incomes/Invoices.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function store(Request $request)
}

$invoice_item['item_id'] = $item_id;
$invoice_item['name'] = $item['name'];
$invoice_item['name'] = str_limit($item['name'], 180, '');
$invoice_item['sku'] = $item_sku;
$invoice_item['quantity'] = $item['quantity'];
$invoice_item['price'] = $item['price'];
Expand Down Expand Up @@ -212,7 +212,7 @@ public function update(Invoice $invoice, Request $request)
}

$invoice_item['item_id'] = $item_id;
$invoice_item['name'] = $item['name'];
$invoice_item['name'] = str_limit($item['name'], 180, '');
$invoice_item['sku'] = $item_sku;
$invoice_item['quantity'] = $item['quantity'];
$invoice_item['price'] = $item['price'];
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Expenses/Bills.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function store(Request $request)
}

$bill_item['item_id'] = $item['item_id'];
$bill_item['name'] = $item['name'];
$bill_item['name'] = str_limit($item['name'], 180, '');
$bill_item['sku'] = $item_sku;
$bill_item['quantity'] = $item['quantity'];
$bill_item['price'] = $item['price'];
Expand Down Expand Up @@ -396,7 +396,7 @@ public function update(Bill $bill, Request $request)
}

$bill_item['item_id'] = $item['item_id'];
$bill_item['name'] = $item['name'];
$bill_item['name'] = str_limit($item['name'], 180, '');
$bill_item['sku'] = $item_sku;
$bill_item['quantity'] = $item['quantity'];
$bill_item['price'] = $item['price'];
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Incomes/Invoices.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function store(Request $request)
}

$invoice_item['item_id'] = $item['item_id'];
$invoice_item['name'] = $item['name'];
$invoice_item['name'] = str_limit($item['name'], 180, '');
$invoice_item['sku'] = $item_sku;
$invoice_item['quantity'] = $item['quantity'];
$invoice_item['price'] = $item['price'];
Expand Down Expand Up @@ -388,7 +388,7 @@ public function update(Invoice $invoice, Request $request)
}

$invoice_item['item_id'] = $item['item_id'];
$invoice_item['name'] = $item['name'];
$invoice_item['name'] = str_limit($item['name'], 180, '');
$invoice_item['sku'] = $item_sku;
$invoice_item['quantity'] = $item['quantity'];
$invoice_item['price'] = $item['price'];
Expand Down

0 comments on commit bc3cf0d

Please sign in to comment.