*
* 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 2 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->id=$objp->agent; $userstatic->login=$objp->login; print "".$userstatic->getLoginUrl(1)." | \n"; } // product commission $productCommissionRate=(! empty($conf->global->PRODUCT_COMMISSION_RATE)?$conf->global->PRODUCT_COMMISSION_RATE:0); $productBase=(! empty($objp->productBase)?$objp->productBase:0); $productCommission = (! empty($productBase)?($productCommissionRate * $productBase / 100):0); print "".price($productBase)." | \n"; print "".price($productCommissionRate)." | \n"; print "".price($productCommission)." | \n"; // service commission $serviceCommissionRate=(! empty($conf->global->SERVICE_COMMISSION_RATE)?$conf->global->SERVICE_COMMISSION_RATE:0); $serviceBase=(! empty($objp->serviceBase)?$objp->serviceBase:0); $serviceCommission = (! empty($serviceBase)?($serviceCommissionRate * $serviceBase / 100):0); print "".price($serviceBase)." | \n"; print "".price($serviceCommissionRate)." | \n"; print "".price($serviceCommission)." | \n"; // total commission print "".price($productCommission + $serviceCommission)." | \n"; print "
| '; print $langs->trans('Total'); print " | "; // product commission print "".price($cumul_base_produit)." | \n"; print "".price((! empty($conf->global->PRODUCT_COMMISSION_RATE)?$conf->global->PRODUCT_COMMISSION_RATE:0))." | \n"; print "".price($cumul_commission_produit)." | \n"; // service commission print "".price($cumul_base_service)." | \n"; print "".price((! empty($conf->global->SERVICE_COMMISSION_RATE)?$conf->global->SERVICE_COMMISSION_RATE:0))." | \n"; print "".price($cumul_commission_service)." | \n"; // total commission print "".price($cumul_commission_produit + $cumul_commission_service)." | \n"; print "