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

Merge branch 'next-3.x' into 'main'

Next 3.x

See merge request !111
Übergeordnete 6f34cd6a b6fa95a0
No related branches found
Tags 1.12.1
2 Merge Requests!140Update 'next-4.x' with latest changes from 'main',!111Next 3.x
Pipeline #8719 bestanden mit Phase
in 54 Sekunden
......@@ -19,7 +19,27 @@ function ($globalProcessId, $entityHash) {
}
return array_map(function ($Entity) {
return $Entity->toArray();
$entityData = $Entity->toArray();
$entityData['processing_status'] = [
'id' => 0,
'title' => '---',
'color' => '#999999',
];
if (method_exists($Entity, 'getProcessingStatus')) {
/* @var $ProcessingStatus QUI\ERP\Accounting\Invoice\ProcessingStatus\Status */
$ProcessingStatus = $Entity->getProcessingStatus();
if ($ProcessingStatus) {
$entityData['processing_status'] = [
'id' => $ProcessingStatus->getId(),
'title' => $ProcessingStatus->getTitle(),
'color' => $ProcessingStatus->getColor()
];
}
}
return $entityData;
}, $Process->getEntities());
},
['globalProcessId', 'entityHash'],
......
......@@ -57,10 +57,11 @@ define('package/quiqqer/erp/bin/backend/controls/process/ProcessGrid', [
dataType: 'QUI',
width: 60
}, {
header: QUILocale.get(lg, 'erp.process.state'),
dataIndex: 'paid_status',
header: QUILocale.get(lg, 'erp.process.status'),
dataIndex: 'status',
dataType: 'node',
width: 100
width: 150,
className: 'grid-align-center'
}, {
header: QUILocale.get(lg, 'erp.process.prefixedNumber'),
dataIndex: 'prefixedNumber',
......@@ -71,6 +72,12 @@ define('package/quiqqer/erp/bin/backend/controls/process/ProcessGrid', [
dataIndex: 'uuid',
dataType: 'string',
width: 240
}, {
header: QUILocale.get(lg, 'erp.process.paid_status'),
dataIndex: 'paid_status',
dataType: 'node',
width: 100,
className: 'grid-align-center'
}
],
pagination: false
......@@ -129,6 +136,16 @@ define('package/quiqqer/erp/bin/backend/controls/process/ProcessGrid', [
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;
}
......@@ -140,6 +157,7 @@ define('package/quiqqer/erp/bin/backend/controls/process/ProcessGrid', [
data.push({
type: Type,
status: Status,
paid_status: PaymentStatus,
prefixedNumber: entry.prefixedNumber,
uuid: entry.uuid
......
......@@ -277,6 +277,10 @@
<de><![CDATA[Bestellung öffnen]]></de>
<en><![CDATA[Open order]]></en>
</locale>
<locale name="processGrid.offer.open">
<de><![CDATA[Angebot öffnen]]></de>
<en><![CDATA[Open offer]]></en>
</locale>
<locale name="processGrid.invoice.open">
<de><![CDATA[Rechnung öffnen]]></de>
<en><![CDATA[Open invoice]]></en>
......@@ -297,9 +301,13 @@
<de><![CDATA[Typ]]></de>
<en><![CDATA[Type]]></en>
</locale>
<locale name="erp.process.state">
<locale name="erp.process.status">
<de><![CDATA[Status]]></de>
<en><![CDATA[State]]></en>
<en><![CDATA[Status]]></en>
</locale>
<locale name="erp.process.paid_status">
<de><![CDATA[Zahlungsstatus]]></de>
<en><![CDATA[Payment status]]></en>
</locale>
<locale name="erp.process.prefixedNumber">
<de><![CDATA[Entitäts-Nr]]></de>
......
......@@ -503,7 +503,7 @@ protected function parseOffers(Comments $History): void
]),
strtotime($Offer->getAttribute('date')),
'quiqqer/offer',
'fa fa-file-text-o',
'fa fa-regular fa-handshake',
false,
$Offer->getHash()
);
......@@ -516,7 +516,7 @@ protected function parseOffers(Comments $History): void
}
if (empty($entry['sourceIcon'])) {
$entry['sourceIcon'] = 'fa fa-file-text-o';
$entry['sourceIcon'] = 'fa fa-regular fa-handshake';
}
$History->addComment(
......
......@@ -18,8 +18,8 @@ class Utils
'QUI\ERP\Accounting\Invoice\InvoiceTemporary' => 'fa-file-text-o',
'QUI\ERP\Accounting\Invoice\Invoice' => 'fa-file-text-o',
'QUI\ERP\SalesOrders\SalesOrder' => 'fa-suitcase',
'QUI\ERP\Accounting\Offers\Offer' => 'fa-file-text-o',
'QUI\ERP\Accounting\Offers\OfferTemporary' => 'fa-file-text-o',
'QUI\ERP\Accounting\Offers\Offer' => 'fa-regular fa-handshake',
'QUI\ERP\Accounting\Offers\OfferTemporary' => 'fa-handshake',
];
/**
......
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