import validation fixed create and edit action on invoice, bill, revenue, payment.

refs #392
This commit is contained in:
cuneytsenturk
2018-06-25 17:53:43 +03:00
parent 409f83ae54
commit 55ac8447fc
16 changed files with 154 additions and 136 deletions

View File

@ -208,4 +208,18 @@ class Accounts extends Controller
return redirect('banking/accounts');
}
public function currency()
{
$account_id = request('account_id');
$account = Account::find($account_id);
// Get currency object
$currency = Currency::where('code', $account->currency_code)->first();
$account->currency_rate = $currency->rate;
return response()->json($account);
}
}