grab tests from yeclose branch

This commit is contained in:
Paul Trowbridge 2018-10-05 13:49:30 -04:00
parent 7d195516a3
commit 70dd331081
4 changed files with 84 additions and 1 deletions

2
test3
View File

@ -36,6 +36,6 @@ $${
"module": "MHI",
"offset": "h.dcard",
"transaction": "purchase",
"date": "2018-11-01"
"date": "2018-12-01"
}
}$$::jsonb bpr

1
test4 Normal file
View File

@ -0,0 +1 @@
update evt.acct set prop = '{"func":"netinc"}' where acct in ('h.food','h.maint.cars');

41
test5 Normal file
View File

@ -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

41
test6 Normal file
View File

@ -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