*
* 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
| '; $invoicestatic->id=$objp->facid; $invoicestatic->ref=$objp->facnumber; print $invoicestatic->getNomUrl(1); print " | \n"; print ""; print dol_print_date($db->jdate($objp->datef),'day')." | "; } else { $companystatic->id=$objp->socid; $companystatic->nom=$objp->nom; $companystatic->client=$objp->client; print "".$companystatic->getNomUrl(1,'customer')." | \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 "
| '; else print ' | '; print $langs->trans('TotalMargin')." | "; 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 "|