diff --git a/project/src/services/PaymentService.ts b/project/src/services/PaymentService.ts index c4658a74..300197a4 100644 --- a/project/src/services/PaymentService.ts +++ b/project/src/services/PaymentService.ts @@ -65,7 +65,13 @@ export class PaymentService if (!this.paymentHelper.isMoneyTpl(item._tpl)) { // If the item is not money, remove it from the inventory. - this.inventoryHelper.removeItem(pmcData, item._id, sessionID, output); + this.inventoryHelper.removeItemByCount( + pmcData, + item._id, + request.scheme_items[index].count, + sessionID, + output, + ); request.scheme_items[index].count = 0; } else