Comments (1)
A possible solution could be to add handling of NaN values in XSLT template:
<xsl:template match="entry[@key='taxRates']/entry">
<fo:table-row>
<fo:table-cell number-columns-spanned="2">
<fo:block></fo:block>
</fo:table-cell>
<fo:table-cell padding="{$table.cell.padding.default}">
<fo:block>
<xsl:value-of select="format-number(number(@key), '#.##0,##')"/>
<xsl:text> % MwSt.</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell><fo:block></fo:block></fo:table-cell>
<fo:table-cell padding="{$table.cell.padding.default}"
text-align="right">
<fo:block>
<xsl:choose>
<xsl:when test="string(number()) = 'NaN'">
<xsl:value-of select="format-number(0, '#.##0,00')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="format-number(number(), '#.##0,00')"/>
</xsl:otherwise>
</xsl:choose>
<xsl:text> €</xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:template>
from springcrm.
Related Issues (20)
- Ordering in sales journal incorrect HOT 1
- Remind user to change sequence number HOT 1
- Dialog changelog HOT 1
- Missing entity name on empty lists HOT 1
- Payment amount doesn't trigger stage HOT 1
- List size HOT 1
- Character encoding in changelog dialog HOT 1
- Compute payment date when changing document date
- Sales report: show current month
- No create user when copying customer account HOT 1
- No Markdown hint for generated textareas HOT 1
- Selectize fields left empty HOT 1
- New rows in quotes, invoices etc. are scrolled under toolbar HOT 1
- Error when calling currency configuration page HOT 1
- Balance values of zero are marked red in invoices HOT 1
- JavaScript error after deleting invoice items HOT 1
- Cannot save forms in Microsoft Edge HOT 2
- No input error message if tax rate is missing HOT 1
- Pre-filled fields are marked as required
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from springcrm.