Fixing ObjectAddOnContactPerson.qml conflict

This commit is contained in:
2025-02-27 14:20:15 +01:00
parent 0f253c518d
commit 6bf6ff3111
15 changed files with 22567 additions and 168 deletions

View File

@@ -6,7 +6,7 @@ from ..PyqcrmFlags import PyqcrmAppliEmpyFlags
class EmployeeDAO(QObject):
newEmployeeAdded = Signal()
newEmployeeAdded = Signal(bool)
__cur = None
__all_cols = None
@@ -44,7 +44,8 @@ class EmployeeDAO(QObject):
if self.__cur:
self.__cur.callproc("addApplicant", (json.dumps(data), applicant, enc_key,))
self.__con.commit()
self.newEmployeeAdded.emit()
self.newEmployeeAdded.emit(True)
except mariadb.Error as e:
print(str(e))
self.newEmployeeAdded.emit(False)