*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see
| ".$companystatic->getNomUrl(1,'customer')." | \n"; } else { $userstatic->fetch($objp->agent); print "".$userstatic->getFullName($langs,0,0,0)." | \n"; } print "".price($objp->selling_price)." | \n"; print "".price($objp->buying_price)." | \n"; print "".price($objp->marge)." | \n"; if (! empty($conf->global->DISPLAY_MARGIN_RATES)) print "".(($marginRate === '')?'n/a':price($marginRate)."%")." | \n"; if (! empty($conf->global->DISPLAY_MARK_RATES)) print "".(($markRate === '')?'n/a':price($markRate)."%")." | \n"; print "
| '; print $langs->trans('Total'); print " | "; print "".price($cumul_vente)." | \n"; print "".price($cumul_achat)." | \n"; print "".price($totalMargin)." | \n"; if (! empty($conf->global->DISPLAY_MARGIN_RATES)) print "".(($marginRate === '')?'n/a':price($marginRate)."%")." | \n"; if (! empty($conf->global->DISPLAY_MARK_RATES)) print "".(($markRate === '')?'n/a':price($markRate)."%")." | \n"; print "