phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r724 - trunk/invoicing/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r724 - trunk/invoicing/include
Date: Fri, 14 Mar 2014 19:52:01 +0100 (CET)

Author: danydb
Date: 2014-03-14 19:52:01 +0100 (Fri, 14 Mar 2014)
New Revision: 724

Modified:
   trunk/invoicing/include/invoice_generate.inc.php
Log:
If there is template, exit

Modified: trunk/invoicing/include/invoice_generate.inc.php
===================================================================
--- trunk/invoicing/include/invoice_generate.inc.php    2014-03-14 17:16:44 UTC 
(rev 723)
+++ trunk/invoicing/include/invoice_generate.inc.php    2014-03-14 18:52:01 UTC 
(rev 724)
@@ -48,11 +48,17 @@
         $op_sale = $operation->get_quant();
         $generate = new Acc_Ledger_Sold_Generate($cn, 
$op_sale->det->jr_def_id);
         $array = $generate->convert_to_array($op_sale);
+        $document=HtmlInput::default_value_get("document",-1);
+        if ($document <> -1 ){
         ?>
         <li>
             <?php echo $generate->create_document($array, $_GET['document']); 
?>
         </li>
         <?php
+        } else {
+            echo _('Aucun modèle');
+            exit();
+        }
     }
     ?>
 </ol>



---
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]