Topic: How to get warning when selling under cost price ?

How to set the system to give a warning when our sales person are selling under cost price? It's a very useful to control the margin. Thanks for your supports.

Re: How to get warning when selling under cost price ?

This is a good idea. Will be implemented in next release, 2.3.3, shipping next week.

/Joe

Re: How to get warning when selling under cost price ?

joe wrote:

This is a good idea. Will be implemented in next release, 2.3.3, shipping next week.

/Joe


Have this warning been implement ? Sorry for asking as i don't think i see any warning when selling under cost.

Re: How to get warning when selling under cost price ?

Yes, this has been implemented. I am not in office right now, so I cannot recall if there is a flag in config.php. Please have a look for yourself.

Joe

5 (edited by apmuthu 12/13/2012 04:44:43 am)

Re: How to get warning when selling under cost price ?

@joe:

should this be a flag in config.php ( I do not see any in the latest Mercurial 3122) or is it in some code block?

The release changelog of v2.3.3 for changeset 2072 of sales/sales_order_entry.php shows a fix for Warning if line price is below standard cost in sales documents.

What happens if the get_standard_cost() cannot be retrieved?

@ali002:

which FA version are you using? Does your file match the current sales/sales_order_entry.php one?
Especially Lines 512 to 528 ?

Re: How to get warning when selling under cost price ?

No, there is no flag in config.php. And the changeset 2072 should fix the warning if price is below cost.

If the get_standard_cost() could not be retrieved it would be set to 0, then the price is always bigger.

/Joe

Re: How to get warning when selling under cost price ?

Great Joe, thanks!