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

Revert Fix [Projekt: xRM-Sales][TicketNr.: 1081505][Mehrwährungsfähigkeit] and Fix Offer ITem

parent 835a6aaa
No related branches found
No related tags found
No related merge requests found
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<include relativeToChangelogFile="true" file="CurrencyRate/changelog.xml"/>
<include relativeToChangelogFile="true" file="alter_Mst_Team.xml"/>
<include relativeToChangelogFile="true" file="EmailFilter/alter_emailFilterHandling.xml"/>
<include relativeToChangelogFile="true" file="EmailFilter/insert_recipientStatusBounced.xml"/>
......
......@@ -4,16 +4,19 @@ import("system.neon");
import("Offer_lib");
import("system.entities");
var loadConfig = entities.createConfigForLoadingRows()
.entity("Offeritem_entity")
.addParameter("OfferId_param", vars.get("$field.OFFERID"));
var offerItemCount = entities.getRowCount(loadConfig);
if(offerItemCount > 0)
{
result.string(neon.COMPONENTSTATE_DISABLED);
}
else
if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW || vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT)
{
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED);
var loadConfig = entities.createConfigForLoadingRows()
.entity("Offeritem_entity")
.addParameter("OfferId_param", vars.get("$field.OFFERID"));
var offerItemCount = entities.getRowCount(loadConfig);
if(offerItemCount > 0)
{
result.string(neon.COMPONENTSTATE_DISABLED);
}
else
{
result.string(OfferUtils.isEditable(vars.get("$field.STATUS")) ? neon.COMPONENTSTATE_AUTO : neon.COMPONENTSTATE_DISABLED);
}
}
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