Removed deprecated usage of Account::account_currency_code and started using Account::canBeReconciliated
This commit is contained in:
parent
fd3b4f6080
commit
66313f584b
@ -140,10 +140,6 @@ class Commande extends CommonOrder
|
|||||||
*/
|
*/
|
||||||
var $lines = array();
|
var $lines = array();
|
||||||
|
|
||||||
// Pour board
|
|
||||||
var $nbtodo;
|
|
||||||
var $nbtodolate;
|
|
||||||
|
|
||||||
// Multicurrency
|
// Multicurrency
|
||||||
var $fk_multicurrency;
|
var $fk_multicurrency;
|
||||||
var $multicurrency_code;
|
var $multicurrency_code;
|
||||||
|
|||||||
@ -397,7 +397,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($object->type != 2 && $object->rappro)
|
if ($object->canBeConciliated())
|
||||||
{
|
{
|
||||||
// If not cash account and can be reconciliate
|
// If not cash account and can be reconciliate
|
||||||
if ($user->rights->banque->consolidate)
|
if ($user->rights->banque->consolidate)
|
||||||
@ -529,7 +529,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
print '<td align="right">'.$langs->trans("Credit").'</td>';
|
print '<td align="right">'.$langs->trans("Credit").'</td>';
|
||||||
print '<td align="right" width="80">'.$langs->trans("BankBalance").'</td>';
|
print '<td align="right" width="80">'.$langs->trans("BankBalance").'</td>';
|
||||||
print '<td align="center" width="60">';
|
print '<td align="center" width="60">';
|
||||||
if ($object->type != 2 && $object->rappro) print $langs->trans("AccountStatementShort");
|
if ($object->canBeConciliated()) print $langs->trans("AccountStatementShort");
|
||||||
else print ' ';
|
else print ' ';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
|||||||
@ -292,7 +292,7 @@ if ($action == 'create')
|
|||||||
// Currency
|
// Currency
|
||||||
print '<tr><td class="fieldrequired">'.$langs->trans("Currency").'</td>';
|
print '<tr><td class="fieldrequired">'.$langs->trans("Currency").'</td>';
|
||||||
print '<td colspan="3">';
|
print '<td colspan="3">';
|
||||||
$selectedcode=$account->account_currency_code;
|
$selectedcode=$account->currency_code;
|
||||||
if (! $selectedcode) $selectedcode=$conf->currency;
|
if (! $selectedcode) $selectedcode=$conf->currency;
|
||||||
print $form->selectCurrency((isset($_POST["account_currency_code"])?$_POST["account_currency_code"]:$selectedcode), 'account_currency_code');
|
print $form->selectCurrency((isset($_POST["account_currency_code"])?$_POST["account_currency_code"]:$selectedcode), 'account_currency_code');
|
||||||
//print $langs->trans("Currency".$conf->currency);
|
//print $langs->trans("Currency".$conf->currency);
|
||||||
@ -583,7 +583,7 @@ else
|
|||||||
// Currency
|
// Currency
|
||||||
print '<tr><td>'.$langs->trans("Currency").'</td>';
|
print '<tr><td>'.$langs->trans("Currency").'</td>';
|
||||||
print '<td colspan="3">';
|
print '<td colspan="3">';
|
||||||
$selectedcode=$account->account_currency_code;
|
$selectedcode=$account->currency_code;
|
||||||
if (! $selectedcode) $selectedcode=$conf->currency;
|
if (! $selectedcode) $selectedcode=$conf->currency;
|
||||||
print $langs->trans("Currency".$selectedcode);
|
print $langs->trans("Currency".$selectedcode);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
@ -851,7 +851,7 @@ else
|
|||||||
print '<input type="hidden" value="'.$account->currency_code.'">';
|
print '<input type="hidden" value="'.$account->currency_code.'">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td colspan="3">';
|
print '<td colspan="3">';
|
||||||
$selectedcode=$account->account_currency_code;
|
$selectedcode=$account->currency_code;
|
||||||
if (! $selectedcode) $selectedcode=$conf->currency;
|
if (! $selectedcode) $selectedcode=$conf->currency;
|
||||||
print $form->selectCurrency((isset($_POST["account_currency_code"])?$_POST["account_currency_code"]:$selectedcode), 'account_currency_code');
|
print $form->selectCurrency((isset($_POST["account_currency_code"])?$_POST["account_currency_code"]:$selectedcode), 'account_currency_code');
|
||||||
//print $langs->trans("Currency".$conf->currency);
|
//print $langs->trans("Currency".$conf->currency);
|
||||||
|
|||||||
@ -154,6 +154,13 @@ class Account extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public $currency_code;
|
public $currency_code;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Currency code
|
||||||
|
* @var string
|
||||||
|
* @deprecated Use currency_code instead
|
||||||
|
*/
|
||||||
|
public $account_currency_code;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Authorized minimum balance
|
* Authorized minimum balance
|
||||||
* @var float
|
* @var float
|
||||||
|
|||||||
@ -144,8 +144,7 @@ if (empty($num))
|
|||||||
|
|
||||||
print '<div class="tabsAction">';
|
print '<div class="tabsAction">';
|
||||||
|
|
||||||
if ($object->type != 2 && $object->rappro)
|
if ($object->canBeConciliated()) {
|
||||||
{
|
|
||||||
// If not cash account and can be reconciliate
|
// If not cash account and can be reconciliate
|
||||||
if ($user->rights->banque->consolidate)
|
if ($user->rights->banque->consolidate)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user