use of org.adempiere.ad.expression.api.LogicExpressionResult in project metasfresh-webui-api by metasfresh.
the class DocumentChangesCollector method collectDisplayedIfChanged.
@Override
public void collectDisplayedIfChanged(final IDocumentFieldView documentField, final LogicExpressionResult valueOld, final ReasonSupplier reason) {
// If there is no change, don't collect the value
final LogicExpressionResult value = documentField.getDisplayed();
if (value.equalsByNameAndValue(valueOld)) {
return;
}
final ReasonSupplier reasonNew = reason.add("displayed", value);
documentChanges(documentField).collectDisplayedChanged(documentField, reasonNew);
}
use of org.adempiere.ad.expression.api.LogicExpressionResult in project metasfresh-webui-api by metasfresh.
the class DocumentChangesCollector method collectMandatoryIfChanged.
@Override
public void collectMandatoryIfChanged(final IDocumentFieldView documentField, final LogicExpressionResult valueOld, final ReasonSupplier reason) {
// If there is no change, don't collect the value
final LogicExpressionResult value = documentField.getMandatory();
if (value.equalsByNameAndValue(valueOld)) {
return;
}
final ReasonSupplier reasonNew = reason.add("mandatory", value);
documentChanges(documentField).collectMandatoryChanged(documentField, reasonNew);
}
Aggregations