[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 35/38: Merge devel
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 35/38: Merge devel |
Date: |
Sun, 18 Feb 2024 07:30:48 -0500 (EST) |
sparkyx pushed a commit to branch devel
in repository noalyss.
commit 83352b2e6ef3c73120e7c3e608668ace030ee991
Merge: 4c43d4882 6f859d6ef
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Feb 18 13:04:31 2024 +0100
Merge devel
Conflicts:
html/ajax_misc.php
include/ajax/ajax_card.php
include/ajax/ajax_follow_up.php
include/class/acc_ledger.class.php
sql/upgrade.sql
html/ajax_misc.php | 4 +
html/image/logo9000.png | Bin 33156 -> 33905 bytes
html/js/gestion.js | 62 ++++++++++++++
include/action.common.inc.php | 10 +++
include/ajax/ajax_card.php | 6 ++
include/ajax/ajax_follow_up.php | 18 +++-
include/class/acc_ledger_purchase.class.php | 4 +-
include/class/acc_ledger_sale.class.php | 9 +-
include/class/card_pdf.class.php | 71 +++++++++++++++
include/class/follow_up_filter.class.php | 95 +++++++++++++++++++++
include/export/export_card_pdf.php | 16 ++++
include/lib/ac_common.php | 26 ++++++
include/lib/select_box.class.php | 2 +-
include/template/action_search.php | 66 ++++++++------
include/template/follow_up_filter-display_list.php | 86 +++++++++++++++++++
sql/reverse.sql | 10 +++
sql/upgrade.sql | 5 ++
17 files changed, 454 insertions(+), 36 deletions(-)
diff --cc html/ajax_misc.php
index e3d97138d,6879065ca..5e1261b5b
--- a/html/ajax_misc.php
+++ b/html/ajax_misc.php
@@@ -344,8 -344,10 +344,12 @@@ $path = array
"operation_exercice+text"=>"ajax_operation_exercice",
// transfer operation to accountancy
'operation_exercice+transfer'=>"ajax_operation_exercice",
+ // view list of followup for a card
+ "view_followup_card"=>"ajax_follow_up",
+ //list filter for followup
+ 'list_filter_followup'=>"ajax_follow_up",
+ //delete a filter for followup
+ 'delete_filter_followup'=>"ajax_follow_up",
) ;
if (array_key_exists($op, $path)) {
diff --cc include/ajax/ajax_card.php
index 267872812,f354f4f33..d534a6b39
--- a/include/ajax/ajax_card.php
+++ b/include/ajax/ajax_card.php
@@@ -168,7 -168,12 +168,13 @@@ case 'dc'
$html.=HtmlInput::submit('save',_('Sauver'));
}
if ( ! isset
($nohistory))$html.=HtmlInput::history_card_button($f->id,_('Historique'));
+ if ( ! isset
($nofollowup))$html.=HtmlInput::followup_card_button($f->id,_('Suivi'));
+
$button_pdf=HtmlInput::button_anchor(_("PDF"),"export.php?".http_build_query([
+ "act"=>"PDF:card",
+ "card_id"=>$f->id,
+ "gDossier"=>Dossier::id()
+ ]));
+ $html.=$button_pdf;
// Display a remove button if not used and can modify card
if ( $can_modify == 1 && $f->is_used()==FALSE)
{
diff --cc include/ajax/ajax_follow_up.php
index 51c416e9d,f5a0e5028..b5554c410
--- a/include/ajax/ajax_follow_up.php
+++ b/include/ajax/ajax_follow_up.php
@@@ -140,18 -139,17 +140,32 @@@ if ($op == 'followup_comment_oneedit')
}
return;
}
+
+/**************************************************************************
- * See list of follow-up evebt
++ * See list of follow-up event
+ *************************************************************************/
+if ($op =="view_followup_card")
+{
+ $div=$http->get("div");
+ $card=new Fiche($cn,$http->get("f_id","number"));
+ echo HtmlInput::title_box("Suivi
".h($card->strAttribut(ATTR_DEF_NAME)),$div);
+
$query=Follow_Up::create_query($cn,["qcode"=>$card->strAttribut(ATTR_DEF_QUICKCODE)]);
+ $followup=new Follow_Up($cn);
+ echo $followup->view_list($query);
+ echo \HtmlInput::button_close($div);
+ return;
- }
++}
+
/********************************************************************************************************************
+ * list the existing filter for followup
+
******************************************************************************************************************/
+ if ( $op == 'list_filter_followup') {
+ $followup_filter=Follow_Up_Filter::display_list($g_user->getLogin());
+ return;
+ }
+
/*******************************************************************************************************************
+ * delete_filter_followup(p_dossier,filter_id)
+
*******************************************************************************************************************/
+ if ( $op == 'delete_filter_followup') {
+ $cn->exec_delete("delete from action_gestion_id where af_id=$1 and
af_user=$2",
+ [$http->get("filter_id","number"),$g_user->getLogin()]);
-}
++}
diff --cc sql/reverse.sql
index 000000000,000000000..bd4c93f72
new file mode 100644
--- /dev/null
+++ b/sql/reverse.sql
@@@ -1,0 -1,0 +1,10 @@@
++drop trigger t_remove_script_tag on public.action_gestion_comment ;
++drop FUNCTION comptaproc.trg_remove_script_tag();
++
++
++delete from profile_menu where me_code='PDF:card';
++delete from public.menu_ref where me_code='PDF:card';
++
++
++
++drop table action_gestion_filter;
- [Noalyss-commit] [noalyss] 11/38: Sécurité : bloquer le changement de date des opérations, Renforce mode strict : change de date impossible, (continued)
- [Noalyss-commit] [noalyss] 11/38: Sécurité : bloquer le changement de date des opérations, Renforce mode strict : change de date impossible, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 17/38: FOLLOWUP : nom contact pas affiché, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 23/38: Merge branch 'devel', dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 13/38: FOLLOWUP : Cosmetic nombre pièces, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 22/38: Fix : auto numbering receipt, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 32/38: cosmetic, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 36/38: Fix : Bug cannot filter a list of element, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 27/38: Nouvelle fonction pour ajouter des attributs à un élément DOM, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 31/38: DB protect against JS Injection, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 24/38: Nouveau #00022980002298: detail fiche , historique du suivi, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 35/38: Merge devel,
dwm <=
- [Noalyss-commit] [noalyss] 09/38: Task #2321: Sécurité : empêcher changement de numéro de pièce, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 16/38: Follow-Up : bug ne peut pas ajouter fichier sur nouvel événement, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 18/38: Fix cosmetic bug : duplicate operation with autoreverse VAT has an VAT amount, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 20/38: Fix : auto numbering receipt, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 21/38: Merge branch 'devel', dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 25/38: cosmetic, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 37/38: Cosmetic, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 38/38: Upgrade SQL, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 28/38: DB protect against JS Injection, dwm, 2024/02/18
- [Noalyss-commit] [noalyss] 07/38: SUIVI : ajout prénom, dwm, 2024/02/18