Skip to content

Commit

Permalink
[MODFQMMGR-487] Simple POL entity adjustments (#481)
Browse files Browse the repository at this point in the history
* [MODFQMMGR-487] Simple POL entity adjustments

* innersential

* fix

* fix2

* remove redundancy
  • Loading branch information
ncovercash authored Oct 17, 2024
1 parent 386f93f commit 06d0d80
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
type: 'entity-type',
id: '58148257-bfb0-4687-8c42-d2833d772f3e', // simple_purchase_order_line
useIdColumns: true,
essentialOnly: true,
},
{
alias: 'po',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
isIdColumn: true,
queryable: true,
essential: true,
visibleByDefault: true,
valueGetter: ':sourceAlias.id',
},
Expand All @@ -45,6 +46,7 @@
isIdColumn: false,
queryable: true,
visibleByDefault: false,
essential: true,
valueGetter: ":sourceAlias.jsonb -> 'metadata' ->> 'createdDate'",
filterValueGetter: "\"left\"(lower(${tenant_id}_mod_orders_storage.f_unaccent((:sourceAlias.jsonb -> 'metadata'::text) ->> 'createdDate'::text)), 600)",
valueFunction: '"left"(lower(${tenant_id}_mod_orders_storage.f_unaccent(:value)), 600)'
Expand All @@ -58,6 +60,8 @@
isIdColumn: false,
queryable: true,
visibleByDefault: false,
essential: true,
hidden: true,
valueGetter: ':sourceAlias.created_by',
},
{
Expand Down Expand Up @@ -99,6 +103,7 @@
dataType: 'rangedUUIDType',
},
isIdColumn: false,
essential: true,
queryable: true,
visibleByDefault: false,
valueGetter: ":sourceAlias.jsonb->>'agreementId'",
Expand Down Expand Up @@ -375,6 +380,7 @@
isIdColumn: false,
queryable: true,
visibleByDefault: false,
essential: true,
valueGetter: ":sourceAlias.jsonb->'cost'->>'currency'",
filterValueGetter: "lower(:sourceAlias.jsonb -> 'cost' ->> 'currency')",
valueFunction: 'lower(:value)',
Expand Down Expand Up @@ -438,6 +444,7 @@
isIdColumn: false,
queryable: true,
visibleByDefault: false,
essential: true,
valueGetter: "(:sourceAlias.jsonb->'cost'->>'exchangeRate')::float",
valueFunction: '(:value)::float',
},
Expand Down Expand Up @@ -474,6 +481,7 @@
isIdColumn: false,
queryable: true,
visibleByDefault: false,
essential: true,
valueGetter: "(:sourceAlias.jsonb->'cost'->>'poLineEstimatedPrice')::float",
valueFunction: '(:value)::float',
},
Expand All @@ -498,6 +506,7 @@
isIdColumn: false,
queryable: true,
visibleByDefault: false,
essential: true,
valueGetter: ":sourceAlias.jsonb->>'description'",
},
{
Expand All @@ -509,6 +518,7 @@
isIdColumn: false,
queryable: true,
visibleByDefault: false,
essential: true,
valueGetter: ":sourceAlias.jsonb->'details'->>'receivingNote'",
},
{
Expand Down Expand Up @@ -645,6 +655,7 @@
isIdColumn: false,
queryable: true,
visibleByDefault: false,
essential: true,
valueGetter: ":sourceAlias.jsonb->>'donor'",
},
{
Expand Down Expand Up @@ -681,6 +692,7 @@
isIdColumn: false,
queryable: true,
visibleByDefault: false,
essential: true,
valueGetter: ":sourceAlias.jsonb->'eresource'->>'activated'",
values: [
{
Expand Down Expand Up @@ -714,6 +726,7 @@
isIdColumn: false,
queryable: true,
visibleByDefault: false,
essential: true,
valueGetter: ":sourceAlias.jsonb->'eresource'->>'createInventory'",
values: [
{
Expand Down Expand Up @@ -743,6 +756,7 @@
isIdColumn: false,
queryable: true,
visibleByDefault: false,
essential: true,
valueGetter: ":sourceAlias.jsonb->'eresource'->>'trial'",
values: [
{
Expand All @@ -764,6 +778,7 @@
isIdColumn: false,
queryable: true,
visibleByDefault: false,
essential: true,
valueGetter: ":sourceAlias.jsonb->'eresource'->>'expectedActivation'",
},
{
Expand Down Expand Up @@ -809,6 +824,7 @@
isIdColumn: false,
queryable: true,
visibleByDefault: false,
essential: true,
valueGetter: ":sourceAlias.jsonb->'eresource'->>'resourceUrl'",
},
{
Expand Down Expand Up @@ -933,6 +949,7 @@
isIdColumn: false,
queryable: false,
visibleByDefault: false,
essential: true,
valueGetter: ":sourceAlias.jsonb->>'fundDistribution'",
},
{
Expand Down Expand Up @@ -1091,6 +1108,7 @@
isIdColumn: false,
queryable: true,
visibleByDefault: false,
essential: true,
valueGetter: ":sourceAlias.jsonb->>'orderFormat'",
values: [
{
Expand Down Expand Up @@ -1130,6 +1148,7 @@
},
isIdColumn: false,
queryable: true,
essential: true,
visibleByDefault: false,
valueGetter: ":sourceAlias.jsonb->>'paymentStatus'",
filterValueGetter: '"left"(lower(${tenant_id}_mod_orders_storage.f_unaccent(:sourceAlias.jsonb ->> \'paymentStatus\'::text)), 600)',
Expand Down Expand Up @@ -1224,6 +1243,7 @@
},
isIdColumn: false,
queryable: true,
essential: true,
visibleByDefault: false,
valueGetter: ":sourceAlias.jsonb->'physical'->>'expectedReceiptDate'",
},
Expand Down Expand Up @@ -1295,6 +1315,7 @@
},
isIdColumn: false,
queryable: true,
essential: true,
visibleByDefault: false,
valueGetter: ":sourceAlias.jsonb->>'publicationDate'",
},
Expand All @@ -1305,6 +1326,7 @@
dataType: 'stringType',
},
isIdColumn: false,
essential: true,
queryable: true,
visibleByDefault: false,
valueGetter: ":sourceAlias.jsonb->>'publisher'",
Expand All @@ -1316,6 +1338,7 @@
dataType: 'dateType',
},
isIdColumn: false,
essential: true,
queryable: true,
visibleByDefault: false,
valueGetter: ":sourceAlias.jsonb->>'receiptDate'",
Expand All @@ -1327,6 +1350,7 @@
dataType: 'stringType',
},
isIdColumn: false,
essential: true,
queryable: true,
visibleByDefault: false,
valueGetter: ":sourceAlias.jsonb->>'receiptStatus'",
Expand Down Expand Up @@ -1419,6 +1443,7 @@
isIdColumn: false,
queryable: true,
visibleByDefault: false,
essential: true,
valueGetter: ":sourceAlias.jsonb->>'rush'",
values: [
{
Expand All @@ -1438,6 +1463,7 @@
dataType: 'stringType',
},
isIdColumn: false,
essential: true,
queryable: true,
visibleByDefault: false,
valueGetter: ":sourceAlias.jsonb->>'selector'",
Expand All @@ -1449,6 +1475,7 @@
dataType: 'stringType',
},
isIdColumn: false,
essential: true,
queryable: true,
visibleByDefault: false,
valueGetter: ":sourceAlias.jsonb->>'source'",
Expand Down Expand Up @@ -1485,6 +1512,7 @@
},
},
isIdColumn: false,
essential: true,
queryable: false,
visibleByDefault: false,
valueGetter: "(\
Expand All @@ -1507,6 +1535,7 @@
dataType: 'stringType',
},
isIdColumn: false,
essential: true,
queryable: true,
visibleByDefault: false,
valueGetter: ":sourceAlias.jsonb->>'titleOrPackage'",
Expand Down Expand Up @@ -1551,6 +1580,7 @@
dataType: 'dateType',
},
isIdColumn: false,
essential: true,
queryable: true,
visibleByDefault: false,
valueGetter: ":sourceAlias.jsonb->'metadata'->>'updatedDate'",
Expand All @@ -1562,7 +1592,9 @@
dataType: 'rangedUUIDType',
},
isIdColumn: false,
essential: true,
queryable: true,
hidden: true,
visibleByDefault: false,
valueGetter: ":sourceAlias.jsonb->'metadata'->>'updatedByUserId'",
},
Expand Down

0 comments on commit 06d0d80

Please sign in to comment.