Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
add display rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ubamrein committed Aug 26, 2021
1 parent 3afffab commit 89a8a02
Showing 1 changed file with 139 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,143 @@
{
"displayRules": [],
"displayRules": [{
"id": "display-from-date",
"logic": {
"if": [{
"var": "payload.v.0"
},
{
"if": [{
"and": [{
"in": [{
"var": "payload.v.0.mp"
},
[
"EU/1/20/1525"
]
]
},
{
"==": [{
"var": "payload.v.0.dn"
},
1
]
}
]
},
{
"plusTime": [{
"var": "payload.v.0.dt"
},
21,
"day"
]
},
{
"var": "payload.v.0.dt"
}
]
},
{
"if": [{
"var": "payload.t.0"
},
{
"var": "payload.t.0.sc"
},
{
"if": [{
"var": "payload.r.0"
},
{
"plusTime": [{
"var": "payload.r.0.fr"
},
10,
"day"
]
}
]
}
]
}
]
}
},
{
"id": "display-until-date",
"logic": {
"if": [{
"var": "payload.v.0"
},
{
"plusTime": [{
"var": "payload.v.0.dt"
},
364,
"day"
]
},
{
"if": [{
"var": "payload.t.0"
},
{
"if": [{
"==": [{
"var": "payload.t.0.tt"
},
"LP6464-4"
]
},
{
"plusTime": [{
"var": "payload.t.0.sc"
},
72,
"hour"
]
},
{
"if": [{
"==": [{
"var": "payload.t.0.tt"
},
"LP217198-3"
]
},
{
"plusTime": [{
"var": "payload.t.0.sc"
},
48,
"hour"
]
}
]
}
]
},
{
"if": [{
"var": "payload.r.0"
},
{
"plusTime": [{
"var": "payload.r.0.fr"
},
179,
"day"
]
}
]
}
]
}
]
}
}
],
"rules": [{
"affectedFields": [
"r.0",
Expand Down

0 comments on commit 89a8a02

Please sign in to comment.