Update invoice.php
This commit is contained in:
parent
573bc3187d
commit
337cb49374
@ -66,8 +66,14 @@ $paiementid=$codes[0];
|
|||||||
|
|
||||||
if ($action == 'valid' && $user->rights->facture->creer)
|
if ($action == 'valid' && $user->rights->facture->creer)
|
||||||
{
|
{
|
||||||
$accountname="CASHDESK_ID_BANKACCOUNT_".$pay;
|
if ($pay == "cash") $bankaccount = $conf->global->CASHDESK_ID_BANKACCOUNT_CASH;
|
||||||
$bankaccount=$conf->global->$accountname;
|
elseif ($pay == "card") $bankaccount = $conf->global->CASHDESK_ID_BANKACCOUNT_CB;
|
||||||
|
elseif ($pay == "cheque") $bankaccount = $conf->global->CASHDESK_ID_BANKACCOUNT_CHEQUE;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$accountname="CASHDESK_ID_BANKACCOUNT_".$pay;
|
||||||
|
$bankaccount=$conf->global->$accountname;
|
||||||
|
}
|
||||||
$now=dol_now();
|
$now=dol_now();
|
||||||
|
|
||||||
$invoice = new Facture($db);
|
$invoice = new Facture($db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user