Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit b91f9d24 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix(ERPEntities): missing js getEntity method

Übergeordneter b4c31a9f
No related branches found
No related tags found
2 Merge Requests!140Update 'next-4.x' with latest changes from 'main',!131Next 3.x
Pipeline #9653 mit Warnungen bestanden mit Phase
in 13 Sekunden
......@@ -60,6 +60,22 @@ define('package/quiqqer/erp/bin/backend/utils/ERPEntities', function() {
});
},
getEntity: function(uuid, entityPlugin) {
if (typeof entityPlugin === 'undefined') {
entityPlugin = false;
}
return new Promise(function(resolve) {
require(['Ajax'], function(QUIAjax) {
QUIAjax.get('package_quiqqer_erp_ajax_getEntity', resolve, {
'package': 'quiqqer/erp',
uuid: uuid,
entityPlugin: entityPlugin
});
});
});
},
openPanelByUUID: function(uuid) {
return this.getTypeByUUID(uuid).then((entityType) => {
const panel = this.getPanelByEntity(entityType);
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren