Files
Alessandro ScandoneandGitHub a804f6edf1 feat: color as first class citizen (#160)
reworked balances representation (both internal and external) so that it handles colors as an ad-hoc field instead of relying of string convetions
2026-06-15 15:13:22 +02:00

56 lines
1.3 KiB
JSON

{
"testCases": [
{
"it": "-",
"balances": [
{
"account": "users:1234:main",
"asset": "USD/2",
"amount": 5000
},
{
"account": "users:1234:vouchers:2024-01-31",
"asset": "USD/2",
"amount": 1000
},
{
"account": "users:1234:vouchers:2024-02-17",
"asset": "USD/2",
"amount": 3000
},
{
"account": "users:1234:vouchers:2024-03-22",
"asset": "USD/2",
"amount": 10000
}
],
"expect.postings": [
{
"source": "users:1234:main",
"destination": "orders:4567:payment",
"amount": 5000,
"asset": "USD/2"
},
{
"source": "users:1234:vouchers:2024-01-31",
"destination": "orders:4567:payment",
"amount": 1000,
"asset": "USD/2"
},
{
"source": "users:1234:vouchers:2024-02-17",
"destination": "orders:4567:payment",
"amount": 3000,
"asset": "USD/2"
},
{
"source": "users:1234:vouchers:2024-03-22",
"destination": "orders:4567:payment",
"amount": 1000,
"asset": "USD/2"
}
]
}
]
}