backport commit for setmulticurrency

a489207122 (diff-48f18024fb928ce21b76ef02fc967c67)
This commit is contained in:
Frédéric FRANCE 2019-10-02 11:12:30 +02:00 committed by GitHub
parent 4f356fa412
commit ad3cbd17c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1876,10 +1876,16 @@ abstract class CommonObject
{
foreach ($this->lines as &$line)
{
// Amounts in company currency will be recalculated
if($mode == 1) {
$line->subprice = 0;
}
// Amounts in foreign currency will be recalculated
if($mode == 2) {
$line->multicurrency_subprice = 0;
}
switch ($this->element) {
case 'propal':
$this->updateline(