added new warehouseorder features

This commit is contained in:
Luca Haid
2025-03-10 10:39:39 +01:00
parent 7e3b1af54a
commit 8174902d88
5 changed files with 84 additions and 19 deletions

View File

@@ -46,6 +46,8 @@ Vue.component('change-status-modal', {
return [
{value: 'noChanges', text: 'Keine Änderungen'},
{value: 'sent', text: 'Versendet'},
{value: 'fullyDelivered', text: 'Geliefert'},
{value: 'cancelled', text: 'Storniert'},
{value: 'cancelled', text: 'Storniert'},
];
case 'sent':
@@ -305,7 +307,7 @@ Vue.component('warehouse-order-modal', {
</template>
<hr>
<tt-textarea label="Notiz" v-model="order.note" sm row/>
<tt-textarea label="Interne Notiz" v-model="order.note" sm row/>
</div>
</tt-modal>
`,
@@ -313,7 +315,7 @@ Vue.component('warehouse-order-modal', {
data() {
return {
window: window,
showSendShippingNote: false,
showSendShippingNote: null,
positionsConfig: {
customOrdering: 'distributorId',
fields: {
@@ -356,7 +358,7 @@ Vue.component('warehouse-order-modal', {
delAddrEMail: 'einkauf@xinon.at',
note: '',
editor: window.TT_CONFIG['USER_ID'],
sendShippingNote: false,
sendShippingNote: null,
positions: [],
}
}
@@ -381,7 +383,7 @@ Vue.component('warehouse-order-modal', {
buyPrice: distributor.purchasePrice,
distributorId: distributor.id,
distributorArticleNumber: distributor.externalArticleNumber,
verwendung: `${p.purpose} [Bestellwunsch: #${orderRequest.id}]`,
verwendung: `${p.hasOwnProperty('purpose') ? p.purpose : ''} [Bestellwunsch: #${orderRequest.id}]`,
linkedOrderRequestId: orderRequest.id
};
}));