- Make sure a client cannot be deleted if he has records in the billing module.
| | |
| | | $this->dataRecord = $app->tform->getDataRecord($this->id); |
| | | |
| | | $this->onBeforeDelete(); |
| | | |
| | | $app->plugin->raiseEvent($_SESSION['s']['module']['name'].':'.$app->tform->formDef['name'].':'.'on_before_delete',$this); |
| | | |
| | | // Saving record to datalog when db_history enabled |
| | | if($app->tform->formDef["db_history"] == 'yes') { |
| | | //$old_data_record = $app->tform->getDataRecord($this->id); |
| | |
| | | $wb['client_you_are_locked'] = 'Sie haben keine Berechtigung, Einstellungen zu verändern.'; |
| | | $wb['gender_m_txt'] = 'Herr'; |
| | | $wb['gender_f_txt'] = 'Frau'; |
| | | $wb['client_cannot_be_deleted_because_of_billing_module_txt'] = 'Für den Kunden existieren Einträge im Billing-Modul, daher kann er nicht gelöscht werden.'; |
| | | ?> |
| | |
| | | $wb['client_you_are_locked'] = 'You have no permission to change any settings.'; |
| | | $wb['gender_m_txt'] = 'Mr.'; |
| | | $wb['gender_f_txt'] = 'Ms.'; |
| | | $wb['client_cannot_be_deleted_because_of_billing_module_txt'] = 'This client has records in the billing module, therefore he cannot be deleted.'; |
| | | ?> |