-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inbound shipment % margin/markup #509
Comments
I didn't know - have done a little digging and come up with something helpful from the docs. Turns out that there is a preference!
though the preference isn't working - there's a bug in the implementation. Calculations made in
The margin isn't persisted though, as you say. |
Updated the API issue with a comment about margins. We'd need the default value somehow |
Ah thanks for looking into this. I wonder what the priority is of name or item. "if" there is a supplier margin, use that, otherwise use the item? Otherwise use nothing? Seems just a |
There's a pref for that! 😁 If Although, if the default price is set, then the margin is 0. That comes from When loading a supplier invoice, the margin is calculated. If the cost & sell price are > 0 then this: The To handle it client-side, we'd need the margin on item and supplier, the default price on item.. and the pref value. I'd much rather have the API handle it all - but I'm not seeing an easy way to do that. I wonder if we can ignore/remove that pref? Prefer supplier margin, but take item if no supplier margin? |
Ah..! Getting clearer 😁 Yup I think your suggestion is good:
|
As a recap since it's been so long:
|
Currently in mSupply there is a %margin field. I don't know too much about it and it's quite a pickle to figure out - need to invest more time into it.
It seems as though it might be a non-persisted field and it is just the % difference between cost and sell prices, where adjust the margin adjusts the sell price also
The text was updated successfully, but these errors were encountered: