myHandler.debugInfo("Stored "+serviceType+" on "+getShortDescriptionFromItem(triggerMatcher.group(1)));
}
}
} else if (TRIGNAME_VIEW_RECEIPT.equals(triggerName) || TRIGNAME_VIEW_RECEIPT_DETAILS.equals(triggerName)) {
Session session = HibernateUtil.getSessionFactory().openSession();
MerchantSessionHibernateDAO mercDAO = new MerchantSessionHibernateDAO();
mercDAO.setSession(session);
MerchantSession viewMS;
String queryPlayer = triggerMatcher.group(1);
try {
Transaction tx = session.beginTransaction();
viewMS = mercDAO.findById(new Integer(triggerMatcher.group(2)), false);
tx.commit();
if (queryPlayer.equalsIgnoreCase(viewMS.getCustomer().getName())) {
tx = session.beginTransaction();
viewMS = mercDAO.fetchWithServices(viewMS);
tx.commit();
triggerPatterns.put(TRIGNAME_GAG_EMOTES, Pattern.compile("^Ok[.]$", Pattern.CASE_INSENSITIVE));
if (TRIGNAME_VIEW_RECEIPT.equals(triggerName)) {
reportReceiptSummary(viewMS, queryPlayer);
} else if (TRIGNAME_VIEW_RECEIPT_DETAILS.equals(triggerName)) {