Skip to content
Snippets Groups Projects
Commit ab2c9ec9 authored by Matthieu Guffroy's avatar Matthieu Guffroy
Browse files

add options sur factures

parent febad2f4
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
*/ */
// Implemented actions // Implemented actions
$actions = array("listeFacture", "addFacture", "detailFacture"); $actions = array("listeFacture", "addFacture", "detailFacture", "addPresta", "addProduit", "addOrd");
// Check action is correct // Check action is correct
if(!in_array($action, $actions)) { if(!in_array($action, $actions)) {
...@@ -21,6 +21,24 @@ switch($action) { ...@@ -21,6 +21,24 @@ switch($action) {
$formConf = $facture->getForm(); $formConf = $facture->getForm();
include 'view/form.php'; include 'view/form.php';
break; break;
case "addPresta":
$ligne = new LigneFacturePrestation();
$ligne->setFacture($_GET['factId']);
$formConf = $facture->getForm();
include 'view/form.php';
break;
case "addProduit":
$ligne = new LigneFactureProduit();
$ligne->setFacture($_GET['factId']);
$formConf = $facture->getForm();
include 'view/form.php';
break;
case "addOrd":
$ligne = new LigneFactureOrdonnance();
$ligne->setFacture($_GET['factId']);
$formConf = $facture->getForm();
include 'view/form.php';
break;
case "detailFacture": case "detailFacture":
// TODO: Ajouter bouton payer // TODO: Ajouter bouton payer
// TODO: Ajouter résumé de la facture (client, prix etc... ) // TODO: Ajouter résumé de la facture (client, prix etc... )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment