add more test scenarios
This commit is contained in:
parent
328dc89848
commit
7a9d1eb845
41
test2
Normal file
41
test2
Normal file
@ -0,0 +1,41 @@
|
||||
insert into evt.bpr(bpr)
|
||||
SELECT
|
||||
$${
|
||||
"gl": {
|
||||
"lines": [
|
||||
{
|
||||
"amount": 4.00,
|
||||
"account": "h.maint.cars"
|
||||
},
|
||||
{
|
||||
"amount": -4.00,
|
||||
"account": "h.dcard"
|
||||
}
|
||||
],
|
||||
"jpath": [
|
||||
[
|
||||
"{item,0}",
|
||||
"{header}"
|
||||
],
|
||||
[
|
||||
"{item,0}",
|
||||
"{header}"
|
||||
]
|
||||
]
|
||||
},
|
||||
"item": [
|
||||
{
|
||||
"item": "light bulb",
|
||||
"amount": 4.00,
|
||||
"reason": "repair",
|
||||
"account": "h.maint.cars"
|
||||
}
|
||||
],
|
||||
"header": {
|
||||
"entity": "home",
|
||||
"module": "MHI",
|
||||
"offset": "h.dcard",
|
||||
"transaction": "purchase",
|
||||
"date": "2018-09-01"
|
||||
}
|
||||
}$$::jsonb bpr
|
41
test3
Normal file
41
test3
Normal file
@ -0,0 +1,41 @@
|
||||
insert into evt.bpr(bpr)
|
||||
SELECT
|
||||
$${
|
||||
"gl": {
|
||||
"lines": [
|
||||
{
|
||||
"amount": 5.00,
|
||||
"account": "h.maint.cars"
|
||||
},
|
||||
{
|
||||
"amount": -5.00,
|
||||
"account": "h.dcard"
|
||||
}
|
||||
],
|
||||
"jpath": [
|
||||
[
|
||||
"{item,0}",
|
||||
"{header}"
|
||||
],
|
||||
[
|
||||
"{item,0}",
|
||||
"{header}"
|
||||
]
|
||||
]
|
||||
},
|
||||
"item": [
|
||||
{
|
||||
"item": "light bulb",
|
||||
"amount": 5.00,
|
||||
"reason": "repair",
|
||||
"account": "h.maint.cars"
|
||||
}
|
||||
],
|
||||
"header": {
|
||||
"entity": "home",
|
||||
"module": "MHI",
|
||||
"offset": "h.dcard",
|
||||
"transaction": "purchase",
|
||||
"date": "2018-11-01"
|
||||
}
|
||||
}$$::jsonb bpr
|
Loading…
Reference in New Issue
Block a user