Skip to content
Snippets Groups Projects
Commit 3050facb authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: [ bug #1070 ] Accountancy code not displayed just after set

Conflicts:
	htdocs/product/fiche.php
parent cd085b3e
No related branches found
No related tags found
No related merge requests found
......@@ -123,16 +123,16 @@ if (empty($reshook))
if ($action == 'setaccountancy_code_buy')
{
$result = $object->setValueFrom('accountancy_code_buy', GETPOST('accountancy_code_buy'));
if ($result < 0)
setEventMessage(join(',',$object->errors), 'errors');
if ($result < 0) setEventMessage(join(',',$object->errors), 'errors');
else $object->accountancy_code_buy=GETPOST('accountancy_code_buy');
$action="";
}
if ($action == 'setaccountancy_code_sell')
{
$result = $object->setValueFrom('accountancy_code_sell', GETPOST('accountancy_code_sell'));
if ($result < 0)
setEventMessage(join(',',$object->errors), 'errors');
if ($result < 0) setEventMessage(join(',',$object->errors), 'errors');
else $object->accountancy_code_sell=GETPOST('accountancy_code_sell');
$action="";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment