Ejemplo n.º 1
0
 public static function ProcessPurchaseTX($invoicetx)
 {
     //if busy - add to queue, if ready - add to currentTransaction then prepare and commit
     if ($invoicetx->commit()) {
         return Voucher::CreatePurchaseTxVoucher($invoicetx);
     } else {
         Logger::Log('TransactionProcessor', 'Failed', $invoicetx->transactionType->name . ' transaction with id:' . $invoicetx->invoice->id . ' and tx id:' . $invoicetx->transactionId . ' could not be commited');
         return false;
     }
 }