CRM-16239 Issue with money format on backend membership form

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.13, 4.5, 4.6
    • Fix Version/s: 4.6.1
    • Component/s: CiviMember
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      Step to Reproduce issue

      Default Currency : EUR (€)
      Available Currencies : EUR (€)
      Thousands Separator : .
      Decimal Delimiter : ,

      Create Membership Type with Fee

      Contact => Membership Tab => Add Membership => Select Organization => Select Membership Type

      In Membership Payment Block, the Amount always display with "dot" (.) as decimal separator instead of comma.

      JavaScript : we have allMemberships object which hold amount for each membership type in two format, simple number 'total_amount_numeric' and formatted number 'total_amount'. For Membership when "Number of Terms" is present we multiply the amount. And number displayed with dot" (.) as decimal separator.

      To overcome this issue in JavaScript we already have function "CRM.formatMoney" it accept amount and format and return with currency sign with formatted amount with correct decimal and thousand separator.

      We don't want Currency Sign to be present in text field. So we can have one more argument to handle it.

        Attachments

          Activity

          [CRM-16239] Issue with money format on backend membership form
          Sunil Pawar added a comment -

            People

            • Assignee:
              Sunil Pawar
              Reporter:
              Sunil Pawar

              Dates

              • Created:
                Updated:
                Resolved: