Exemplo n.º 1
0
 function onAfterStoreSubscription($row)
 {
     if ($row->payment_method == 'os_offline' && !$row->invoice_number && OSMembershipHelper::needToCreateInvoice($row)) {
         $row->invoice_number = OSMembershipHelper::getInvoiceNumber($row);
         $row->store();
     }
 }