fix(core-flows): confirm return request (#8242)

This commit is contained in:
Carlos R. L. Rodrigues
2024-07-23 13:29:06 -03:00
committed by GitHub
parent 47dde05517
commit f38f6d53b4
11 changed files with 190 additions and 36 deletions

View File

@@ -81,12 +81,12 @@ export default class ClaimItemImage {
@BeforeCreate()
onCreate() {
this.id = generateEntityId(this.id, "climg")
this.claim_item_id = this.item?.id
this.claim_item_id ??= this.item?.id
}
@OnInit()
onInit() {
this.id = generateEntityId(this.id, "climg")
this.claim_item_id = this.item?.id
this.claim_item_id ??= this.item?.id
}
}

View File

@@ -129,6 +129,6 @@ export default class OrderClaimItem {
@OnInit()
onInit() {
this.id = generateEntityId(this.id, "claitem")
this.claim_id = this.claim?.id
this.claim_id ??= this.claim?.id
}
}

View File

@@ -105,12 +105,12 @@ export default class OrderExchangeItem {
@BeforeCreate()
onCreate() {
this.id = generateEntityId(this.id, "oexcitem")
this.exchange_id = this.exchange?.id
this.exchange_id ??= this.exchange?.id
}
@OnInit()
onInit() {
this.id = generateEntityId(this.id, "oexcitem")
this.exchange_id = this.exchange?.id
this.exchange_id ??= this.exchange?.id
}
}

View File

@@ -132,12 +132,12 @@ export default class ReturnItem {
@BeforeCreate()
onCreate() {
this.id = generateEntityId(this.id, "retitem")
this.return_id = this.return?.id
this.return_id ??= this.return?.id
}
@OnInit()
onInit() {
this.id = generateEntityId(this.id, "retitem")
this.return_id = this.return?.id
this.return_id ??= this.return?.id
}
}