fix: remove payment_type_method_id when cancel
continuous-integration/drone/tag Build was killed
Details
continuous-integration/drone/tag Build was killed
Details
parent
3678353f34
commit
dcf0a55dfc
|
@ -135,7 +135,14 @@ export function mappingRevertTransaction(data, type) {
|
|||
});
|
||||
}
|
||||
|
||||
if (!isCancel) {
|
||||
if (isCancel) {
|
||||
Object.assign(data, {
|
||||
payment_type_method_id: null,
|
||||
payment_type_method_number: null,
|
||||
payment_type_method_name: null,
|
||||
payment_type_method_qr: null,
|
||||
});
|
||||
} else {
|
||||
Object.assign(data, {
|
||||
payment_type_method_id:
|
||||
data.payment_type_method?.id ?? data.payment_type_bank?.id,
|
||||
|
|
Loading…
Reference in New Issue