Skip to content

Commit

Permalink
PAYOSWSXP-104: refund improvements & bugfixes (#277)
Browse files Browse the repository at this point in the history
* PAYOSWXP-104: refund: display refund button during typing of amount to refund

* PAYOSWSXP-104: refund: fix not correct display of already refunded amounts (typo)

* PAYOSWXP-104: refund: enable capturing button during typing of amount to capture
  • Loading branch information
rommelfreddy authored Jan 10, 2024
1 parent da1c483 commit cd18bee
Show file tree
Hide file tree
Showing 19 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<sw-text-field :disabled="true" :label="$tc('sw-order.payone-payment.modal.remainingAmount')" :value="remainingAmount | payone_currency(order.currency.shortName, decimalPrecision)"></sw-text-field>
<sw-number-field required="required" numberType="float" :digits="order.decimal_precision" :label="$tc('sw-order.payone-payment.modal.capture.amount')"
v-model="captureAmount"
@input-change="(value) => captureAmount = value"
:min="0"
:max="maxCaptureAmount"></sw-number-field>
</sw-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default {
refundedAmount() {
if (!this.transaction.extensions
|| !this.transaction.extensions.payonePaymentOrderTransactionData
|| this.transaction.extensions.payonePaymentOrderTransactionData.refundedAmount) {
|| !this.transaction.extensions.payonePaymentOrderTransactionData.refundedAmount) {
return 0;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<sw-text-field :disabled="true" :label="$tc('sw-order.payone-payment.modal.remainingAmount')" :value="remainingAmount | payone_currency(order.currency.shortName, decimalPrecision)"></sw-text-field>
<sw-number-field required="required" numberType="float" :digits="order.decimal_precision" :label="$tc('sw-order.payone-payment.modal.refund.amount')"
v-model="refundAmount"
@input-change="(value) => refundAmount = value"
:min="0"
:max="maxRefundAmount"></sw-number-field>
</sw-container>
Expand Down
1 change: 0 additions & 1 deletion src/Resources/public/administration/css/payone-payment.css

This file was deleted.

2 changes: 1 addition & 1 deletion src/Resources/public/administration/js/payone-payment.js

Large diffs are not rendered by default.

This file was deleted.

2 changes: 1 addition & 1 deletion src/Resources/public/static/js/0.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cd18bee

Please sign in to comment.