Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mustang ignores the precision in "BT-146" and "BT-129" and always rounds to two decimal places. #636

Open
psynetic opened this issue Dec 24, 2024 · 2 comments

Comments

@psynetic
Copy link

Mustang ignores the precision in "BT-146" and "BT-129" and always rounds to two decimal places. The reference for this is the example from Zugferd, the file 'EN16931_Rabatte.pdf', where unit prices and quantities are specified with four decimal places.

@langfr
Copy link
Contributor

langfr commented Dec 26, 2024

Which exact version are you using ?
Since 2.24.1 this should no longer be the case. UnitPrice and Quantity have 4 decimal places in my case.
Commit 0967971
changed the behavior to a flexible number of decimal places, depending on the given value.

      <ram:SpecifiedLineTradeAgreement>
        <ram:NetPriceProductTradePrice>
          <ram:ChargeAmount>13.5500</ram:ChargeAmount>
          <ram:BasisQuantity unitCode="EA ">1.0000</ram:BasisQuantity>
        </ram:NetPriceProductTradePrice>
      </ram:SpecifiedLineTradeAgreement>
      <ram:SpecifiedLineTradeDelivery>
        <ram:BilledQuantity unitCode="EA ">-1.0000</ram:BilledQuantity>
      </ram:SpecifiedLineTradeDelivery>

@psynetic
Copy link
Author

Mustang-CLI-2.15.2.jar

Problem only in HTML-visualization:
HTML:
grafik

PDF is OK:
grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants