Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #20 from heidelpay/bugfix/HEIDELPAYSUPPORT-11
Browse files Browse the repository at this point in the history
[HEIDELPAYSUPPORT-11] Fix order creation in administration
  • Loading branch information
Sascha authored Jul 23, 2020
2 parents 73c8d94 + b789d05 commit 88aaedd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@ Component.override('sw-order-create-details-footer', {
computed: {
paymentMethodCriteria() {
/** @var {Criteria} paymentCriteria */
const paymentCriteria = this.salesChannelCriteria;
const criteria = new Criteria();

paymentCriteria.addFilter(
if (this.salesChannelId) {
criteria.addFilter(Criteria.equals('salesChannels.id', this.salesChannelId));
}

criteria.addFilter(
Criteria.not('AND', [
Criteria.contains('handlerIdentifier', heidelPaymentHandler)
])
);

return paymentCriteria;
return criteria;
}
}
});
Loading

0 comments on commit 88aaedd

Please sign in to comment.