From a0f4054100b6354239ef4ba280ddca84eb444414 Mon Sep 17 00:00:00 2001 From: Maykel Geerdink Date: Tue, 5 Jul 2016 07:29:38 +0000 Subject: [PATCH] WEHK#36776: AiAi exporteren backoffice bestellijst naar Excel. svn path=/Website/trunk/; revision=29948 --- APPL/BES/bes_list.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/APPL/BES/bes_list.inc b/APPL/BES/bes_list.inc index 43a8b23f91..4cd2b089bd 100644 --- a/APPL/BES/bes_list.inc +++ b/APPL/BES/bes_list.inc @@ -1697,6 +1697,7 @@ function bes_list (pautfunction, params) + ", b.bes_bestelling_status" + ", b.bes_bestelling_module" + ", MAX("+ lcl.xsql('bd.ins_discipline_omschrijving','bd.ins_discipline_key') +") categorie" + + ", UPPER(MAX("+ lcl.xsql('bd.ins_discipline_omschrijving','bd.ins_discipline_key') +")) uppercategorie" + ", SUM(i.bes_bestelling_item_aantal * COALESCE(i.bes_bestelling_item_prijs, 0)) bedrag" + ", (SELECT k.prs_perslid_key" + " FROM prs_kostenplaats k" @@ -1821,7 +1822,7 @@ function bes_list (pautfunction, params) 2, sql_group_by); - sql += " ORDER BY" + (excel? " UPPER("+ lcl.xsql('bd.ins_discipline_omschrijving','bd.ins_discipline_key') +")," : "") + sql += " ORDER BY" + (excel? " uppercategorie," : "") + " bes_bestelling_status, bes_bestelling_key DESC"; /*****************************************************