Added support for saving receipts.
This commit is contained in:
@@ -144,6 +144,8 @@ OTHER_FILES += \
|
||||
users/metaData.json \
|
||||
roles/metaData.json
|
||||
|
||||
CONFIG(debug, release|debug):DEFINES += _DEBUG
|
||||
|
||||
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../qdecimal/lib/ -lqdecimal -ldecnumber
|
||||
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../qdecimal/lib/ -lqdecimal -ldecnumber
|
||||
else:unix: LIBS += -L$$OUT_PWD/../qdecimal/lib/ -lqdecimal -ldecnumber
|
||||
|
||||
+2
-2
@@ -67,7 +67,7 @@ public:
|
||||
return ret;
|
||||
}
|
||||
|
||||
void save(QSharedPointer<T> entity) {
|
||||
virtual void save(QSharedPointer<T> entity) {
|
||||
if (!checkPermission(PERM_ADD)) {
|
||||
return;
|
||||
}
|
||||
@@ -93,7 +93,7 @@ public:
|
||||
emit dataChanged();
|
||||
}
|
||||
|
||||
void update(QSharedPointer<T> entity) {
|
||||
virtual void update(QSharedPointer<T> entity) {
|
||||
if (!checkPermission(PERM_EDIT)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,9 @@ Transaction::Transaction()
|
||||
if (!Transaction::m_inTransaction)
|
||||
{
|
||||
m_tr = new odb::transaction(Context::instance().db()->begin());
|
||||
#ifdef _DEBUG
|
||||
m_tr->tracer(odb::stderr_tracer);
|
||||
#endif
|
||||
Transaction::m_inTransaction = true;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user