[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4866 - phpcompta/trunk/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4866 - phpcompta/trunk/include |
Date: |
Wed, 6 Jun 2012 15:15:23 +0200 (CEST) |
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++;
}
- /**
- * address@hidden 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,
*
- *
+ address@hidden 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
//------------------------------------------------------
- /**
- address@hidden 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4866 - phpcompta/trunk/include,
phpcompta-dev <=