2
0
forked from Wavyzz/dolibarr

Move doc for git commit template

This commit is contained in:
ldestailleur
2025-09-20 03:10:33 +02:00
parent e4d10caf33
commit 706b9f47d8
3 changed files with 6 additions and 1 deletions

5
dev/setup/git/README.md Normal file
View File

@@ -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

View File

@@ -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');
}
}