Skip to content

Commit

Permalink
Fixed [ bug #1658 ] Linked files in supplier invoices wrongly shows a…
Browse files Browse the repository at this point in the history
…mounts
  • Loading branch information
marcosgdf committed Nov 23, 2014
1 parent 6cb3baf commit 835b359
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions htdocs/fourn/facture/document.php
Expand Up @@ -168,30 +168,6 @@
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%">';
Expand Down

0 comments on commit 835b359

Please sign in to comment.