chellow 1688376223.0.0__py3-none-any.whl → 1688634635.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of chellow might be problematic. Click here for more details.
- chellow/e/bill_parsers/engie_edi.py +1 -1
- chellow/e/bill_parsers/haven_edi_tprs.py +19 -5
- chellow/e/views.py +9 -9
- chellow/templates/e/dc_contract.html +1 -1
- {chellow-1688376223.0.0.dist-info → chellow-1688634635.0.0.dist-info}/METADATA +3 -3
- {chellow-1688376223.0.0.dist-info → chellow-1688634635.0.0.dist-info}/RECORD +7 -7
- {chellow-1688376223.0.0.dist-info → chellow-1688634635.0.0.dist-info}/WHEEL +0 -0
|
@@ -362,7 +362,7 @@ def _process_VAT(elements, headers):
|
|
|
362
362
|
"net": Decimal("0.00"),
|
|
363
363
|
"vat": vat,
|
|
364
364
|
"gross": vat,
|
|
365
|
-
"breakdown": {"vat_percentage":
|
|
365
|
+
"breakdown": {"vat": {vat_percentage: {"vat": vat, "net": vat_net}}},
|
|
366
366
|
"reads": [],
|
|
367
367
|
}
|
|
368
368
|
|
|
@@ -298,15 +298,29 @@ def _process_MAN(elements, headers):
|
|
|
298
298
|
|
|
299
299
|
def _process_VAT(elements, headers):
|
|
300
300
|
uvla = elements["UVLA"]
|
|
301
|
-
net = to_decimal(uvla) / Decimal("100")
|
|
301
|
+
net = Decimal("0.00") + to_decimal(uvla) / Decimal("100")
|
|
302
302
|
headers["net"] += net
|
|
303
303
|
uvtt = elements["UVTT"]
|
|
304
|
-
|
|
304
|
+
vat = Decimal("0.00") + to_decimal(uvtt) / Decimal("100")
|
|
305
|
+
headers["vat"] += vat
|
|
305
306
|
ucsi = elements["UCSI"]
|
|
306
|
-
headers["gross"] += to_decimal(ucsi) / Decimal("100")
|
|
307
|
+
headers["gross"] += Decimal("0.00") + to_decimal(ucsi) / Decimal("100")
|
|
307
308
|
vat_percentage = to_decimal(elements["VATP"]) / Decimal("1000")
|
|
308
|
-
headers["breakdown"]
|
|
309
|
-
|
|
309
|
+
bd = headers["breakdown"]
|
|
310
|
+
if "vat" in bd:
|
|
311
|
+
vat_breakdown = bd["vat"]
|
|
312
|
+
else:
|
|
313
|
+
vat_breakdown = bd["vat"] = {}
|
|
314
|
+
|
|
315
|
+
try:
|
|
316
|
+
vat_values = vat_breakdown[vat_percentage]
|
|
317
|
+
except KeyError:
|
|
318
|
+
vat_values = vat_breakdown[vat_percentage] = {
|
|
319
|
+
"vat": Decimal("0.00"),
|
|
320
|
+
"net": Decimal("0.00"),
|
|
321
|
+
}
|
|
322
|
+
vat_values["vat"] += vat
|
|
323
|
+
vat_values["net"] += net
|
|
310
324
|
|
|
311
325
|
|
|
312
326
|
def _process_NOOP(elements, headers):
|
chellow/e/views.py
CHANGED
|
@@ -3907,15 +3907,15 @@ def supplier_batch_get(batch_id):
|
|
|
3907
3907
|
|
|
3908
3908
|
if bill.vat != 0:
|
|
3909
3909
|
bd = bill.bd
|
|
3910
|
-
if "
|
|
3911
|
-
vat_percentage
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3910
|
+
if "vat" in bd:
|
|
3911
|
+
for vat_percentage, vat_vals in bd["vat"].items():
|
|
3912
|
+
try:
|
|
3913
|
+
vbd = vat_breakdown[vat_percentage]
|
|
3914
|
+
except KeyError:
|
|
3915
|
+
vbd = vat_breakdown[vat_percentage] = defaultdict(int)
|
|
3916
|
+
|
|
3917
|
+
vbd["vat"] += vat_vals["vat"]
|
|
3918
|
+
vbd["net"] += vat_vals["net"]
|
|
3919
3919
|
|
|
3920
3920
|
config_contract = Contract.get_non_core_by_name(g.sess, "configuration")
|
|
3921
3921
|
properties = config_contract.make_properties()
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
<a href="/e/dc_batches?dc_contract_id={{dc_contract.id}}">Batches</a>
|
|
71
71
|
</li>
|
|
72
72
|
<li>
|
|
73
|
-
<a href="/e/channel_snags?dc_contract_id={{dc_contract.id}}&days_hidden=5"
|
|
73
|
+
<a href="/e/channel_snags?dc_contract_id={{dc_contract.id}}&days_hidden=5"
|
|
74
74
|
>Channel Snags</a>
|
|
75
75
|
</li>
|
|
76
76
|
<li>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: chellow
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1688634635.0.0
|
|
4
4
|
Summary: Web Application for checking UK energy bills.
|
|
5
5
|
Project-URL: Homepage, https://github.com/WessexWater/chellow
|
|
6
6
|
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
@@ -12,11 +12,11 @@ Requires-Dist: flask==2.3.2
|
|
|
12
12
|
Requires-Dist: odio==0.0.22
|
|
13
13
|
Requires-Dist: openpyxl==3.0.10
|
|
14
14
|
Requires-Dist: pep3143daemon==0.0.6
|
|
15
|
-
Requires-Dist: pg8000==1.29.
|
|
15
|
+
Requires-Dist: pg8000==1.29.8
|
|
16
16
|
Requires-Dist: pip>=9.0.1
|
|
17
17
|
Requires-Dist: psutil==5.9.4
|
|
18
18
|
Requires-Dist: pympler==1.0.1
|
|
19
|
-
Requires-Dist: pypdf==3.
|
|
19
|
+
Requires-Dist: pypdf==3.12.0
|
|
20
20
|
Requires-Dist: pysftp==0.2.9
|
|
21
21
|
Requires-Dist: python-dateutil==2.8.2
|
|
22
22
|
Requires-Dist: pytz==2022.6
|
|
@@ -34,18 +34,18 @@ chellow/e/scenario.py,sha256=IuyE494XaBLq3FW7NdJePD6J4cTzPogfACO6dThiY00,23239
|
|
|
34
34
|
chellow/e/system_price.py,sha256=IPBLSRPzGA3yca4tpR8PJemwPbgqVjn1WnljOMUyWnA,8145
|
|
35
35
|
chellow/e/tlms.py,sha256=gXBZTHXqGVcaTGHaYGVA5Ir5pzoBDqFC1Kl1mQ0IDqU,9549
|
|
36
36
|
chellow/e/tnuos.py,sha256=kxp9EXPCXv_yAbMRbpqa5b6fsw3KJ290zNaGU3piWgo,20647
|
|
37
|
-
chellow/e/views.py,sha256=
|
|
37
|
+
chellow/e/views.py,sha256=FFzAY6TNQy1Rf1UrlWtqrvI765b47XWnqpVxvfnBdbM,179196
|
|
38
38
|
chellow/e/bill_parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
39
|
chellow/e/bill_parsers/activity_mop_stark_xlsx.py,sha256=v1s4O8phVJVn9sOs9HKrKYcECAP0ApnUgqCaa2ARYiQ,4234
|
|
40
40
|
chellow/e/bill_parsers/annual_mop_stark_xlsx.py,sha256=4dAWjaxsDnnGBnRAjgFe7IZLxIcLMGiTuXh1uqNnnlQ,4382
|
|
41
41
|
chellow/e/bill_parsers/bgb_edi.py,sha256=GuwHeYbAGk7BVg5n19FcTANFDyKI-y0z3f9niQaPSSw,4828
|
|
42
42
|
chellow/e/bill_parsers/csv.py,sha256=C86VGyqHBE_PklPxEOfXVKJ4l4Ll9BE1Z0lpCj86EOs,5132
|
|
43
|
-
chellow/e/bill_parsers/engie_edi.py,sha256=
|
|
43
|
+
chellow/e/bill_parsers/engie_edi.py,sha256=jUPSNYecxxn8CwOs_VtlMVlEGjj2S9T3c-Kt654MeTs,13911
|
|
44
44
|
chellow/e/bill_parsers/engie_xls.py,sha256=jrut2heH_ZWmSjcn7celOydZS9Y49GfpYjDk_EKwamI,14453
|
|
45
45
|
chellow/e/bill_parsers/gdf_csv.py,sha256=ZfK3Oc6oP28p_P9DIevLNB_zW2WLcEJ3Lvb1gL310YU,7382
|
|
46
46
|
chellow/e/bill_parsers/haven_csv.py,sha256=Ft81mqHTbCQl6dMLkLin777vAX2T999Q_4fkNwl-naM,13606
|
|
47
47
|
chellow/e/bill_parsers/haven_edi.py,sha256=eN40WL--JkX7TNIefgZohYv0BQ8vOm6AqkWlJSW5Mmk,16188
|
|
48
|
-
chellow/e/bill_parsers/haven_edi_tprs.py,sha256=
|
|
48
|
+
chellow/e/bill_parsers/haven_edi_tprs.py,sha256=HGrVZoJegqGv2_82PjLyCd1Zjuycwe5QEm6URpwOMEc,11365
|
|
49
49
|
chellow/e/bill_parsers/mm.py,sha256=P4CdkskDrjmFMSDp0ehE_ichTBHGywbT_dckMxuAqQQ,1929
|
|
50
50
|
chellow/e/bill_parsers/nonsettlement_dc_stark_xlsx.py,sha256=MF74mh6gdBb0lqvPyPZIv_7vsqNu_zNXWpIzlNFtl1g,4576
|
|
51
51
|
chellow/e/bill_parsers/settlement_dc_stark_xlsx.py,sha256=4Dfq4N0ZOgD_x3ZJ9CnGzsLbwhS1-7aTJqFx00GCnU0,6007
|
|
@@ -178,7 +178,7 @@ chellow/templates/e/dc_bill_add.html,sha256=73Sn_MKBsUuYYnDfUMCdX1Dul6GimMC9YXk6
|
|
|
178
178
|
chellow/templates/e/dc_bill_edit.html,sha256=0GsN-ZIc4q-z_xs8igC2ZS6t4soo2SvB3qRA6iC-AuM,2707
|
|
179
179
|
chellow/templates/e/dc_bill_import.html,sha256=NHjMSoFizvFQIaPWuVE3nTCtMDTzJB0XmH8jXfV1tiA,2188
|
|
180
180
|
chellow/templates/e/dc_bill_imports.html,sha256=lCaUR47r9KPr0VrQhEvVEaKexM5R_nmkxtzgpWZ0e9s,2135
|
|
181
|
-
chellow/templates/e/dc_contract.html,sha256=
|
|
181
|
+
chellow/templates/e/dc_contract.html,sha256=_fq_s69kmbrGlScYngRYm4cPdRgh2roMvSfvG0J4xzA,2326
|
|
182
182
|
chellow/templates/e/dc_contract_edit.html,sha256=UPLx82pXHY3Wc9JKc_Hdqw4nXJ2gCiEn5wPIk-aREXA,2963
|
|
183
183
|
chellow/templates/e/dc_contract_hh_import.html,sha256=UODiBFNohb60MjH1w-9JW1JE0O9GR2uKPGw-lD7Da5g,848
|
|
184
184
|
chellow/templates/e/dc_contract_hh_imports.html,sha256=eXFDGyzSgag4JRism81_p5yTzQOjCIXaVkQ8tl3dDcM,8172
|
|
@@ -350,6 +350,6 @@ chellow/templates/g/supply_note_edit.html,sha256=6UQf_qbhFDys3cVsTp-c7ABWZpggW9R
|
|
|
350
350
|
chellow/templates/g/supply_notes.html,sha256=WR3YwGh_qqTklSJ7JqWX6BKBc9rk_jMff4RiWZiF2CM,936
|
|
351
351
|
chellow/templates/g/unit.html,sha256=KouNVU0-i84afANkLQ_heJ0uDfJ9H5A05PuLqb8iCN8,438
|
|
352
352
|
chellow/templates/g/units.html,sha256=p5Nd-lAIboKPEOO6N451hx1bcKxMg4BDODnZ-43MmJc,441
|
|
353
|
-
chellow-
|
|
354
|
-
chellow-
|
|
355
|
-
chellow-
|
|
353
|
+
chellow-1688634635.0.0.dist-info/METADATA,sha256=f1l6z43YKxkD0_2H4Ze0bRe7ANlgjDd1GS7UCDNC5ck,12161
|
|
354
|
+
chellow-1688634635.0.0.dist-info/WHEEL,sha256=9QBuHhg6FNW7lppboF2vKVbCGTVzsFykgRQjjlajrhA,87
|
|
355
|
+
chellow-1688634635.0.0.dist-info/RECORD,,
|
|
File without changes
|