phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r681 - trunk/transform/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r681 - trunk/transform/include
Date: Sat, 1 Feb 2014 16:16:59 +0100 (CET)

Author: danydb
Date: 2014-02-01 16:16:58 +0100 (Sat, 01 Feb 2014)
New Revision: 681

Modified:
   trunk/transform/include/intervat_listing_assujetti_step_1.inc.php
Log:
Add possibility to get data from PhpCompta

Modified: trunk/transform/include/intervat_listing_assujetti_step_1.inc.php
===================================================================
--- trunk/transform/include/intervat_listing_assujetti_step_1.inc.php   
2014-02-01 15:16:27 UTC (rev 680)
+++ trunk/transform/include/intervat_listing_assujetti_step_1.inc.php   
2014-02-01 15:16:58 UTC (rev 681)
@@ -22,7 +22,18 @@
 require_once 'class_transform_representative.php';
 require_once 'class_transform_declarant.php';
 $representative=new Transform_Representative();
+$representative->fromPost();
 $declarant=new Transform_Declarant();
+$declarant->fromPost();
+$radio=new IRadio('p_inputtype');
+$h_tva=new ICheckBox('h_tva[]');
+$h_year=new INum('p_year');
+$h_year->prec=0;
+$h_tva_compute_date=new ISelect('p_compute_date');
+$h_tva_compute_date->value=array(
+    array('value'=>1,'label'=>_('Par date paiement')),
+    array('value'=>1,'label'=>_('Par date opération'))
+    );
 ?>
 
 <form method="post" enctype="multipart/form-data">
@@ -35,13 +46,45 @@
 $declarant->input();
 ?>
     <p>
+        <?php echo _('Année'),$h_year->input();?>
+    </p>
+    <p>
     <?php
+    
+    $radio->value=1;
+    echo $radio->input()._('Par fichier');
     $file = new IFile('client_assujetti');
     echo $file->input();
     ?>
     </p>
     <p>
         <?php
+        $radio->value=2;
+        echo $radio->input()._('Par calcul');
+        $atva=$cn->get_array('select tva_id,tva_rate,tva_comment from tva_rate 
order by 2');
+        $count_atva=count($atva);
+        ?>
+    <ul style="list-style: none">
+        <?php
+        for ($i=0;$i<$count_atva;$i++):
+        ?>
+        <li>
+            <?php
+                $h_tva->value=$atva[$i]['tva_id'];
+                echo $h_tva->input().h($atva[$i]['tva_rate'])." 
".h($atva[$i]['tva_comment']);
+            ?>
+        </li>
+        <?php
+        endfor;
+        ?>
+    </ul>
+
+    <span style="margin-left:30px">
+    <?php echo _('Opération de vente'),$h_tva_compute_date->input();?>
+    </span>
+    </p>    
+    <p>
+        <?php
         echo HtmlInput::request_to_hidden(array('gDossier', 'ac', 
'plugin_code', 'sa'));
         echo HtmlInput::hidden('st_transf',1);
         echo HtmlInput::submit('send_list', 'Valider');



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