Skip to content
Snippets Groups Projects
Commit 1b7144f7 authored by Sebastian Pongratz's avatar Sebastian Pongratz :ping_pong:
Browse files

Merge branch 'sales_2001747_FixProductPriceValidation' into '2021.2.1'

[Projekt: xRM-Sales][TicketNr.: 2001747][Productprice: kein Preis anlegbar wegen Validierung]

See merge request xrm/basic!1418
parents 901d7fdb 756be580
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