mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
fix taxtypes issue
This commit is contained in:
@ -79,7 +79,7 @@ class ItemsController extends Controller
|
|||||||
foreach ($request->taxes as $tax) {
|
foreach ($request->taxes as $tax) {
|
||||||
$item->taxes()->updateOrCreate(
|
$item->taxes()->updateOrCreate(
|
||||||
['tax_type_id' => $tax['tax_type_id']],
|
['tax_type_id' => $tax['tax_type_id']],
|
||||||
['amount' => $tax['amount'], 'percent' => $tax['percent'], 'percent' => $tax['name']]
|
['amount' => $tax['amount'], 'percent' => $tax['percent'], 'name' => $tax['name']]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user