phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r347 - trunk/importbank/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r347 - trunk/importbank/include
Date: Thu, 12 Apr 2012 00:15:52 +0200 (CEST)

Author: danydb
Date: 2012-04-12 00:15:52 +0200 (Thu, 12 Apr 2012)
New Revision: 347

Modified:
   trunk/importbank/include/class_import_bank.php
Log:
fix bug when multiple reconciliations

Modified: trunk/importbank/include/class_import_bank.php
===================================================================
--- trunk/importbank/include/class_import_bank.php      2012-04-11 22:01:45 UTC 
(rev 346)
+++ trunk/importbank/include/class_import_bank.php      2012-04-11 22:15:52 UTC 
(rev 347)
@@ -335,28 +335,12 @@
                                $fin_ledger->insert_quant_fin($card_bank, 
$jr_id, $row->f_id, $row->amount);
 
                                // insert rapt
-                               if ($cn->get_value('select count(jr_id) from 
jrn where jr_id=$1', array($row->tp_rec)) == 1)
+                               if (trim($row->tp_rec) != '')
                                {
                                        $acc_reconc = new 
Acc_Reconciliation($cn);
                                        $acc_reconc->set_jr_id($jr_id);
                                        $acc_reconc->insert($row->tp_rec);
-                                       // lettering
-                                       $a_rec = $cn->get_array('select j_id
-                                                                               
from jrnx join jrn on (j_grpt=jr_grpt_id)
-                                                                         where
-                                                                         
f_id=$1 and jr_id=$2', array($row->f_id, $row->tp_rec));
-                                       if (count($a_rec) == 1)
-                                       {
-                                               $a_target = 
$cn->get_array('select j_id
-                                                                               
from jrnx join jrn on (j_grpt=jr_grpt_id)
-                                                                         where
-                                                                         
f_id=$1 and jr_id=$2', array($row->f_id, $jr_id));
-                                               if (count($a_target) == 1)
-                                               {
-                                                       $lc = new 
Lettering_Card($cn);
-                                                       
$lc->insert_couple($a_rec[0]['j_id'], $a_target[0]['j_id']);
-                                               }
-                                       }
+
                                }
 
                                $sql2 = "update importbank.temp_bank set status 
= 'T',tp_error_msg=null  where id=$1";



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]