Fix force recalculate price with multicurrency

This commit is contained in:
ptibogxiv 2019-08-12 13:56:12 +02:00 committed by GitHub
parent a35a999d74
commit a489207122
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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