From 5578bc6f5d1a8c90d2541d5269b6b6555e443f24 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?=
 <marcosgdf@gmail.com>
Date: Sun, 23 Nov 2014 15:42:29 +0100
Subject: [PATCH] Fixed [ bug #1658 ] Linked files in supplier invoices wrongly
 shows amounts

---
 htdocs/fourn/facture/document.php | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/htdocs/fourn/facture/document.php b/htdocs/fourn/facture/document.php
index d47433af4f5..c7219c6e415 100644
--- a/htdocs/fourn/facture/document.php
+++ b/htdocs/fourn/facture/document.php
@@ -168,30 +168,6 @@ if ($object->id > 0)
 	print $form->editfieldval("Label",'label',$object->label,$object,0);
 	print '</td>';
 
-    // Status
-    $alreadypaid=$object->getSommePaiement();
-    print '<tr><td>'.$langs->trans('Status').'</td><td colspan="3">'.$object->getLibStatut(4,$alreadypaid).'</td></tr>';
-
-    // Amount
-    print '<tr><td>'.$langs->trans('AmountHT').'</td><td colspan="3">'.price($object->total_ht,1,$langs,0,-1,-1,$conf->currency).'</td></tr>';
-	print '<tr><td>'.$langs->trans('AmountVAT').'</td><td colspan="3">'.price($object->total_tva,1,$langs,0,-1,-1,$conf->currency).'</td></tr>';
-
-	// Amount Local Taxes
-	//TODO: Place into a function to control showing by country or study better option
-	if ($societe->localtax1_assuj=="1") //Localtax1
-	{
-		print '<tr><td>'.$langs->transcountry("AmountLT1",$societe->country_code).'</td>';
-		print '<td align="right">'.price($object->total_localtax1,1,$langs,0,-1,-1,$conf->currency).'</td>';
-		print '<td colspan="2">&nbsp;</td></tr>';
-	}
-	if ($societe->localtax2_assuj=="1") //Localtax2
-	{
-		print '<tr><td>'.$langs->transcountry("AmountLT2",$societe->country_code).'</td>';
-		print '<td align="right" colspan="3">'.price($object->total_localtax2,1,$langs,0,-1,-1,$conf->currency).'</td>';
-		print '</tr>';
-	}
-	print '<tr><td>'.$langs->trans('AmountTTC').'</td><td colspan="3">'.price($object->total_ttc,1,$langs,0,-1,-1,$conf->currency).'</td></tr>';
-
 	print '</table><br>';
 
 	print '<table class="border" width="100%">';
-- 
GitLab