Author: danydb
Date: 2012-06-06 15:15:23 +0200 (Wed, 06 Jun 2012)
New Revision: 4866
Modified:
phpcompta/trunk/include/class_acc_ledger_purchase.php
phpcompta/trunk/include/class_acc_ledger_sold.php
Log:
0000600: Dans moyen de paiement, ajouter acompte, complete doc
Modified: phpcompta/trunk/include/class_acc_ledger_purchase.php
===================================================================
--- phpcompta/trunk/include/class_acc_ledger_purchase.php 2012-06-06
12:48:07 UTC (rev 4865)
+++ phpcompta/trunk/include/class_acc_ledger_purchase.php 2012-06-06
13:15:23 UTC (rev 4866)
@@ -254,9 +254,7 @@
}
$nb++;
}
- /**
- * *@todo check that acompte is less than total amount
- */
+
if ( $nb == 0 )
throw new Exception(_('Il n\'y a aucune marchandise'),12);
Modified: phpcompta/trunk/include/class_acc_ledger_sold.php
===================================================================
--- phpcompta/trunk/include/class_acc_ledger_sold.php 2012-06-06 12:48:07 UTC
(rev 4865)
+++ phpcompta/trunk/include/class_acc_ledger_sold.php 2012-06-06 13:15:23 UTC
(rev 4866)
@@ -42,7 +42,7 @@
/*!\brief Handle the ledger of sold,
*
- *
+ *@exception throw an exception is something is wrong
*/
class Acc_Ledger_Sold extends Acc_Ledger
{
@@ -160,7 +160,6 @@
throw new Exception(_('La fiche ').${'e_march'.$i}._('a un
montant invalide [').${'e_march'.$i}.']',6);
if ( isNumber(${'e_quant'.$i}) == 0 )
throw new Exception(_('La fiche ').${'e_march'.$i}._('a une
quantité invalide [').${'e_quant'.$i}.']',7);
-
/* check if all card has a ATTR_DEF_ACCOUNT*/
$fiche=new Fiche($this->db);
$fiche->get_by_qcode(${'e_march'.$i});
@@ -217,10 +216,10 @@
//------------------------------------------------------
// The "Paid By" check
//------------------------------------------------------
- /**
- *@todo check that acompte is less than total amount
- */
- if ($e_mp != 0 ) $this->check_payment($e_mp,${"e_mp_qcode_".$e_mp});
+
+ if ($e_mp != 0 ) {
+ $this->check_payment($e_mp,${"e_mp_qcode_".$e_mp});
+ }
}
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
_______________________________________________
Phpcompta est un logiciel libre de comptabilité en ligne
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev