Improved navigation and filtering implementation

This commit is contained in:
2026-01-27 11:02:36 +00:00
parent fd3b3b8e67
commit 9191520727
26 changed files with 300 additions and 340 deletions

View File

@@ -5,7 +5,7 @@
"pluginType": "DB",
"unpublishedAction": {
"actionConfiguration": {
"body": "SELECT \nCASE WHEN item_number IN ('16688','25020') THEN 'XR Series'\nWHEN item_number IN ('22351','24952') THEN 'SL Series'\nWHEN item_number IN ('17861','25021','29243','29752') THEN 'TS Series'\nWHEN item_number IN ('17862') THEN 'MS Series'\nWHEN item_number IN ('17863') THEN 'MT Series'\nWHEN item_number IN ('17873') THEN 'Harmonic Neutralizer'\n\nELSE 'None'\nEND AS \"Product\",\nreportpower.charass_value as \"Power Output\", reportinput.charass_value || ' ' || reportphases.charass_value AS \"Input\", ROUND(SUM(coitem_qtyord),0) as \"Qty Ordered\"\nFROM coitem LEFT OUTER JOIN cohead ON cohead_id=coitem_cohead_id\nLEFT OUTER JOIN itemsite ON coitem_itemsite_id = itemsite_id\nLEFT OUTER JOIN item ON item_id = itemsite_item_id\nLEFT OUTER JOIN charass AS reportpower ON \n(coitem_id = reportpower.charass_target_id \nAND reportpower.charass_target_type = 'SI'\nAND reportpower.charass_char_id = 25)\nLEFT OUTER JOIN charass AS reportinput ON \n(coitem_id = reportinput.charass_target_id \nAND reportinput.charass_target_type = 'SI'\nAND reportinput.charass_char_id = 36)\nLEFT OUTER JOIN charass AS reportphases ON \n(coitem_id = reportphases.charass_target_id \nAND reportphases.charass_target_type = 'SI'\nAND reportphases.charass_char_id = 18)\nWHERE item_number IN ('16688','17861','17862','17863','22351','25020','25144','25147','25021','24952','17873','29243','29752')\nAND (coitem_status <> 'X') \nAND cohead_id NOT IN(SELECT cohead_id from rahead LEFT OUTER JOIN cohead ON rahead_new_cohead_id=cohead_id WHERE cohead_id IS NOT NULL)\nAND coitem_price != 0\nAND reportpower.charass_value IS NOT NULL\nGROUP BY reportpower.charass_value, \"Product\", \"Input\"\nORDER BY \"Product\", reportpower.charass_value",
"body": "SELECT \nCASE WHEN item_number IN ('16688','25020') THEN 'XR Series'\nWHEN item_number IN ('22351','24952') THEN 'SL Series'\nWHEN item_number IN ('17861','25021','29243','29752') THEN 'TS Series'\nWHEN item_number IN ('17862') THEN 'MS Series'\nWHEN item_number IN ('17863') THEN 'MT Series'\nWHEN item_number IN ('17873') THEN 'Harmonic Neutralizer'\n\nELSE 'None'\nEND AS \"Product\",\nreportpower.charass_value as \"Power Output\", reportinput.charass_value || ' ' || reportphases.charass_value AS \"Input\", ROUND(SUM(coitem_qtyord),0) as \"Qty Ordered\"\nFROM coitem LEFT OUTER JOIN cohead ON cohead_id=coitem_cohead_id\nLEFT OUTER JOIN itemsite ON coitem_itemsite_id = itemsite_id\nLEFT OUTER JOIN item ON item_id = itemsite_item_id\nLEFT OUTER JOIN charass AS reportpower ON \n(coitem_id = reportpower.charass_target_id \n AND reportpower.charass_target_type = 'SI'\n AND reportpower.charass_char_id = 25)\nLEFT OUTER JOIN charass AS reportinput ON \n(coitem_id = reportinput.charass_target_id \n AND reportinput.charass_target_type = 'SI'\n AND reportinput.charass_char_id = 36)\nLEFT OUTER JOIN charass AS reportphases ON \n(coitem_id = reportphases.charass_target_id \n AND reportphases.charass_target_type = 'SI'\n AND reportphases.charass_char_id = 18)\nWHERE item_number IN ('16688','17861','17862','17863','22351','25020','25144','25147','25021','24952','17873','29243','29752')\nAND (coitem_status <> 'X') \nAND cohead_id NOT IN(SELECT cohead_id from rahead LEFT OUTER JOIN cohead ON rahead_new_cohead_id=cohead_id WHERE cohead_id IS NOT NULL)\nAND coitem_price != 0\nAND (\n\tNULLIF('{{PowerDateFrom.selectedDate}}','') IS NULL\n\tOR NULLIF('{{PowerDateTo.selectedDate}}','') IS NULL\n\tOR cohead_orderdate BETWEEN\n\tNULLIF('{{PowerDateFrom.selectedDate}}','')::date\n\tAND NULLIF('{{PowerDateTo.selectedDate}}','')::date\n)\nAND reportpower.charass_value IS NOT NULL\nGROUP BY reportpower.charass_value, \"Product\", \"Input\"\nORDER BY \"Product\", reportpower.charass_value",
"encodeParamsToggle": true,
"paginationType": "NONE",
"pluginSpecifiedTemplates": [
@@ -22,7 +22,11 @@
"name": "xTuple_Sandbox",
"pluginId": "postgres-plugin"
},
"dynamicBindingPathList": [],
"dynamicBindingPathList": [
{
"key": "body"
}
],
"name": "units_shipped_by_power_input",
"pageId": "Sales - Units Shipped",
"runBehaviour": "AUTOMATIC",

View File

@@ -14,20 +14,27 @@ LEFT OUTER JOIN itemsite ON coitem_itemsite_id = itemsite_id
LEFT OUTER JOIN item ON item_id = itemsite_item_id
LEFT OUTER JOIN charass AS reportpower ON
(coitem_id = reportpower.charass_target_id
AND reportpower.charass_target_type = 'SI'
AND reportpower.charass_char_id = 25)
AND reportpower.charass_target_type = 'SI'
AND reportpower.charass_char_id = 25)
LEFT OUTER JOIN charass AS reportinput ON
(coitem_id = reportinput.charass_target_id
AND reportinput.charass_target_type = 'SI'
AND reportinput.charass_char_id = 36)
AND reportinput.charass_target_type = 'SI'
AND reportinput.charass_char_id = 36)
LEFT OUTER JOIN charass AS reportphases ON
(coitem_id = reportphases.charass_target_id
AND reportphases.charass_target_type = 'SI'
AND reportphases.charass_char_id = 18)
AND reportphases.charass_target_type = 'SI'
AND reportphases.charass_char_id = 18)
WHERE item_number IN ('16688','17861','17862','17863','22351','25020','25144','25147','25021','24952','17873','29243','29752')
AND (coitem_status <> 'X')
AND cohead_id NOT IN(SELECT cohead_id from rahead LEFT OUTER JOIN cohead ON rahead_new_cohead_id=cohead_id WHERE cohead_id IS NOT NULL)
AND coitem_price != 0
AND (
NULLIF('{{PowerDateFrom.selectedDate}}','') IS NULL
OR NULLIF('{{PowerDateTo.selectedDate}}','') IS NULL
OR cohead_orderdate BETWEEN
NULLIF('{{PowerDateFrom.selectedDate}}','')::date
AND NULLIF('{{PowerDateTo.selectedDate}}','')::date
)
AND reportpower.charass_value IS NOT NULL
GROUP BY reportpower.charass_value, "Product", "Input"
ORDER BY "Product", reportpower.charass_value

View File

@@ -5,7 +5,7 @@
"pluginType": "DB",
"unpublishedAction": {
"actionConfiguration": {
"body": "SELECT \nCASE WHEN item_number IN ('16688','25020') THEN 'XR Series'\nWHEN item_number IN ('22351','24952') THEN 'SL Series'\nWHEN item_number IN ('17861','25021','29243','29752') THEN 'TS Series'\nWHEN item_number IN ('17862') THEN 'MS Series'\nWHEN item_number IN ('17863') THEN 'MT Series'\nWHEN item_number IN ('17873') THEN 'Harmonic Neutralizer'\n\nELSE 'None'\nEND AS \"Product\",\nROUND(SUM(coitem_qtyord),0) as \"Qty Ordered\"\nFROM coitem LEFT OUTER JOIN cohead ON cohead_id=coitem_cohead_id\nLEFT OUTER JOIN itemsite ON coitem_itemsite_id = itemsite_id\nLEFT OUTER JOIN item ON item_id = itemsite_item_id\nLEFT OUTER JOIN charass AS reportpower ON \n(coitem_id = reportpower.charass_target_id \nAND reportpower.charass_target_type = 'SI'\nAND reportpower.charass_char_id = 25)\nWHERE item_number IN ('16688','17861','17862','17863','22351','25020','25144','25147','25021','24952','17873','29243','29752')\nAND (coitem_status <> 'X') \nAND cohead_id NOT IN(SELECT cohead_id from rahead LEFT OUTER JOIN cohead ON rahead_new_cohead_id=cohead_id WHERE cohead_id IS NOT NULL)\nAND coitem_price != 0\nAND reportpower.charass_value IS NOT NULL\nGROUP BY \"Product\"\nORDER BY \"Product\"",
"body": "SELECT \nCASE WHEN item_number IN ('16688','25020') THEN 'XR Series'\nWHEN item_number IN ('22351','24952') THEN 'SL Series'\nWHEN item_number IN ('17861','25021','29243','29752') THEN 'TS Series'\nWHEN item_number IN ('17862') THEN 'MS Series'\nWHEN item_number IN ('17863') THEN 'MT Series'\nWHEN item_number IN ('17873') THEN 'Harmonic Neutralizer'\n\nELSE 'None'\nEND AS \"Product\",\nROUND(SUM(coitem_qtyord),0) as \"Qty Ordered\"\nFROM coitem LEFT OUTER JOIN cohead ON cohead_id=coitem_cohead_id\nLEFT OUTER JOIN itemsite ON coitem_itemsite_id = itemsite_id\nLEFT OUTER JOIN item ON item_id = itemsite_item_id\nLEFT OUTER JOIN charass AS reportpower ON \n(coitem_id = reportpower.charass_target_id \n AND reportpower.charass_target_type = 'SI'\n AND reportpower.charass_char_id = 25)\nWHERE item_number IN ('16688','17861','17862','17863','22351','25020','25144','25147','25021','24952','17873','29243','29752')\nAND (coitem_status <> 'X') \nAND cohead_id NOT IN(SELECT cohead_id from rahead LEFT OUTER JOIN cohead ON rahead_new_cohead_id=cohead_id WHERE cohead_id IS NOT NULL)\nAND coitem_price != 0\nAND reportpower.charass_value IS NOT NULL\nAND (\n\tNULLIF('{{SeriesDateFrom.selectedDate}}','') IS NULL\n\tOR NULLIF('{{SeriesDateTo.selectedDate}}','') IS NULL\n\tOR cohead_orderdate BETWEEN\n\tNULLIF('{{SeriesDateFrom.selectedDate}}','')::date\n\tAND NULLIF('{{SeriesDateTo.selectedDate}}','')::date\n)\nGROUP BY \"Product\"\nORDER BY \"Product\"",
"encodeParamsToggle": true,
"paginationType": "NONE",
"pluginSpecifiedTemplates": [
@@ -22,7 +22,11 @@
"name": "xTuple_Sandbox",
"pluginId": "postgres-plugin"
},
"dynamicBindingPathList": [],
"dynamicBindingPathList": [
{
"key": "body"
}
],
"name": "units_shipped_by_series",
"pageId": "Sales - Units Shipped",
"runBehaviour": "AUTOMATIC",

View File

@@ -14,12 +14,19 @@ LEFT OUTER JOIN itemsite ON coitem_itemsite_id = itemsite_id
LEFT OUTER JOIN item ON item_id = itemsite_item_id
LEFT OUTER JOIN charass AS reportpower ON
(coitem_id = reportpower.charass_target_id
AND reportpower.charass_target_type = 'SI'
AND reportpower.charass_char_id = 25)
AND reportpower.charass_target_type = 'SI'
AND reportpower.charass_char_id = 25)
WHERE item_number IN ('16688','17861','17862','17863','22351','25020','25144','25147','25021','24952','17873','29243','29752')
AND (coitem_status <> 'X')
AND cohead_id NOT IN(SELECT cohead_id from rahead LEFT OUTER JOIN cohead ON rahead_new_cohead_id=cohead_id WHERE cohead_id IS NOT NULL)
AND coitem_price != 0
AND reportpower.charass_value IS NOT NULL
AND (
NULLIF('{{SeriesDateFrom.selectedDate}}','') IS NULL
OR NULLIF('{{SeriesDateTo.selectedDate}}','') IS NULL
OR cohead_orderdate BETWEEN
NULLIF('{{SeriesDateFrom.selectedDate}}','')::date
AND NULLIF('{{SeriesDateTo.selectedDate}}','')::date
)
GROUP BY "Product"
ORDER BY "Product"