Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Decimal value formatting for payment export

(0) ShareShare
ReportReport
Posted on by 80

Hi All,

Trying to solve an issue with a Payment Export file, where it is formatted as a decimal but outputs no decimal when there is a whole number.

Example: 100.00 is outputted as 100

pastedimage1643894207754v1.png

Although this is being accepted by the bank it is showing as £1.00, once imported.

Another possibility is using the text padding, instead of decimals but i cant get this to work correctly.

Does anyone have any experience with this issue and can you show me the correct method to set this up in Data Exchange Definitions.

  • Dallefeld Profile Picture
    11,417 on at
    RE: Decimal value formatting for payment export

    In the field mapping for the amount field there is a 'multiplier field'. It which is hidden by default and is set to 1.00 by default. I needed 100 to show in the file as 10000 (no decimal in the file) and I was getting 100. By simply changing the multiplier to 100.00, the issue was solved. Not sure if it will work for you.

    pastedimage1643912684898v1.png

  • Suggested answer
    James De Filippo Profile Picture
    80 on at
    RE: Decimal value formatting for payment export

    Hi Dirik,

    That's what i was missing! Now added the <Precision,2> to the data format!

    pastedimage1643906138687v1.png

    pastedimage1643906157257v2.png

    Thank You!

  • Verified answer
    Dirk Profile Picture
    on at
    RE: Decimal value formatting for payment export

    Did you try with something similar to this:

    <Precision,2><Sign,1><Filler Character, ><Integer,7><Filler Character, ><Decimals>



    Found it for a different example:

    The expected result is an amount with 11 digits, and "0" as filler in case the number is smaller than 11 digits.

    How to achieve this result:

    In the column definition of the Data Exchange Definition for field amount you should have the following values.

    Data Type = Amount
    Data Format = <Precision,2><Sign,1><Filler Character,0><Integer,7><Filler Character,0><Decimals>

    With this data format, you get the following results when exporting the payment file:

    The amount of 100,11 is converted into:
    00000100,11

    The amount of 100,00 is converted into:
    00000100,00

    If the filling zeros are not needed, it is also possible to change the data format to this:

    <Precision,2><Sign,1><Filler Character, ><Integer,7><Filler Character, ><Decimals>

  • James De Filippo Profile Picture
    80 on at
    RE: Decimal value formatting for payment export

    Hi Inge,

    We do have that in place, but is it incorrect?

    pastedimage1643895019437v1.png

    Edit: Noticed <Decimal> should be <Decimals>...however doesn't resolve the issue.

  • Inge M. Bruvik Profile Picture
    32,718 Moderator on at
    RE: Decimal value formatting for payment export

    You have to add a data format to your colum:

    docs.microsoft.com/.../standard-numeric-format-strings

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard > Small and medium business | Business Central, NAV, RMS

Featured topics

Product updates

Dynamics 365 release plans