Skip to content

Commit

Permalink
NTR: fix order items (#776)
Browse files Browse the repository at this point in the history
Co-authored-by: Vitalij Mik <[email protected]>
  • Loading branch information
BlackScorp and Vitalij Mik authored Jun 27, 2024
1 parent ac92d30 commit 4da4d84
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,11 @@ Component.override('sw-order-line-items-grid', {
return itemStatus.quantityCanceled;
},
isCancelable(item){

if(this.cancelStatus === undefined || this.cancelStatus === null){
return false;
}

const itemStatus = this.cancelStatus[item.id];
if(itemStatus === undefined || itemStatus === null){
return false;
Expand All @@ -364,6 +369,9 @@ Component.override('sw-order-line-items-grid', {
},

getCancelData(item){
if(this.cancelStatus === undefined || this.cancelStatus === null){
return {};
}
const itemStatus = this.cancelStatus[item.id];
if(itemStatus === undefined){
return {};
Expand Down

0 comments on commit 4da4d84

Please sign in to comment.