Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Billing in Alpha : Still not complete but we can start moving forward on the bill recording and the payment! #11

Open
ElectaZ opened this issue Oct 26, 2022 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@ElectaZ
Copy link
Collaborator

ElectaZ commented Oct 26, 2022

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

@ElectaZ ElectaZ added bug Something isn't working enhancement New feature or request help wanted Extra attention is needed labels Oct 26, 2022
@ElectaZ ElectaZ added this to the Alpha version milestone Oct 26, 2022
@ElectaZ ElectaZ self-assigned this Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant