Skip to content
Snippets Groups Projects
Commit 756be580 authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon:
Browse files

[Projekt: xRM-Sales][TicketNr.: 2001747][Productprice: keien Preise anlegbar wegen Validierung]

parent 6af24386
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ if(vars.getString("$param.IgnoreOnValidation_param") != "true")
|| Utils.isNullOrEmptyString(currPriceList["relationId"]) && Utils.isNullOrEmptyString(vars.get("$param.ContactId_param")))
&& currPriceList["currency"] == currency)
{
if(currPriceList["validFrom"] <= validFrom && (validTo >= currPriceList["validTo"] || Utils.isNotNullOrEmptyString(currPriceList["validTo"])))
if(currPriceList["validFrom"] >= validFrom && (validTo >= currPriceList["validTo"] || Utils.isNullOrEmptyString(validTo)))
{
result.string(translate.withArguments("There already exists a %0 price with the same type of pricelist, quantity and currency in the defined range.", [vars.get("$field.BUYSELL")]));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment