From db656ea4cab97cd0eb39b2cc5e5b6cab753d98eb Mon Sep 17 00:00:00 2001 From: Maxime Kohlhaas Date: Fri, 4 Mar 2016 10:38:33 +0100 Subject: [PATCH] New : add button to create event on supplier order or invoice with MAIN_ADD_EVENT_ON_ELEMENT_CARD --- htdocs/fourn/commande/card.php | 5 +++++ htdocs/fourn/facture/card.php | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index 922e0d61d38..6a5698497c3 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -2755,6 +2755,11 @@ elseif (! empty($object->id)) print ''; } } + // Create event + if ($conf->agenda->enabled && ! empty($conf->global->MAIN_ADD_EVENT_ON_ELEMENT_CARD)) // Add hidden condition because this is not a "workflow" action so should appears somewhere else on page. + { + print '
' . $langs->trans("AddAction") . '
'; + } // Modify if ($object->statut == 1) diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php index e23f8cf8dbc..837525d3262 100644 --- a/htdocs/fourn/facture/card.php +++ b/htdocs/fourn/facture/card.php @@ -2321,6 +2321,12 @@ else } } } + + // Create event + if ($conf->agenda->enabled && ! empty($conf->global->MAIN_ADD_EVENT_ON_ELEMENT_CARD)) // Add hidden condition because this is not a "workflow" action so should appears somewhere else on page. + { + print '
' . $langs->trans("AddAction") . '
'; + } // Clone if ($action != 'edit' && $user->rights->fournisseur->facture->creer)