forked from Wavyzz/dolibarr
Move doc for git commit template
This commit is contained in:
5
dev/setup/git/README.md
Normal file
5
dev/setup/git/README.md
Normal 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
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user