소스 검색

Fix : update line order with TTC price leads to bad unit price

Mathieu Moulin 9 달 전
부모
커밋
5d1d1ba135
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      htdocs/commande/class/commande.class.php

+ 2 - 1
htdocs/commande/class/commande.class.php

@@ -3182,7 +3182,8 @@ class Commande extends CommonOrder
 
 			// Anciens indicateurs: $price, $subprice (a ne plus utiliser)
 			$price = $pu_ht;
-			if ($price_base_type == 'TTC') {
+			// disabled, because $tabprice returns already the right prices, so subprice should always be equal to $pu_ht
+			if (false && $price_base_type == 'TTC') {
 				$subprice = $pu_ttc;
 			} else {
 				$subprice = $pu_ht;