Skip to content

Commit

Permalink
PAYOSWXP-135: capture/refund: add line-item details
Browse files Browse the repository at this point in the history
  • Loading branch information
rommelfreddy committed Jul 18, 2024
1 parent dc3533d commit fe544bc
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export default {
unit_price: orderItem.unitPrice,
selected: false,
product: orderItem.label,
orderItem: orderItem,
disabled: qty <= 0,
};
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,24 @@
:showSelection="true"
@selection-change="updateSelection"
:isRecordSelectable="(item) => !item.disabled"
:compactMode="false"
>
<template #column-product="{ item, isInlineEdit }">
<div>
<div><span>{{ item.product }}</span></div>
<div>
<small style="line-height: 1;" v-if="item.orderItem && item.orderItem.payload">
<div v-if="item.orderItem.payload.options">
<span>{{ $tc('sw-order.payone-payment.modal.productOptions') }}:</span>
<span v-for="option, index in item.orderItem.payload.options">
{{ option.group }}: {{ option.option }}<template v-if="index < item.orderItem.payload.options.length - 1">, </template>
</span>
</div>
<div>{{ $tc('sw-order.payone-payment.modal.productNumber') }}: {{ item.orderItem.payload.productNumber }}</div>
</small>
</div>
</div>
</template>
<template #column-quantity="{ item, isInlineEdit }">
<sw-number-field
v-model:value="item.quantity"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export default {
unit_price: orderItem.unitPrice,
selected: false,
product: orderItem.label,
orderItem: orderItem,
disabled: qty <= 0,
};
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@
"product": "Produkt",
"quantity": "Anzahl",
"price": "Preis"
}
},
"productNumber": "Nummer",
"productOptions": "Optionen"
},
"general": {
"cardTitle": "Allgemein"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@
"product": "Product",
"quantity": "Quantity",
"price": "Price"
}
},
"productNumber": "Number",
"productOptions": "Options"
},
"general": {
"cardTitle": "General"
Expand Down
Loading

0 comments on commit fe544bc

Please sign in to comment.