Skip to content

SemExpert/SemExpert_FixSalesDecimals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SemExpert_FixSalesDecimals

This module implements the fix from magento/magento2#14346 and is meant to be used with Magento 2.2.x

Build Status

References

  • Issue #14328 - Qty to ship and Qty to invoice are handling decimals poorly
  • PR #14346 - Fixed decimal handling in order quantities

Getting Started

Prerequisitos

The module requires a completely installed and functional copy of Magento 2.2

Installation

Add the module as a dependency to your Magento project

Edit composer.json

{
  "require": {
    "semexpert/module-fix-sales-decimals": "1.0.0"
  }
}

then

php composer.phar install

or with composer require

php composer.phar require semexpert/module-fix-sales-decimals

After installing the package, you need to enable the module from Magento CLI

php bin/magento module:enable SemExpert_FixSalesDecimals

Running the tests

All the included tests can be run from the Magento CLI. Refer to the documentation.

Included tests

The same tets that were included in the original Pull Request are provided but as integration tests.

There are additional unit tests specific for the plugin funcionality.

Coding Styles

All the provided code follows the Magento 2 coding standard.

Deployment

This module should not be used in Magento 2.3+ as the referenced fixes have already been applied. This is reflected on the version dependencies so you will need to explicitly remove it to upgrade Magento.

php composer.phar remove semexpert/module-fix-sales-decimals

You should also consider removing it if the fix ever makes it into Magento 2.2.

Magento 2

Components

2 plugins are provided. One for Magento\Sales\Order\Item::getSimpleQtyToShip() and one for Magento\Sales\Order\Item::getQtyToInvoice()

Versioning

We use SemVer for versioning. To see all available versions, check the tags for this repository.

Autores

  • Matías Montes - Original core fix and initial version of this module - barbazul

Also check the list of contributors who collaborated in this project.

License

This module is licensed under the MIT License.

About

Fixes rounding issues in Magento core sales module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages