From a566e5bfc2879f69b6eb9cf81cee81596ef5606a Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 11 Feb 2020 14:18:49 -0500 Subject: [PATCH] LP#1850547: add views for PO and line item state labels This patch adds two new views, acq.po_state_label and acq.li_state_label, to map from the state codes to human-friendly labels in a way that allows the labels to be retrieved and translated. This patch also changes the fieldmapper label of the PO and LI state column from "State" to "Status". This patch includes contributions by Mike Rylander. Signed-off-by: Galen Charlton Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton --- Open-ILS/examples/fm_IDL.xml | 37 +++++++++++++++++++--- Open-ILS/src/sql/Pg/200.schema.acq.sql | 24 ++++++++++++++ .../sql/Pg/upgrade/ZZZZ.schema.acq_state_views.sql | 28 ++++++++++++++++ 3 files changed, 85 insertions(+), 4 deletions(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/ZZZZ.schema.acq_state_views.sql diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index f7bfcf725c..44455db884 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -9627,7 +9627,7 @@ SELECT usr, - + @@ -9644,6 +9644,7 @@ SELECT usr, + @@ -9678,7 +9679,7 @@ SELECT usr, - + @@ -9784,7 +9785,7 @@ SELECT usr, - + @@ -9800,6 +9801,7 @@ SELECT usr, + @@ -9845,7 +9847,7 @@ SELECT usr, - + @@ -11874,6 +11876,33 @@ SELECT usr, + + + + + + + + + + + + + + + + + + + + + + + + + + +