Skip to content

Show total cost for minimum order quantity in price-tier view#1384

Open
MayNiklas wants to merge 1 commit into
Part-DB:masterfrom
MayNiklas:fix/price-tier-show-min-order-total
Open

Show total cost for minimum order quantity in price-tier view#1384
MayNiklas wants to merge 1 commit into
Part-DB:masterfrom
MayNiklas:fix/price-tier-show-min-order-total

Conversation

@MayNiklas
Copy link
Copy Markdown
Contributor

On the part info → Shopping information tab, the "Price" column always rendered as <stored price> / <price_related_quantity>. For supplier data imported from LCSC, Mouser, Digikey etc., price_related_quantity defaults to 1 and the stored price is the per-unit price — so every row showed something like $0.0037 / 1, identical to the adjacent "Unit Price" column and giving no information about what you'd actually pay for the minimum bulk order.

Example (LCSC C86285, 15pF capacitor, sold in min. quantities of 100):

Min. amount Price (before) Price (after) Unit Price
100 $0.0037 / 1 $0.37 / 100 $0.0037
1000 $0.0029 / 1 $2.90 / 1000 $0.0029
3000 $0.0025 / 1 $7.50 / 3000 $0.0025

The Price column on a part's Shopping information tab divided by
price_related_quantity (almost always 1 for imported supplier data),
producing redundant "$X / 1" entries that matched the Unit Price
column. Compute the total for min_discount_quantity instead, so each
tier shows what you'd actually pay for the minimum bulk order.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant