PHPackages                             semexpert/module-fix-sales-decimals - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. semexpert/module-fix-sales-decimals

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

semexpert/module-fix-sales-decimals
===================================

Backports fixes from Magento 2.3 to the decimal qty handling in sales module.

00PHP

Since Oct 18Pushed 7y ago4 watchersCompare

[ Source](https://github.com/SemExpert/SemExpert_FixSalesDecimals)[ Packagist](https://packagist.org/packages/semexpert/module-fix-sales-decimals)[ RSS](/packages/semexpert-module-fix-sales-decimals/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

SemExpert\_FixSalesDecimals
===========================

[](#semexpert_fixsalesdecimals)

This module implements the fix from [magento/magento2#14346](https://github.com/magento/magento2/pull/14346) and is meant to be used with Magento 2.2.x

[![Build Status](https://camo.githubusercontent.com/4bce0201374de3f226bd20422edbf1a30831bfb1eff869127cc1f878c30c1482/68747470733a2f2f7472617669732d63692e636f6d2f53656d4578706572742f53656d4578706572745f46697853616c6573446563696d616c732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org//SemExpert/SemExpert_FixSalesDecimals)

References
----------

[](#references)

- [Issue #14328](https://github.com/magento/magento2/issues/14328) - Qty to ship and Qty to invoice are handling decimals poorly
- [PR #14346](https://github.com/magento/magento2/pull/14346) - Fixed decimal handling in order quantities

Getting Started
---------------

[](#getting-started)

### Prerequisitos

[](#prerequisitos)

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

### Installation

[](#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
-----------------

[](#running-the-tests)

All the included tests can be run from the Magento CLI. Refer to the [documentation](https://devdocs.magento.com/guides/v2.2/config-guide/cli/config-cli-subcommands-test.html).

### Included tests

[](#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

[](#coding-styles)

All the provided code follows the [Magento 2 coding standard](https://devdocs.magento.com/guides/v2.2/coding-standards/bk-coding-standards.html).

Deployment
----------

[](#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
---------

[](#magento-2)

### Components

[](#components)

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

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. To see all available versions, check the [tags for this repository](https://github.com/SemExpert/SemExpert_FixSalesDecimals/tags).

Autores
-------

[](#autores)

- **Matías Montes** - *Original core fix and initial version of this module* - [barbazul](https://github.com/barbazul)

Also check the list of [contributors](https://github.com/SemExpert/SemExpert_FixSalesDecimals/contributors) who collaborated in this project.

License
-------

[](#license)

This module is licensed under the [MIT License](/LICENSE).

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8452b92af43657ea92e1ac8bc8cc3c0e1b50a6b6ead0d698879691040c4835bb?d=identicon)[barbazul](/maintainers/barbazul)

---

Top Contributors

[![barbazul](https://avatars.githubusercontent.com/u/240373?v=4)](https://github.com/barbazul "barbazul (28 commits)")[![lcouget](https://avatars.githubusercontent.com/u/8595500?v=4)](https://github.com/lcouget "lcouget (3 commits)")

### Embed Badge

![Health badge](/badges/semexpert-module-fix-sales-decimals/health.svg)

```
[![Health](https://phpackages.com/badges/semexpert-module-fix-sales-decimals/health.svg)](https://phpackages.com/packages/semexpert-module-fix-sales-decimals)
```

###  Alternatives

[norkunas/youtube-dl-php

youtube-dl / yt-dlp wrapper for php

512323.2k15](/packages/norkunas-youtube-dl-php)[browner12/helpers

generic helpers

289676.6k7](/packages/browner12-helpers)[kop/yii2-scroll-pager

Infinite AJAX scrolling for Yii2 ListView widget

180706.5k10](/packages/kop-yii2-scroll-pager)[tonysm/importmap-laravel

Use ESM with importmap to manage modern JavaScript in Laravel without transpiling or bundling.

148399.8k1](/packages/tonysm-importmap-laravel)[duncan3dc/fork-helper

Simple class to fork processes in PHP and allow multi-threading

73548.0k4](/packages/duncan3dc-fork-helper)[timothyasp/nova-badge-field

A Laravel Nova field.

58548.0k](/packages/timothyasp-nova-badge-field)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
