*
* 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
| '.$langs->trans('Margins').' | '; print ''.$langs->trans('SellingPrice').' | '; if ($conf->global->MARGIN_TYPE == "1") print ''.$langs->trans('BuyingPrice').' | '; else print ''.$langs->trans('CostPrice').' | '; print ''.$langs->trans('Margin').' | '; if (!empty($conf->global->DISPLAY_MARGIN_RATES)) print ''.$langs->trans('MarginRate').' | '; if (!empty($conf->global->DISPLAY_MARK_RATES)) print ''.$langs->trans('MarkRate').' | '; print '
| '.$langs->trans('MarginOnProducts').' | '; print ''.price($marginInfo['pv_products']).' | '; print ''.price($marginInfo['pa_products']).' | '; print ''.price($marginInfo['margin_on_products']).' | '; if (!empty($conf->global->DISPLAY_MARGIN_RATES)) print ''.(($marginInfo['margin_rate_products'] == '') ? '' : price($marginInfo['margin_rate_products'], null, null, null, null, 2).'%').' | '; if (!empty($conf->global->DISPLAY_MARK_RATES)) print ''.(($marginInfo['mark_rate_products'] == '') ? '' : price($marginInfo['mark_rate_products'], null, null, null, null, 2).'%').' | '; print '|
| '.$langs->trans('MarginOnServices').' | '; print ''.price($marginInfo['pv_services']).' | '; print ''.price($marginInfo['pa_services']).' | '; print ''.price($marginInfo['margin_on_services']).' | '; if (!empty($conf->global->DISPLAY_MARGIN_RATES)) print ''.(($marginInfo['margin_rate_services'] == '') ? '' : price($marginInfo['margin_rate_services'], null, null, null, null, 2).'%').' | '; if (!empty($conf->global->DISPLAY_MARK_RATES)) print ''.(($marginInfo['mark_rate_services'] == '') ? '' : price($marginInfo['mark_rate_services'], null, null, null, null, 2).'%').' | '; print '|
| '.$langs->trans('TotalMargin').' | '; print ''.price($marginInfo['pv_total']).' | '; print ''.price($marginInfo['pa_total']).' | '; print ''.price($marginInfo['total_margin']).' | '; if (!empty($conf->global->DISPLAY_MARGIN_RATES)) print ''.(($marginInfo['total_margin_rate'] == '') ? '' : price($marginInfo['total_margin_rate'], null, null, null, null, 2).'%').' | '; if (!empty($conf->global->DISPLAY_MARK_RATES)) print ''.(($marginInfo['total_mark_rate'] == '') ? '' : price($marginInfo['total_mark_rate'], null, null, null, null, 2).'%').' | '; print '