Skip to content

Upgrade to 1.7.7.0 stable build from 1.7.5.x and previous versions : Currency precision is set to 6 by default #22177

@Robin-Fischer-PS

Description

@Robin-Fischer-PS
Contributor

Describe the bug

When making an upgrade from 1.7.5.x and previous version to 1.7.7.0 build stable, the precision of each currency installed is set to 6, leading to unwanted display on FO, and invoices.

Expected behavior

After upgrade, the precision of the currency should be the one set by default (2 decimals for example for Euro) instead of 6.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Install 1.7.5.x version with Euro installed and autoupgrade module
  2. Make an upgrade to 1.7.7.0 stable build
  3. Go to International > Localization > Currencies and open Euro parameters : Decimals is set to 6 instead of 2
  4. Go to FO > Clothes : Demo Product prices are displayed on 3 digits
  5. Make an order with these products, confirm the order and generate invoice in BO : Invoices has 3 digits.

Screenshots

Currency Euro in BO : decimals set to 6 after upgrade :

decimel set to 6 1

Display on FO with 3 digits (with demo product) :

decimel set to 6 2

Invoice with 3 digits in Euro :

decimel set to 6 3

Additional information

  • PrestaShop version: 1770 stable build 5
  • PHP version: N/A

Activity

added
BugType: Bug
CriticalSeverity: critical bug > https://build.prestashop.com/news/severity-classification
BOCategory: Back Office
FOCategory: Front Office
CurrenciesLabel: Which BO under menu is concerned
on Dec 1, 2020
added
ReadyStatus: Issue is ready to be worked on
PR availableSolution: issue is being addressed
on Dec 1, 2020
added
Must-haveKanban prioritization: issue must be included in next version
on Dec 2, 2020
added this to the 1.7.7.0 milestone on Dec 2, 2020
Progi1984

Progi1984 commented on Dec 2, 2020

@Progi1984
Member

Fixed by #22178

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

1.7.7.xBranchAutoupgradeModule: autoupgradeBOCategory: Back OfficeBugType: BugCLDRCriticalSeverity: critical bug > https://build.prestashop.com/news/severity-classificationCurrenciesLabel: Which BO under menu is concernedFOCategory: Front OfficeFixedResolution: issue closed because fixedMust-haveKanban prioritization: issue must be included in next versionPR availableSolution: issue is being addressedRegressionType: regression

Type

No type

Projects

No projects

Relationships

None yet

    Participants

    @Progi1984@atomiix@marionf@hibatallahAouadni@Robin-Fischer-PS

    Issue actions

      Upgrade to 1.7.7.0 stable build from 1.7.5.x and previous versions : Currency precision is set to 6 by default · Issue #22177 · PrestaShop/PrestaShop