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

fix(ProcessGrid): offers has no payment status

Übergeordneter e0fa10d5
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!140Update 'next-4.x' with latest changes from 'main',!119fix: rename Prozess to Vorgang
......@@ -116,6 +116,24 @@ define('package/quiqqer/erp/bin/backend/controls/process/ProcessGrid', [
}
});
const Status = new Element('span', {
'class': 'processing-status',
text: entry.processing_status.title,
styles: {
color: entry.processing_status.color !== '---' ? entry.processing_status.color : '',
borderColor: entry.processing_status.color !== '---' ? entry.processing_status.color : ''
}
});
if (typeof entry.paid_status === 'undefined') {
entry.paid_status = 0;
}
const PaymentStatus = new Element('span', {
'class': 'payment-status payment-status-' + entry.paid_status,
html: QUILocale.get('quiqqer/erp', 'payment.status.' + entry.paid_status)
});
switch (entry.entityType) {
case 'QUI\\ERP\\Order\\Order':
Type.setAttribute('title', QUILocale.get(lg, 'processGrid.order.open'));
......@@ -135,32 +153,18 @@ define('package/quiqqer/erp/bin/backend/controls/process/ProcessGrid', [
case 'QUI\\ERP\\Accounting\\Offers\\Offer':
Type.setAttribute('title', QUILocale.get(lg, 'processGrid.offer.open'));
PaymentStatus.set('class', 'processing-status');
PaymentStatus.set('html', '---');
break;
case 'QUI\\ERP\\Accounting\\Offers\\OfferTemporary':
Type.setAttribute('title', QUILocale.get(lg, 'processGrid.temporaryOffer.open'));
PaymentStatus.set('class', 'processing-status');
PaymentStatus.set('html', '---');
break;
}
const Status = new Element('span', {
'class': 'processing-status',
text: entry.processing_status.title,
styles: {
color: entry.processing_status.color !== '---' ? entry.processing_status.color : '',
borderColor: entry.processing_status.color !== '---' ? entry.processing_status.color : ''
}
});
if (typeof entry.paid_status === 'undefined') {
entry.paid_status = 0;
}
const PaymentStatus = new Element('span', {
'class': 'payment-status payment-status-' + entry.paid_status,
html: QUILocale.get('quiqqer/erp', 'payment.status.' + entry.paid_status)
});
data.push({
type: Type,
status: Status,
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren