FS#139 : hide the analytic accountancy in the detail of an operation if we are not
in a popup
This commit is contained in:
parent
a67f027750
commit
f4ae960d79
3 changed files with 8 additions and 8 deletions
|
|
@ -65,7 +65,7 @@ if ( $owner->MY_TVA_USE == 'Y') {
|
|||
}else
|
||||
echo th(_('Total'), 'style="text-align:right"');
|
||||
|
||||
if ($owner->MY_ANALYTIC != 'nu'){
|
||||
if ($owner->MY_ANALYTIC != 'nu' && $div=='popup'){
|
||||
$anc=new Anc_Plan($cn);
|
||||
$a_anc=$anc->get_list();
|
||||
$x=count($a_anc);
|
||||
|
|
@ -103,7 +103,7 @@ echo '</tr>';
|
|||
$total_tvac+=$tvac;
|
||||
$total_htva+=$htva;
|
||||
/* Analytic accountancy */
|
||||
if ( $owner->MY_ANALYTIC != "nu"){
|
||||
if ( $owner->MY_ANALYTIC != "nu" && $div == 'popup'){
|
||||
$poste=$fiche->strAttribut(ATTR_DEF_ACCOUNT);
|
||||
if ( preg_match('/^(6|7)/',$poste)) {
|
||||
$anc_op=new Anc_Operation($cn);
|
||||
|
|
@ -201,4 +201,4 @@ echo '</tr>';
|
|||
<?
|
||||
require_once('ledger_detail_bottom.php');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ echo td(_('Pièce')).td($itext->input());
|
|||
echo th(_('Libellé'));
|
||||
echo th(_('Débit'), 'style="text-align:right"');
|
||||
echo th(_('Crédit'), 'style="text-align:right"');
|
||||
if ($owner->MY_ANALYTIC != 'nu'){
|
||||
if ($owner->MY_ANALYTIC != 'nu' && $div == 'popup'){
|
||||
$anc=new Anc_Plan($cn);
|
||||
$a_anc=$anc->get_list();
|
||||
$x=count($a_anc);
|
||||
|
|
@ -99,7 +99,7 @@ echo '</tr>';
|
|||
$row.=($q[$e]['j_debit']=='t')?$montant:td('');
|
||||
$row.=($q[$e]['j_debit']=='f')?$montant:td('');
|
||||
/* Analytic accountancy */
|
||||
if ( $owner->MY_ANALYTIC != "nu"){
|
||||
if ( $owner->MY_ANALYTIC != "nu" && $div=='popup'){
|
||||
if ( preg_match('/^(6|7)/',$q[$e]['j_poste'])) {
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ if ( $owner->MY_TVA_USE == 'Y') {
|
|||
} else
|
||||
echo th(_('Total'), 'style="text-align:right"');
|
||||
|
||||
if ($owner->MY_ANALYTIC != 'nu'){
|
||||
if ($owner->MY_ANALYTIC != 'nu' && $div == 'popup'){
|
||||
$anc=new Anc_Plan($cn);
|
||||
$a_anc=$anc->get_list();
|
||||
$x=count($a_anc);
|
||||
|
|
@ -104,7 +104,7 @@ echo '</tr>';
|
|||
$total_tvac+=$tvac;
|
||||
$total_htva+=$htva;
|
||||
/* Analytic accountancy */
|
||||
if ( $owner->MY_ANALYTIC != "nu"){
|
||||
if ( $owner->MY_ANALYTIC != "nu" && $div == 'popup'){
|
||||
$poste=$fiche->strAttribut(ATTR_DEF_ACCOUNT);
|
||||
if ( preg_match('/^(6|7)/',$poste)) {
|
||||
$anc_op=new Anc_Operation($cn);
|
||||
|
|
@ -201,4 +201,4 @@ echo '</tr>';
|
|||
<?
|
||||
require_once('ledger_detail_bottom.php');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue