Skip to content

[BUG]: Unit price uses the total trade price instead of the per-item unit price #124

Description

@Kenya-DK

Bug Report

Summary

Title: Unit price uses the total trade price instead of the per-item unit price

When processing trade listings with multiple items per trade, the application incorrectly records the total trade price instead of the unit price shown on the listing.


Environment

  • Device/Platform: Windows
  • Operating System Version: Windows 11
  • App Version: (Please specify)

Steps to Reproduce

  1. Open the application and start monitoring trade listings.
  2. Find a listing where the seller offers multiple items in a single trade (e.g. 6 per trade).
  3. Observe the listing:
    • Unit price: 50 Platinum
    • Items per trade: 6
    • Total trade value: 300 Platinum
  4. Let the application process the listing.
  5. Check the recorded price for the item.

Expected Behavior

The application should record the unit price of the item (e.g. 50 Platinum) regardless of the number of items included in the trade.


Actual Behavior

The application records the total trade price (e.g. 300 Platinum) as the item's price instead of the unit price (50 Platinum).


Attachments

  • Screenshot demonstrating the issue.
Image

📦 Attach a Log ZIP File

Please attach a ZIP file containing your logs.

  • Version 1.6.0 and above: Go to Settings → Logs and click Export Logs.

Important

This will create a ZIP file on your desktop. Please attach it to this issue or send it via DM to the developer on Discord.


Additional Information

  • This issue occurs when sellers list multiple items per trade.
  • Example from the attached screenshot:
    • Expected unit price: 50 Platinum
    • Items per trade: 6
    • Incorrect recorded price: 300 Platinum
  • The recorded price should always represent the per-item unit price, not the total value of the trade.
  • This results in incorrect pricing data and affects price tracking and profit calculations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions