/** * Handle refunds */ function onRefundAfterInsert(Am_Event $event) { $this->getDi()->affCommissionRuleTable->processRefund($event->getInvoice(), $event->getRefund()); }