Project

General

Profile

Actions

QA #1279

closed

Cancellation fee is wrong

Added by Tracy Tran 7 months ago. Updated 5 months ago.

Status:
완료성공(Resolve)
Priority:
높음(High)
Assignee:
Start date:
08/28/2025
Due date:
08/29/2025
% Done:

100%

Estimated time:
16.00 h
Spent time:
Build env.:

Description

PROD
Booking K25082711528H01
Cancellation fee is wrong on B2C guest account > cancellation history > Reservation detail

Hiện tượng:
-Dù booking đã quá hạn hủy (overdue), nhưng khi khách hủy trên B2C thì giá trị cancellation amount lại hiển thị âm (-1).
Lẽ ra trong trường hợp này phải hiển thị Full charge.

Hoạt động đúng
-Sau đó khi OP vào hủy thanh toán thì hệ thống trả về refund đầy đủ (full refund) như mong đợi.
-Tức là bước OP đang đúng, chỉ có bước khách hủy trên B2C lúc ban đầu là tính sai cancellation amount.


Files

picture473-1.png (53.9 KB) picture473-1.png Tracy Tran, 08/27/2025 07:32 AM
picture473-2.png (173 KB) picture473-2.png Tracy Tran, 08/27/2025 07:32 AM
Actions #1

Updated by Mon Nguyen 6 months ago

  • Assignee changed from Mon Nguyen to Kelly Nguyen

Dear Kelly Nguyen
Giúp a check lại requirement đoạn Cancellation Fee có plan thay đổi gì không em ? Hiện tại đang để vậy hơi khó hiểu ấy
Thanks e

Actions #2

Updated by ziniy Kang 6 months ago

  • Description updated (diff)
Actions #3

Updated by Mon Nguyen 6 months ago

  • Due date set to 08/29/2025
  • Status changed from 신규(New) to 진행(Doing)
  • Start date set to 08/28/2025
  • % Done changed from 0 to 60
  • Estimated time set to 16.00 h

Main problem come from API precheck condition search room to get cancellation policy calculate wrong cancel amount -> after user click cancel booking, the billing amount update follow cancel amount then value we will see went wrong

Log: {
"result": {
"includeTaxAmount": 0,
"vendorDisplayCompCode": null,
"specialCheckInInstructions": null,
"feesInfo": null,
"discountAmount": 6703,
"timeSecond": 300,
"vendorCurrencyCode": "VND",
"roomConditionCodedData": "v9FSNigSUtaU13SfERd408LEBDoA2H8AekMTBYqLT9aWLXA7keidwE1dA3Fvk38D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CPomHljQ3Lsf%2BN6fAmb0rij6%2FO4Z0z8GQjKn12C5FzSE3N35mZmle1n5%2FC4A2LOYX%2F3mjgK13%2B8ojXF0bDAlNHZoZasv%2BisScC9PB9I%2F98uHkK4%3D",
"vendorCompCode": 999999,
"productAmount": 111715,
"chargeConditions": [ {
"vendorCurrencyCode": "KRW",
"originVendorChargeAmount": 0,
"vendorCurrencyChargeAmount": 0,
"conditionIndex": 1,
"vendorToTime": "2025-08-27 23:59:59",
"chargeAmount": 0,
"clientFromTime": "2025-08-26 00:00:00",
"vendorFromTime": "2025-08-27 00:00:00",
"billingCurrencyCode": "VND",
"vendorChargeAmount": 0,
"clientToTime": "2025-08-26 17:00:00"
}, {
"vendorCurrencyCode": "KRW",
"originVendorChargeAmount": 97143,
"vendorCurrencyChargeAmount": 5100,
"conditionIndex": 2,
"vendorToTime": "2025-08-29 23:59:59",
"chargeAmount": 105011,
"clientFromTime": "2025-08-26 17:01:00",
"vendorFromTime": "2025-08-28 00:00:00",
"billingCurrencyCode": "VND",
"vendorChargeAmount": 97143,
"clientToTime": "2025-08-29 23:59:59"
}
],
"checkInInstructions": null,
"cancelDeadline": {
"vendorCancelDeadline": "2025-08-27 23:59:59",
"clientCancelDeadline": "2025-08-26 17:00",
"refundableYn": false
},
"taxAmount": 0,
"cancelPolicyDescription": null,
"beforeAmountSum": 105012,
"amountChangedYn": false,
"amountSum": 105012
},
"serviceCode": "/hotel/room/condition",
"transactionSetId": "E1135FA9C3354BB2995B6F0477F4D30A",
"succeedYn": true,
"serviceName": "/hotel/room/condition"
}

Finally that's wrong from the calculate with Discount Promotion Amount -> so their wrong

Actions #4

Updated by Mon Nguyen 6 months ago

  • Status changed from 진행(Doing) to 신규(New)
  • Assignee changed from Kelly Nguyen to Mon Nguyen
Actions #5

Updated by Mon Nguyen 6 months ago

  • Status changed from 신규(New) to 진행(Doing)

Continue tracking the exactly reason make it wrong on Dev env by add the log information

Actions #6

Updated by Mon Nguyen 5 months ago

  • Status changed from 진행(Doing) to 완료성공(Resolve)
  • % Done changed from 60 to 100

Close task, another task will solve this issue
Reason bug come from the calculate and round the price of Billing Product Amount
Thanks

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 50 MB)