diff --git a/test3 b/test3 index ad4076e..56da64f 100644 --- a/test3 +++ b/test3 @@ -36,6 +36,6 @@ $${ "module": "MHI", "offset": "h.dcard", "transaction": "purchase", - "date": "2018-11-01" + "date": "2018-12-01" } }$$::jsonb bpr \ No newline at end of file diff --git a/test4 b/test4 new file mode 100644 index 0000000..ae37f07 --- /dev/null +++ b/test4 @@ -0,0 +1 @@ +update evt.acct set prop = '{"func":"netinc"}' where acct in ('h.food','h.maint.cars'); \ No newline at end of file diff --git a/test5 b/test5 new file mode 100644 index 0000000..2af7246 --- /dev/null +++ b/test5 @@ -0,0 +1,41 @@ +insert into evt.bpr(bpr) + SELECT +$${ + "gl": { + "lines": [ + { + "amount": 10.00, + "account": "h.maint.cars" + }, + { + "amount": -10.00, + "account": "h.dcard" + } + ], + "jpath": [ + [ + "{item,0}", + "{header}" + ], + [ + "{item,0}", + "{header}" + ] + ] + }, + "item": [ + { + "item": "light bulb", + "amount": 10.00, + "reason": "repair", + "account": "h.maint.cars" + } + ], + "header": { + "entity": "home", + "module": "MHI", + "offset": "h.dcard", + "transaction": "purchase", + "date": "2019-02-01" + } +}$$::jsonb bpr \ No newline at end of file diff --git a/test6 b/test6 new file mode 100644 index 0000000..bb51cf0 --- /dev/null +++ b/test6 @@ -0,0 +1,41 @@ +insert into evt.bpr(bpr) + SELECT +$${ + "gl": { + "lines": [ + { + "amount": 10.00, + "account": "h.maint.cars" + }, + { + "amount": -10.00, + "account": "h.dcard" + } + ], + "jpath": [ + [ + "{item,0}", + "{header}" + ], + [ + "{item,0}", + "{header}" + ] + ] + }, + "item": [ + { + "item": "light bulb", + "amount": 10.00, + "reason": "repair", + "account": "h.maint.cars" + } + ], + "header": { + "entity": "home", + "module": "MHI", + "offset": "h.dcard", + "transaction": "purchase", + "date": "2020-02-01" + } +}$$::jsonb bpr \ No newline at end of file