Show total cost for minimum order quantity in price-tier view#1384
Open
MayNiklas wants to merge 1 commit into
Open
Show total cost for minimum order quantity in price-tier view#1384MayNiklas wants to merge 1 commit into
MayNiklas wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_quantitydefaults to1and 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):