Billing in Alpha : Still not complete but we can start moving forward on the bill recording and the payment! #11
Labels
bug
Something isn't working
enhancement
New feature or request
help wanted
Extra attention is needed
Milestone
Output customerbill
{
"electra12lhecv88myvrmgv92syj782dxjfsnjjg3lzvv7": {
"billCycleID": 78,
"customerDeviceID": "electra12lhecv88myvrmgv92syj782dxjfsnjjg3lzvv7",
"billDate": 1666760710,
"billTotalWh": 20000,
"billTotalPrice": 135000000,
"billCurrency": "uelectra"
},
"electra12r6lx69zfef6ht3fk7drm9f5222qk4ur6zjpvz": {
"billCycleID": 78,
"customerDeviceID": "electra12r6lx69zfef6ht3fk7drm9f5222qk4ur6zjpvz",
"billDate": 1666760710,
"billCurrency": "uelectra"
},
"electra16n5tnkck6rcg7gxmalc057daputvac5pzjeal9": {
"billCycleID": 78,
"customerDeviceID": "electra16n5tnkck6rcg7gxmalc057daputvac5pzjeal9",
"billDate": 1666760710,
"billCurrency": "uelectra"
},
"electra19mhfyxz7532gumtyw5zrq00qv23mqtc4plgfzy": {
"billCycleID": 78,
"customerDeviceID": "electra19mhfyxz7532gumtyw5zrq00qv23mqtc4plgfzy",
"billDate": 1666760710,
"billCurrency": "uelectra"
},
"electra1krkk5xtp8s7lk9xf2az70txle50zfzga7dah87": {
"billCycleID": 78,
"customerDeviceID": "electra1krkk5xtp8s7lk9xf2az70txle50zfzga7dah87",
"billDate": 1666760710,
"billCurrency": "uelectra"
}
}
Output customerBillLines
[
{
"customerDeviceID": "electra12lhecv88myvrmgv92syj782dxjfsnjjg3lzvv7",
"cycleID": 78,
"lineid": 1,
"producerDeviceID": "electra1rf56um69dum7em0kx9xen794x8gm49vxstkjwy",
"billContractID": "test1-prod2",
"lineWh": 10000,
"lineWhPrice": 1500,
"curency": "uelectra",
"lineWhTotalPrice": 15000000,
"phase": 1
},
{
"customerDeviceID": "electra12lhecv88myvrmgv92syj782dxjfsnjjg3lzvv7",
"cycleID": 78,
"lineid": 2,
"producerDeviceID": "electra1rf56um69dum7em0kx9xen794x8gm49vxstkjwy",
"billContractID": "test1-prod2",
"lineWh": 10000,
"lineWhPrice": 1500,
"curency": "uelectra",
"lineWhTotalPrice": 15000000,
"phase": 1
}
]
Output producerBillLines
[
{
"producerDeviceID": "electra1rf56um69dum7em0kx9xen794x8gm49vxstkjwy",
"cycleID": 78,
"lineid": 1,
"customerDeviceID": "electra12lhecv88myvrmgv92syj782dxjfsnjjg3lzvv7",
"billContractID": "test1-prod2",
"lineWh": 10000,
"lineWhPrice": 1500,
"curency": "uelectra",
"lineWhTotalPrice": 15000000,
"phase": 1
},
{
"producerDeviceID": "electra16p7dd9wp76kmxckus64un7udt59kvprfd0tw8v",
"cycleID": 78,
"lineid": 2,
"customerDeviceID": "electra12lhecv88myvrmgv92syj782dxjfsnjjg3lzvv7",
"billContractID": "prod10000-1c4c-4963-872a-5c0175e612d2",
"lineWh": 10000,
"lineWhPrice": 12000,
"curency": "uelectra",
"lineWhTotalPrice": 120000000,
"phase": 1
}
]
END ### makePrepareBill Cycle:78 took 7.910043ms @ 2022-10-26 12:05:10.153237669 +0700 +07 m=+12920.950086750
)
END ### PrepareBill All took 11.332758ms @ 2022-10-26 12:05:10.154608543 +0700 +07 m=+12920.951457631
The text was updated successfully, but these errors were encountered: