MDUX#35315 Managementrapportage - catalogus op laten nemen
svn path=/Website/trunk/; revision=28685
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
requestor_key search for orders for selected requestor
|
||||
personfor_key search for orders for person
|
||||
company_key search for orders for the selected company
|
||||
account_key search for orders for the selected business unit
|
||||
dep_key search for orders for the selected department
|
||||
kp search for orders with the given account text in account description
|
||||
item search for orders with the given account text in item description
|
||||
@@ -88,6 +89,7 @@ function bes_list (pautfunction, params)
|
||||
// params.requestor_key : key
|
||||
// params.personfor_key : key
|
||||
// params.company_key : key
|
||||
// params.account_key : key
|
||||
// params.dep_key : key
|
||||
// params.kp : wildcard string
|
||||
// params.item : wildcard string
|
||||
@@ -136,6 +138,7 @@ function bes_list (pautfunction, params)
|
||||
var requestor_key = params.requestor_key;
|
||||
var personfor_key = params.personfor_key;
|
||||
var company_key = params.company_key;
|
||||
var account_key = params.account_key;
|
||||
var dep_key = params.dep_key;
|
||||
var kp = params.kp;
|
||||
var item = params.item;
|
||||
@@ -1259,6 +1262,9 @@ function bes_list (pautfunction, params)
|
||||
if (personfor_key)
|
||||
sql_filter += " AND bo.prs_perslid_key_voor = " + personfor_key;
|
||||
|
||||
if (account_key)
|
||||
sql_filter += " AND b.prs_kostenplaats_key = " + account_key;
|
||||
|
||||
if (kp)
|
||||
{
|
||||
sql_filter += " AND bi.bes_bestelopdr_item_key IN "
|
||||
@@ -1301,6 +1307,10 @@ function bes_list (pautfunction, params)
|
||||
+ ", bo.bes_bestelopdr_status"
|
||||
+ ", bo.bes_bestelopdr_module"
|
||||
+ ", dis.ins_discipline_key"
|
||||
+ "," + lcl.xsql("dis.ins_discipline_omschrijving", "dis.ins_discipline_key") +" catalogus"
|
||||
+ ", (SELECT kp.prs_kostenplaats_omschrijving"
|
||||
+ " FROM prs_kostenplaats kp"
|
||||
+ " WHERE prs_kostenplaats_key = b.prs_kostenplaats_key) kostenplaats"
|
||||
+ ", d.prs_afdeling_key"
|
||||
+ ", (bi.bes_bestelopdr_item_aantal * bes_bestelopdr_item_prijs) totaalbedrag" // klopt dit wel?
|
||||
+ ", (bi.bes_bestelopdr_item_aantal * bes_bestelopdr_item_inkprijs) inktotaalbedrag"
|
||||
@@ -1357,6 +1367,8 @@ function bes_list (pautfunction, params)
|
||||
+ " , x.bes_bestelopdr_status"
|
||||
+ " , x.bes_bestelopdr_module"
|
||||
+ " , x.supplier"
|
||||
+ " , x.catalogus"
|
||||
+ " , x.kostenplaats"
|
||||
+ " , x.besteller"
|
||||
+ " , x.organisation"
|
||||
+ " , SUM(x.totaalbedrag) totaalbedrag"
|
||||
@@ -1375,6 +1387,8 @@ function bes_list (pautfunction, params)
|
||||
+ ", x.bes_bestelopdr_datum"
|
||||
+ ", x.bes_bestelling_retourvan_key"
|
||||
+ ", x.supplier"
|
||||
+ ", x.catalogus"
|
||||
+ ", x.kostenplaats"
|
||||
+ ", x.besteller"
|
||||
+ ", x.organisation"
|
||||
+ ", x.bes_bestelopdr_status"
|
||||
@@ -1428,6 +1442,7 @@ function bes_list (pautfunction, params)
|
||||
rst.addColumn(new Column({caption: L("lcl_ord_order_num"), content: fncolBesOpdrNr}));
|
||||
rst.addColumn(new Column({caption: L("lcl_bes_add_date"), content: "bes_bestelopdr_datum"}));
|
||||
rst.addColumn(new Column({caption: L("lcl_bes_Supplier"), content: "supplier", hasActions: true}));
|
||||
rst.addColumn(new Column({caption: L("lcl_bes_discipline"), content: "catalogus"}));
|
||||
rst.addColumn(new Column({caption: L("lcl_bes_Persoon"), content: "besteller"}));
|
||||
rst.addColumn(new Column({caption: L("lcl_bes_Afdeling"), content: "organisation"}));
|
||||
rst.addColumn(new Column({caption: L("lcl_bes_Bes_status"), content: fncolStatusText}));
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
<!-- #include file="../Shared/calendar.inc" -->
|
||||
<!-- #include file="../Shared/afdelingselector.inc" -->
|
||||
<!-- #include file="../Shared/bedrijfselector.inc" -->
|
||||
<!-- #include file="../Shared/kostenplaatsselector.inc" -->
|
||||
<!-- #include file="../Shared/persoonselector.inc" -->
|
||||
<!-- #include file="../Shared/disciplineselector.inc" -->
|
||||
<!-- #include file="../Shared/srtgroepselector.inc" -->
|
||||
@@ -383,7 +384,17 @@ oRs.Close();
|
||||
whenEmpty: L("lcl_search_generic") // want filter
|
||||
});
|
||||
|
||||
// <!-- Leverancier -->
|
||||
// <!-- Kostenplaats -->
|
||||
FCLTkostenplaatsselector("sAccount_key",
|
||||
"sgAccount",
|
||||
user_key,
|
||||
{ label: L("lcl_account"),
|
||||
trclass: "secsearch",
|
||||
filtercode: "A", //"AA", // Alleen actieve kostenplaatsen kunnen selecteren "All Active". Huidige waarde als initi<74>le waarde kan bij kostenplaatsen altijd.
|
||||
whenEmpty: L("lcl_search_generic")
|
||||
});
|
||||
|
||||
// <!-- Leverancier -->
|
||||
|
||||
FCLTbedrijfselector("sSuppl_key", // supplier
|
||||
"sgSuppl",
|
||||
|
||||
@@ -58,6 +58,7 @@ else
|
||||
var requestor_key = getQParamInt("sName_key", -1);
|
||||
var personfor_key = getQParamInt("personFor", -1);
|
||||
var company_key = getQParamInt("sComp_key", -1);
|
||||
var account_key = getQParamInt("sAccount_key", -1);
|
||||
var dep_key = getQParamInt("sDept_key", -1);
|
||||
var kp = getQParam("kp", "");
|
||||
var item = getQParam("item", "");
|
||||
@@ -73,6 +74,7 @@ else
|
||||
params.requestor_key = (requestor_key != -1? requestor_key : null);
|
||||
params.personfor_key = (personfor_key != -1? personfor_key : null);
|
||||
params.company_key = (company_key != -1? company_key : null);
|
||||
params.account_key = (account_key != -1? account_key : null);
|
||||
params.dep_key = (dep_key != -1? dep_key : null);
|
||||
params.kp = (kp != ""? kp : null);
|
||||
params.item = (item != ""? item : null);
|
||||
|
||||
Reference in New Issue
Block a user