close #727 Fixed: Invoice/Bill new tax added get not selected

This commit is contained in:
cuneytsenturk
2019-01-15 15:58:28 +03:00
parent 7b65cedb41
commit 82e5a48d7d
6 changed files with 17 additions and 5 deletions

View File

@ -33,7 +33,13 @@ class Taxes extends Controller
'compound' => trans('taxes.compound'),
];
$html = view('modals.taxes.create', compact('types'))->render();
$tax_selector = false;
if (request()->has('tax_selector')) {
$tax_selector = request()->get('tax_selector');
}
$html = view('modals.taxes.create', compact('types', 'tax_selector'))->render();
return response()->json([
'success' => true,