jl/test5

41 lines
839 B
Plaintext
Raw Permalink Normal View History

2018-10-05 13:49:30 -04:00
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