TWYN#57971 rapporten inclusief btw
svn path=/Website/branches/v2019.1/; revision=43170
This commit is contained in:
@@ -438,7 +438,7 @@ function model_bgt_budgetmutatie()
|
||||
if ((!jsondata.amountto || jsondata.amountto == 0) && (!jsondata.vatto || jsondata.vatto == 0))
|
||||
abort_with_warning(L("bgt_budgetmutatie_err2").format(L("bgt_budgetmutatie_bedrag"), L("bgt_budgetmutatie_btwbedrag")));
|
||||
|
||||
if ((Math.abs(jsondata.amountto) != Math.abs(jsondata.vatto)) || jsondata.amountto == 0 || jsondata.vatto == 0)
|
||||
if ((Math.sign(jsondata.amountto) != Math.sign(jsondata.vatto)) || jsondata.amountto == 0 || jsondata.vatto == 0)
|
||||
abort_with_warning("Bedrag en btw moeten hetzelfde teken hebben");
|
||||
jsondata.amountfrom = -1 * jsondata.amountto;
|
||||
jsondata.vatfrom = -1 * jsondata.vatto;
|
||||
|
||||
Reference in New Issue
Block a user