Files
numscript/internal/interpreter/testdata/script-tests/nested-remaining-complex.num.specs.json
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

41 lines
865 B
JSON

{
"testCases": [
{
"it": "-",
"balances": [
{
"account": "orders:1234",
"asset": "EUR/2",
"amount": 10000
}
],
"expect.postings": [
{
"source": "orders:1234",
"destination": "platform:commission:sales_tax",
"amount": 300,
"asset": "EUR/2"
},
{
"source": "orders:1234",
"destination": "users:1234:cashback",
"amount": 60,
"asset": "EUR/2"
},
{
"source": "orders:1234",
"destination": "platform:commission:revenue",
"amount": 1140,
"asset": "EUR/2"
},
{
"source": "orders:1234",
"destination": "merchants:6789",
"amount": 8500,
"asset": "EUR/2"
}
]
}
]
}