diff facturation.xml @ 0:27f2ef353554 draft

"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/facturation_ibps commit 07c73df696d6d80e03f03232603d713882131625"
author artbio
date Mon, 11 May 2020 19:42:27 -0400
parents
children e93bf8bd0e93
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/facturation.xml	Mon May 11 19:42:27 2020 -0400
@@ -0,0 +1,65 @@
+<tool id="facturation_ibps" name="IBPS facturation parser" version="0.6.0">
+    <description />
+    <requirements>
+            <requirement type="package" version="4.9.0">beautifulsoup4</requirement>
+            <requirement type="package" version="1.0.1">html5lib</requirement>
+            <requirement type="package" version="3.0.3">openpyxl</requirement>
+            <requirement type="package" version="1.0.3">pandas</requirement>
+            <requirement type="package" version="7.1.2=py38h9776b28_0">pillow</requirement>
+    </requirements>
+    <command detect_errors="exit_code"><![CDATA[
+        cp $__tool_directory__/template_* . &&
+        python $__tool_directory__/facturation.py
+            -t $__tool_directory__/"$template"
+            -r $reduction
+            -i $input
+            -o $output
+    ]]></command>
+    <inputs>
+        <param format="data" label="Fichier html source" name="input" type="data" />
+        <param name="template" type="select" label="Service émetteur" help="Indiquer le service émetteur" >
+            <option value="template_facture_M_photonique.xlsx" >Microscopie Optique</option>
+            <option value="template_facture_M_electronique.xlsx" >Microscopie Electronique</option>
+        </param>
+        <param type="float" label="réduction à appliquer" name="reduction" value="0.00"
+               help="Entrer la réduction comme un nombre réel, ie si 20% réduction --> entrer '0.2'.
+                     NB: cette réduction s'applique à l'ensemble des prestations du tableau" />
+    </inputs>
+    <outputs>
+        <data format="xlsx" name="output" label="${input.name}.xlsx" />
+    </outputs>
+    <tests>
+        <test>
+            <param ftype="txt" name="input" value="doublefacture.htm" />
+            <param name="template" value="template_facture_M_photonique.xlsx" />
+            <output file="testdouble.xlsx" name="output" decompress="true" />
+        </test>
+        <test>
+            <param ftype="txt" name="input" value="facture.htm" />
+            <param name="template" value="template_facture_M_photonique.xlsx" />
+            <output file="testfacture.xlsx" name="output" decompress="true" />
+        </test>
+         <test>
+            <param ftype="txt" name="input" value="Microscopie_Electronique-2018-67.html" />
+            <param name="template" value="template_facture_M_electronique.xlsx" />
+            <output file="testfacture_electronique.xlsx" name="output" decompress="true" />
+         </test>
+        <test>
+            <param ftype="txt" name="input" value="Microscopie_Electronique-2018-67.html" />
+            <param name="template" value="template_facture_M_electronique.xlsx" />
+            <param name="reduction" value="0.34" />
+            <output file="testfacture_electronique_reduc.xlsx" name="output" decompress="true" />
+        </test>
+    </tests>
+    <help>
+
+.. class:: infomark
+
+**What it does**
+
+Génère un fichier Excel de facturation à partir du fichier html du système actuel de l'IBPS.
+
+    </help>
+    <citations />
+</tool>
+