mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fix comma in expense amount
This commit is contained in:
parent
3e39100eda
commit
3e10c76bc7
@ -23,8 +23,6 @@ class CreateExpenseRequest extends ExpenseRequest
|
|||||||
*/
|
*/
|
||||||
public function rules()
|
public function rules()
|
||||||
{
|
{
|
||||||
return [
|
return [];
|
||||||
'amount' => 'numeric',
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,8 +21,6 @@ class UpdateExpenseRequest extends ExpenseRequest
|
|||||||
*/
|
*/
|
||||||
public function rules()
|
public function rules()
|
||||||
{
|
{
|
||||||
return [
|
return [];
|
||||||
'amount' => 'numeric',
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -479,7 +479,7 @@
|
|||||||
write: function(value) {
|
write: function(value) {
|
||||||
// When changing the converted amount we're updating
|
// When changing the converted amount we're updating
|
||||||
// the exchange rate rather than change the amount
|
// the exchange rate rather than change the amount
|
||||||
self.exchange_rate(NINJA.parseFloat(value) / self.amount());
|
self.exchange_rate(roundSignificant(NINJA.parseFloat(value) / self.amount()));
|
||||||
//self.amount(roundToTwo(value / self.exchange_rate()));
|
//self.amount(roundToTwo(value / self.exchange_rate()));
|
||||||
}
|
}
|
||||||
}, self);
|
}, self);
|
||||||
|
Loading…
Reference in New Issue
Block a user