Ejemplo n.º 1
0
 /**
  * We add the service type to service description and call the parent method afterwards.
  *
  * @param array  Service details
  * @param array  Service description
  * @return array The invoice row
  *
  * @author Former03 GmbH :: Florian Lippert <*****@*****.**>
  */
 function buildInvoiceRowSetupFee($service_detail, $service_description)
 {
     if (isset($service_detail['service_type']) && $service_detail['service_type'] != '') {
         $service_description['service_type'] = $service_detail['service_type'];
     }
     return parent::buildInvoiceRowSetupFee($service_detail, $service_description);
 }
Ejemplo n.º 2
0
 /**
  * If the check for included domain is positive we override setup_fee to 0.00 and call the parent method afterwards.
  *
  * @param array  Service details
  * @param array  Service description
  * @return array The invoice row
  *
  * @author Former03 GmbH :: Florian Lippert <*****@*****.**>
  */
 function buildInvoiceRowSetupFee($service_detail, $service_description)
 {
     // Check for included domains
     if ($this->_checkIncludedDomain($service_detail['domain'], $service_detail['customerid']) === true) {
         $service_detail['setup_fee'] = '0.00';
     }
     return parent::buildInvoiceRowSetupFee($service_detail, $service_description);
 }