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

Can select bank account for cashdesk module

parent d48c40c3
No related branches found
No related tags found
No related merge requests found
......@@ -41,10 +41,12 @@ if ($_POST["action"] == 'set')
{
if ($_POST["CASHDESK_ID_THIRDPARTY"] < 0) $_POST["CASHDESK_ID_THIRDPARTY"]='';
if ($_POST["CASHDESK_ID_WAREHOUSE"] < 0) $_POST["CASHDESK_ID_WAREHOUSE"]='';
if ($_POST["CASHDESK_ID_BANKACCOUNT"] < 0) $_POST["CASHDESK_ID_BANKACCOUNT"]='';
dolibarr_set_const($db,"CASHDESK_ID_THIRDPARTY",$_POST["CASHDESK_ID_THIRDPARTY"]);
dolibarr_set_const($db,"CASHDESK_ID_BANKACCOUNT",$_POST["CASHDESK_ID_BANKACCOUNT"]);
dolibarr_set_const($db,"CASHDESK_ID_WAREHOUSE",$_POST["CASHDESK_ID_WAREHOUSE"]);
dolibarr_syslog("admin/cashdesk: level ".$_POST["level"]);
}
......@@ -83,9 +85,8 @@ if ($conf->global->MAIN_MODULE_BANQUE)
{
$var=!$var;
print '<tr '.$bc[$var].'><td>'.$langs->trans("CashDeskBankAccountForSell").'</td>';
print '<td colspan="2"><select class="flat" name="level">';
//$conf->global->CASHDESK_ID_BANKACCOUNT
print '</select>';
print '<td colspan="2">';
$form->select_comptes($conf->global->CASHDESK_ID_BANKACCOUNT,'CASHDESK_ID_BANKACCOUNT',0,"courant=2",1);
print '</td></tr>';
}
if ($conf->global->MAIN_MODULE_STOCK)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment