[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4217 - phpcompta/trunk/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4217 - phpcompta/trunk/include |
Date: |
Sat, 15 Oct 2011 01:00:51 +0200 (CEST) |
Author: danydb
Date: 2011-10-15 01:00:50 +0200 (Sat, 15 Oct 2011)
New Revision: 4217
Modified:
phpcompta/trunk/include/class_acc_ledger_sold.php
Log:
code cleaning : remove obsolete
Modified: phpcompta/trunk/include/class_acc_ledger_sold.php
===================================================================
--- phpcompta/trunk/include/class_acc_ledger_sold.php 2011-10-14 23:00:29 UTC
(rev 4216)
+++ phpcompta/trunk/include/class_acc_ledger_sold.php 2011-10-14 23:00:50 UTC
(rev 4217)
@@ -24,7 +24,6 @@
* \brief class for the sold, herits from acc_ledger
*/
require_once("class_iselect.php");
-require_once('class_itva_select.php');
require_once("class_icard.php");
require_once("class_ispan.php");
require_once("class_ihidden.php");
@@ -182,8 +181,8 @@
* check if the accounting for VAT are valid
*/
$a_poste=split(',',$tva_rate->tva_poste);
-
- if (
+
+ if (
$this->db->get_value('select count(*) from tmp_pcmn where
pcm_val=$1',array($a_poste[0])) == 0 ||
$this->db->get_value('select count(*) from tmp_pcmn where
pcm_val=$1',array($a_poste[1])) == 0 )
throw new Exception(_(" La TVA ".$tva_rate->tva_label."
utilise des postes comptables inexistants"));
@@ -563,17 +562,17 @@
/*
* save also into quant_fin
*/
-
+
/* get ledger property */
$ledger=new Acc_Ledger_Fin($this->db,$acc_pay->jrn);
$prop=$ledger->get_propertie();
-
+
/* if ledger is FIN then insert into quant_fin */
if ( $prop['jrn_def_type'] == 'FIN' )
{
$ledger->insert_quant_fin($acfiche->id,$mp_jr_id,$cust->id,bcmul($cust_amount,1));
}
-
+
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4217 - phpcompta/trunk/include,
phpcompta-dev <=