diff --git a/dev/setup/git/README.md b/dev/setup/git/README.md new file mode 100644 index 00000000000..b42b98c8091 --- /dev/null +++ b/dev/setup/git/README.md @@ -0,0 +1,5 @@ +To enable a default git commit template: +git config --local commit.template gitmessage + +To enable the git hook pre-commit, to make CI validation at commit: +See the file pre-commit/README.md diff --git a/.gitmessage b/dev/setup/git/gitmessage similarity index 100% rename from .gitmessage rename to dev/setup/git/gitmessage diff --git a/htdocs/bom/class/bom.class.php b/htdocs/bom/class/bom.class.php index f89172d4989..1e51c7f148b 100644 --- a/htdocs/bom/class/bom.class.php +++ b/htdocs/bom/class/bom.class.php @@ -1496,7 +1496,7 @@ class BOM extends CommonObject if ($this->qty > 0) { $this->unit_cost = (float) price2num($this->total_cost / $this->qty, 'MU'); - } elseif ($this->qty < 0) { + } elseif ($this->qty < 0) { $this->unit_cost = (float) price2num($this->total_cost * $this->qty, 'MU'); } }