[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4134 - phpcompta/branches/rel560/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4134 - phpcompta/branches/rel560/include |
Date: |
Wed, 25 May 2011 23:49:08 +0200 (CEST) |
Author: danydb
Date: 2011-05-25 23:49:07 +0200 (Wed, 25 May 2011)
New Revision: 4134
Modified:
phpcompta/branches/rel560/include/class_acc_account_ledger.php
Log:
Fix bug Great Ledger for 8.2
Modified: phpcompta/branches/rel560/include/class_acc_account_ledger.php
===================================================================
--- phpcompta/branches/rel560/include/class_acc_account_ledger.php
2011-05-25 20:42:41 UTC (rev 4133)
+++ phpcompta/branches/rel560/include/class_acc_account_ledger.php
2011-05-25 21:49:07 UTC (rev 4134)
@@ -127,8 +127,7 @@
if ( $solded == 1)
{
$filter=str_replace('jrn_def_id','jr_def_id',$filter_sql);
- $bal_sql="with signed_amount as
- (select case when j_debit='t'
then j_montant else 0 end as amount_deb,
+ $bal_sql="select sum(amount_deb) as s_deb,sum(amount_cred) as
s_cred, j_poste from (select case when
j_debit='t' then j_montant else 0 end as amount_deb,
case when
j_debit='f' then j_montant else 0 end as amount_cred,
j_poste
from jrnx join
jrn on (j_grpt = jr_grpt_id)
@@ -136,8 +135,7 @@
j_poste=$1 and
$filter and
(
to_date($2,'DD.MM.YYYY') <= j_date and
- to_date($3,'DD.MM.YYYY') >= j_date ))
- select sum(amount_deb) as
s_deb,sum(amount_cred) as s_cred, j_poste from signed_amount
+ to_date($3,'DD.MM.YYYY') >= j_date )) as
signed_amount
group by j_poste
";
$r=$this->db->get_array($bal_sql,array($this->id,$p_from,$p_to));
@@ -443,7 +441,7 @@
exit;
}
$hid=new IHidden();
- echo '<div class="noprint">';
+ echo '<div class="content">';
echo "<table >";
echo '<TR>';
$str_ople=(isset($_REQUEST['ople']))?HtmlInput::hidden('ople',$_REQUEST['ople']):'';
@@ -458,7 +456,7 @@
echo '<TD><form method="GET" ACTION="export.php">'.
dossier::hidden().
- HtmlInput::submit('bt_pdf',"Export PDF").
+ HtmlInput::submit('bt_pdf',"Export 1 PDF").
HtmlInput::hidden('act',$action_pdf).
$hid->input("type","poste").$str_ople.
$hid->input('p_action','impress').
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4134 - phpcompta/branches/rel560/include,
phpcompta-dev <=