Skip to Content
0
Jan 10, 2023 at 04:06 PM

not an integer: '0.00'

47 Views

Hi all,

I am using transformations for XML to serialize and deserialize a XML file.Here a snippet from the definition:

<tt:group>
<tt:cond frq="?">
<cac:Price>
<tt:cond check="not-initial($INVL.PRICE.PRICE_AMOUNT) and ($INVL.PRICE.PRICE_AMOUNT > 0.00)">
<cbc:PriceAmount>
<tt:attribute name="currencyID" value-ref="$INVL.PRICE.PRICE_CURRENCY"/>
<tt:value ref="$INVL.PRICE.PRICE_AMOUNT"/>
</cbc:PriceAmount>
</tt:cond>
</cac:Price>
</tt:cond>
</tt:group>

Unfortunately, it does not compile because of
($INVL.PRICE.PRICE_AMOUNT > 0.00)

the compiler complains
not an integer: '0.00'

the data type from PRICE_AMOUNT is CURR 23 2
What am I doing wrong?
Best regards