dialogs/pricecatdlg.h \
dialogs/aclwin.h \
dialogs/flagedit.h \
- dialogs/wizard.h
+ dialogs/wizard.h \
+ dialogs/orderauditdlg.h
SOURCES += \
dialogs/configdialog.cpp \
dialogs/pricecatdlg.cpp \
dialogs/aclwin.cpp \
dialogs/flagedit.cpp \
- dialogs/wizard.cpp
+ dialogs/wizard.cpp \
+ dialogs/orderauditdlg.cpp
INCLUDEPATH += ./dialogs
\ No newline at end of file
--- /dev/null
+//
+// C++ Implementation: orderaudit dialog
+//
+// Description:
+//
+//
+// Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2010-2011
+//
+// Copyright: See README/COPYING files that come with this distribution
+//
+//
+
+#include "orderauditdlg.h"
+
+MOrderAuditDialog::MOrderAuditDialog(const MTGetOrderAudit& audit, QWidget* parent)
+ : QDialog(parent)
+{
+
+}
--- /dev/null
+//
+// C++ Interface: orderaudit dialog
+//
+// Description:
+//
+//
+// Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2010-2011
+//
+// Copyright: See README/COPYING files that come with this distribution
+//
+//
+
+#ifndef MAGICSMOKE_ORDERAUDITDLG_H
+#define MAGICSMOKE_ORDERAUDITDLG_H
+
+#include <QDialog>
+
+class MTGetOrderAudit;
+
+class MOrderAuditDialog:public QDialog
+{
+ Q_OBJECT
+ public:
+ MOrderAuditDialog(const MTGetOrderAudit&audit,QWidget*parent=0);
+};
+
+#endif
// Description:
//
//
-// Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2008
+// Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2008-2011
//
// Copyright: See README/COPYING files that come with this distribution
//
#include "labeldlg.h"
#include "misc.h"
#include "odtrender.h"
+#include "orderauditdlg.h"
#include "orderwin.h"
#include "ticketrender.h"
#include "msinterface.h"
void MOrderWindow::orderAudit()
{
MTGetOrderAudit oa=req->queryGetOrderAudit(m_order.orderid());
- qDebug()<<"order lines"<<oa.getorder().size()<<"ticket lines"<<oa.gettickets().size()<<"voucher lines"<<oa.getvouchers().size();
+// qDebug()<<"order lines"<<oa.getorder().size()<<"ticket lines"<<oa.gettickets().size()<<"voucher lines"<<oa.getvouchers().size();
+ if(oa.hasError()){
+ QMessageBox::warning(this,tr("Warning"),tr("Error while retrieving audit data: %1").arg(oa.errorString()));
+ return;
+ }
+ if(oa.getorder().size()==0)
+ QMessageBox::warning(this,tr("Warning"),tr("Sorry, no audit data available."));
+ else
+ MOrderAuditDialog(oa,this).exec();
}