fix taxtypes issue

This commit is contained in:
raishvaria
2019-11-12 14:32:43 +05:30
parent 418ad89087
commit cb328f86ae

View File

@ -79,7 +79,7 @@ class ItemsController extends Controller
foreach ($request->taxes as $tax) {
$item->taxes()->updateOrCreate(
['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']]
);
}
}