Skip to content

Fiscalisation : ajouter la TVA sur l'édition de devis/facture #1343

Closed

Description

@agallou

Sur la page d'édition de devis/facture pour chaque ligne ajouter un taux de TVA :

diff --git a/htdocs/pages/administration/compta_facture.php b/htdocs/pages/administration/compta_facture.php
index d112f782..b5d1564c 100644
--- a/htdocs/pages/administration/compta_facture.php
+++ b/htdocs/pages/administration/compta_facture.php
@@ -183,9 +183,11 @@ if ($action == 'lister') {
        $formulaire->addElement('static'  , 'note'     , ''  , 'Ligne '.$i.'<br /><br />');
   $formulaire->addElement('hidden'    , 'id'.$i    , 'id'        );
   $formulaire->addElement('text'    , 'ref'.$i    , 'Référence'        , array('size' => 50, 'maxlength' => 100));
-  $formulaire->addElement('textarea', 'designation'.$i  , 'Désignation', array('cols' => 42, 'rows' => 5));
+  $formulaire->addElement('static'  , 'note'     , ''  , 'Rappel : sponsoring 20%, place supplémentaire 10%.<br />');
+       $formulaire->addElement('select'    , 'tva' . $i    , 'Taux de TVA'        , array(0 => 'Non soumis', '5_5' => '5.5%', '10' => '10%', '20' => '20%'));
+          $formulaire->addElement('textarea', 'designation'.$i  , 'Désignation', array('cols' => 42, 'rows' => 5));
        $formulaire->addElement('text'    , 'quantite'.$i    , 'Quantite'        , array('size' => 50, 'maxlength' => 100));
-       $formulaire->addElement('text'    , 'pu'.$i    , 'Prix Unitaire'        , array('size' => 50, 'maxlength' => 100));
+       $formulaire->addElement('text'    , 'pu'.$i    , 'Prix Unitaire HT'        , array('size' => 50, 'maxlength' => 100));
    }

Image
Image

ajouter un nouveau champ taux_tva dans la table afup_compta_facture_details par défaut à 0, y mettre le taux de tva (un champ en double(11,2))

Activity

  1. converted this from a draft issue on Nov 15, 2023
  2. added a commit that references this issue on Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions