Exemple #1
0
 public static function ProcessInvoice($invoice)
 {
     //if busy - add to queue, if ready - add to currentTransaction then prepare and commit
     if ($invoice->commit()) {
         return Voucher::CreateInvoiceVoucher($invoice);
     } else {
         Logger::Log('TransactionProcessor', 'Failed', 'Invoice transaction with id:' . $invoice->id . ' and tx id:' . $invoice->transactionId . ' could not be commited');
         return false;
     }
 }