Ejemplo n.º 1
0
 public static function ProcessPayrollTx($tx)
 {
     if ($tx->commit()) {
         return Voucher::CreatePayrollVoucher($tx);
     } else {
         Logger::Log('TransactionProcessor', 'Failed', 'Payroll transaction employee id:' . $tx->partyId . ' with tx id:' . $tx->transactionId . ' could not be commited');
         return false;
     }
 }