*
* 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 { $product_static->type=$objp->fk_product_type; $product_static->id=$objp->fk_product; $product_static->ref=$objp->ref; $product_static->libelle=$objp->label; $text=$product_static->getNomUrl(1); $text.= ' - '.$objp->label; print "".$product_static->getNomUrl(1)." | \n"; } print "".price($pv, null, null, null, null, $rounding)." | \n"; print "".price($pa, null, null, null, null, $rounding)." | \n"; print "".price($marge, null, null, null, null, $rounding)." | \n"; if (! empty($conf->global->DISPLAY_MARGIN_RATES)) print "".(($marginRate === '')?'n/a':price($marginRate, null, null, null, null, $rounding)."%")." | \n"; if (! empty($conf->global->DISPLAY_MARK_RATES)) print "".(($markRate === '')?'n/a':price($markRate, null, null, null, null, $rounding)."%")." | \n"; print "
'; else print ' | '; print $langs->trans('TotalMargin')." | "; print "".price($cumul_vente, null, null, null, null, $rounding)." | \n"; print "".price($cumul_achat, null, null, null, null, $rounding)." | \n"; print "".price($totalMargin, null, null, null, null, $rounding)." | \n"; if (! empty($conf->global->DISPLAY_MARGIN_RATES)) print "".(($marginRate === '')?'n/a':price($marginRate, null, null, null, null, $rounding)."%")." | \n"; if (! empty($conf->global->DISPLAY_MARK_RATES)) print "".(($markRate === '')?'n/a':price($markRate, null, null, null, null, $rounding)."%")." | \n"; print "