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
Calculate list price according to cost and utility values #5140
Conversation
Added a feature on Quotes modues to use or modify the cost of a product or service and specify an ammount or percentage of utility and calculate the value of List Price according to the cost and utility specified. Add, fields for utility and utility type (amount or percentage) similar to discount and discount type fields.
I have just one question on how to translate "Utility" as this could be difficult in some languages. |
Hi @horus68 Some synonyms for Utility could be profit, revenue or margin. In spanish, people refer to this as utilidad, margen, ganancia. The feature comes from a customer who request it, but I have think about it before, as I have see some companies who do it like that, and even I do it in that way. Hope that helps. |
Thanks, I understand it now. In portuguese it would be "margem de lucro" |
Please resolve the conflicts on this pull request bringing it up to date. |
Hi @Mac-Rae, I took a look to Codacy, but it's the first time I've work with Codacy, so I'm not sure if I do it right. I check all the issues on Codacy, made changes on my sources and commit it to my repo. Let me know if there is something else that must be done. Regards. David |
1998a13
to
7e9bf41
Compare
Hello, @davidbqzt The PR has been marked as stale because there has been no recent activity. It will be closed if no further activity occurs. Regards, |
Hey @davidbqzt Closing this PR due to inactivity. Regards, |
Description
Added a feature on Quotes modues to use or modify the cost of a product or service and specify an ammount or percentage of utility and calculate the value of List Price according to the cost and utility specified.
Motivation and Context
Not all the products and services has a static cost all the times, some change from day to day or according to the provider that the company finds every time. Change constantly the cost of the product is difficult and not useful as it not allows a company to compare utility obtain in every sell.
Calculate the list price in a spreadsheet and copy it to quote module is a double process, calculated by hand (even in a calculator) could lead to errors, so leave this function to SuiteCRM could help to automate the process and reduce mistakes, even later on a company could create a report to calculate how much profit a sell or a group of sales have been earned.
How To Test This
Create a few products, assign a cost and a list price.
Create a new quote
Add some products and services
The value of product's cost should be recovered from DB with all the other product's information as before.
Change the product's cost, assign an utility and choose an utility type, as you leave any of this fields you should see how list price and total price changes.
Change utility type between Percentage and Amount, it should change the amount on list price and all the other fields.
Compare the values to be sure that calculations have been made correctly as explained on point 6 and 7.
Save the quote, open it or edit it again, all values should be stored and recovered as you saved it.
Types of changes
Final checklist
(https://suitecrm.com/wiki/index.php/Contributing_to_SuiteCRM) guidelines.