Completed
Branch develop (4d3d0e)
by
unknown
18:50
created
htdocs/compta/facture/card.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2313,10 +2313,16 @@
 block discarded – undo
2313 2313
 				$type = $prod->type;
2314 2314
 				$fk_unit = $prod->fk_unit;
2315 2315
 			} else {
2316
-				if (!empty($price_ht)) $pu_ht = price2num($price_ht, 'MU');
2317
-				else $pu_ht = '';
2318
-				if (!empty($price_ttc)) $pu_ttc = price2num($price_ttc, 'MU');
2319
-				else $pu_ttc = '';
2316
+				if (!empty($price_ht)) {
2317
+					$pu_ht = price2num($price_ht, 'MU');
2318
+				} else {
2319
+					$pu_ht = '';
2320
+				}
2321
+				if (!empty($price_ttc)) {
2322
+					$pu_ttc = price2num($price_ttc, 'MU');
2323
+				} else {
2324
+					$pu_ttc = '';
2325
+				}
2320 2326
 				$tva_npr = (preg_match('/\*/', $tva_tx) ? 1 : 0);
2321 2327
 				$tva_tx = str_replace('*', '', $tva_tx);
2322 2328
 				if (empty($tva_tx)) {
Please login to merge, or discard this patch.