///helper for audit table creation
public static function getTransactionComment()
{
+ //get the transaction
$inst=WobTransaction::getInstance();
if($inst == null)return null;
+ //check whether it has a comment
if(method_exists($inst,"getcomment"))
return $inst->getcomment();
- else return null;
+ //for usevoucher return the order id
+ if(is_a($inst,"WTrUseVoucher"))
+ return "order: ".$inst->getorderid();
+ //fall back
+ return null;
}
///implements the GetVoucherAudit transaction