Browse Source

Merge pull request #27808 from Slordef/18.0-propal-select-product-but-change-price

FIX: propal use devise changes
Laurent Destailleur 1 năm trước cách đây
mục cha
commit
f31b43e1dc
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      htdocs/comm/propal/card.php

+ 4 - 0
htdocs/comm/propal/card.php

@@ -1171,6 +1171,10 @@ if (empty($reshook)) {
 				if (!empty($price_ht) || (string) $price_ht === '0') {
 					$pu_ht = price2num($price_ht, 'MU');
 					$pu_ttc = price2num($pu_ht * (1 + ((float) $tmpvat / 100)), 'MU');
+				} elseif (!empty($price_ht_devise) || (string) $price_ht_devise === '0') {
+					$pu_ht_devise = price2num($price_ht_devise, 'MU');
+					$pu_ht = '';
+					$pu_ttc = '';
 				} elseif (!empty($price_ttc) || (string) $price_ttc === '0') {
 					$pu_ttc = price2num($price_ttc, 'MU');
 					$pu_ht = price2num($pu_ttc / (1 + ((float) $tmpvat / 100)), 'MU');