[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4125 - phpcompta/branches/rel550/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4125 - phpcompta/branches/rel550/include |
Date: |
Tue, 24 May 2011 22:19:17 +0200 (CEST) |
Author: danydb
Date: 2011-05-24 22:19:17 +0200 (Tue, 24 May 2011)
New Revision: 4125
Modified:
phpcompta/branches/rel550/include/class_acc_ledger.php
phpcompta/branches/rel550/include/constant.php
Log:
0000270: Fiche sans poste comptable dans les OP Diverses
Modified: phpcompta/branches/rel550/include/class_acc_ledger.php
===================================================================
--- phpcompta/branches/rel550/include/class_acc_ledger.php 2011-05-23
22:12:26 UTC (rev 4124)
+++ phpcompta/branches/rel550/include/class_acc_ledger.php 2011-05-24
20:19:17 UTC (rev 4125)
@@ -1306,6 +1306,7 @@
${'qc_'.$i}.' - '.
$oqc->strAttribut(ATTR_DEF_NAME).HtmlInput::hidden('qc_'.$i,${'qc_'.$i}).
'</td>';
+
}
if ( trim(${'qc_'.$i})=="" && trim(${'poste'.$i}) != "")
@@ -1674,6 +1675,12 @@
if ( strlen(trim(${'qc_'.$i}))!=0 && isNumber(${'amount'.$i}
) == 0 )
throw new Exception('Montant invalide',3);
+ $strPoste=$f->strAttribut(ATTR_DEF_ACCOUNT);
+ if ($strPoste=='') throw new Exception(sprintf(_("La fiche %s
n'a pas de poste comptable"),${"qc_".$i}));
+
+ $p=new Acc_Account_Ledger($this->db,$strPoste);
+ if ($p->do_exist() == 0 )
+ throw new Exception(_('Poste Inexistant pour la fiche
['.${'qc_'.$i}.']'),4);
}
// Check if the account is permitted
@@ -1777,6 +1784,7 @@
else
{
$poste=$sposte;
+ if ($poste=='') throw new Exception(sprintf(_("La fiche
%s n'a pas de poste comptable"),${"qc_".$i}));
}
$quick_code=${'qc_'.$i};
}
@@ -1784,6 +1792,7 @@
{
$poste=${'poste'.$i};
}
+
$acc_op->date=$e_date;
// compute the periode is do not check it
if ($check_periode == false ) $acc_op->periode=$oPeriode->p_id;
Modified: phpcompta/branches/rel550/include/constant.php
===================================================================
--- phpcompta/branches/rel550/include/constant.php 2011-05-23 22:12:26 UTC
(rev 4124)
+++ phpcompta/branches/rel550/include/constant.php 2011-05-24 20:19:17 UTC
(rev 4125)
@@ -35,14 +35,16 @@
/* set to none for production */
/* uncomment for production */
+/*
$version_phpcompta=SVNINFO;
define ("DEBUG",false);
+*/
-/*
+
define ("DEBUG",true);
$version_phpcompta=3872;
-*/
+
define ("DBVERSION",93);
define ("DBVERSIONREPO",13);
define ('NOTFOUND','--not found--');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4125 - phpcompta/branches/rel550/include,
phpcompta-dev <=