chellow 1757320031.0.0__py3-none-any.whl → 1759411815.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.

Files changed (75) hide show
  1. chellow/e/bill_importer.py +136 -80
  2. chellow/e/bill_parsers/activity_mop_stark_xlsx.py +99 -86
  3. chellow/e/bill_parsers/annual_mop_stark_xlsx.py +78 -61
  4. chellow/e/bill_parsers/csv.py +139 -101
  5. chellow/e/bill_parsers/drax_edi.py +65 -89
  6. chellow/e/bill_parsers/engie_edi.py +187 -255
  7. chellow/e/bill_parsers/engie_xls.py +153 -167
  8. chellow/e/bill_parsers/haven_edi.py +189 -228
  9. chellow/e/bill_parsers/haven_edi_tprs.py +67 -67
  10. chellow/e/bill_parsers/nonsettlement_dc_stark_xlsx.py +75 -66
  11. chellow/e/bill_parsers/settlement_dc_stark_xlsx.py +229 -126
  12. chellow/e/bill_parsers/sse_edi.py +107 -75
  13. chellow/e/bill_parsers/sww_xls.py +78 -91
  14. chellow/e/computer.py +1 -1
  15. chellow/e/views.py +626 -281
  16. chellow/edi_lib.py +4 -27
  17. chellow/models.py +92 -3
  18. chellow/reports/report_111.py +514 -616
  19. chellow/reports/report_247.py +96 -137
  20. chellow/templates/e/dc_batch.html +110 -157
  21. chellow/templates/e/dc_batch_add.html +2 -3
  22. chellow/templates/e/dc_batch_edit.html +42 -46
  23. chellow/templates/e/dc_batch_file.html +2 -3
  24. chellow/templates/e/dc_batch_file_edit.html +28 -40
  25. chellow/templates/e/dc_batch_upload_file.html +68 -0
  26. chellow/templates/e/dc_batches.html +2 -1
  27. chellow/templates/e/dc_batches_edit.html +26 -0
  28. chellow/templates/e/dc_bill.html +27 -5
  29. chellow/templates/e/dc_bill_add.html +4 -4
  30. chellow/templates/e/dc_bill_edit.html +43 -63
  31. chellow/templates/e/dc_bill_import.html +1 -1
  32. chellow/templates/e/dc_bill_import_contract.html +130 -0
  33. chellow/templates/e/dc_contract.html +1 -1
  34. chellow/templates/e/dc_element.html +41 -0
  35. chellow/templates/e/dc_element_add.html +36 -0
  36. chellow/templates/e/dc_element_edit.html +49 -0
  37. chellow/templates/e/dc_rate_script_edit.html +27 -43
  38. chellow/templates/e/mop_batch.html +105 -152
  39. chellow/templates/e/mop_batch_add.html +2 -3
  40. chellow/templates/e/mop_batch_edit.html +43 -51
  41. chellow/templates/e/mop_batch_upload_file.html +71 -5
  42. chellow/templates/e/mop_batches.html +2 -1
  43. chellow/templates/e/mop_batches_edit.html +26 -0
  44. chellow/templates/e/mop_bill.html +31 -8
  45. chellow/templates/e/mop_bill_add.html +7 -27
  46. chellow/templates/e/mop_bill_import.html +1 -1
  47. chellow/templates/e/mop_bill_import_contract.html +130 -0
  48. chellow/templates/e/mop_contract.html +4 -5
  49. chellow/templates/e/mop_element.html +41 -0
  50. chellow/templates/e/mop_element_add.html +36 -0
  51. chellow/templates/e/mop_element_edit.html +49 -0
  52. chellow/templates/e/supplier_batch.html +3 -7
  53. chellow/templates/e/supplier_batch_add.html +2 -2
  54. chellow/templates/e/supplier_batch_edit.html +1 -1
  55. chellow/templates/e/supplier_batch_file.html +3 -5
  56. chellow/templates/e/supplier_batch_file_add.html +18 -11
  57. chellow/templates/e/supplier_batch_upload_file.html +83 -9
  58. chellow/templates/e/supplier_batches.html +4 -4
  59. chellow/templates/e/supplier_batches_edit.html +26 -0
  60. chellow/templates/e/supplier_bill.html +29 -6
  61. chellow/templates/e/supplier_bill_add.html +3 -3
  62. chellow/templates/e/supplier_bill_import.html +1 -1
  63. chellow/templates/e/supplier_bill_import_contract.html +118 -0
  64. chellow/templates/e/supplier_contract.html +1 -1
  65. chellow/templates/e/supplier_element.html +45 -0
  66. chellow/templates/e/supplier_element_add.html +36 -0
  67. chellow/templates/e/supplier_element_edit.html +51 -0
  68. chellow/templates/report_run_bill_check.html +137 -179
  69. chellow/templates/report_run_row_bill_check.html +187 -179
  70. chellow/views.py +57 -64
  71. {chellow-1757320031.0.0.dist-info → chellow-1759411815.0.0.dist-info}/METADATA +2 -2
  72. {chellow-1757320031.0.0.dist-info → chellow-1759411815.0.0.dist-info}/RECORD +73 -60
  73. chellow/e/bill_parsers/drax_element_edi.py +0 -459
  74. chellow/templates/e/supplier_bill_imports.html +0 -421
  75. {chellow-1757320031.0.0.dist-info → chellow-1759411815.0.0.dist-info}/WHEEL +0 -0
@@ -1,421 +0,0 @@
1
- {% extends "base.html" %}
2
-
3
- {% block title %}
4
- » Supplier Contracts » {{batch.contract.name}} » Batches
5
- » {{batch.reference}} » Bill Imports
6
- {% endblock %}
7
-
8
- {% block nav %}
9
- <a href="/e/supplier_contracts">Supplier Contracts</a> &raquo;
10
- <a href="/e/supplier_contracts/{{batch.contract.id}}">{{batch.contract.name}}</a> &raquo;
11
- <a href="/e/supplier_batches?supplier_contract_id={{batch.contract.id}}">Batches</a> &raquo;
12
- <a href="/e/supplier_batches/{{batch.id}}">{{batch.reference}}</a> &raquo;
13
- Bill Imports
14
- {% endblock %}
15
-
16
- {% block content %}
17
- <form enctype="multipart/form-data" method="post" action="">
18
- <fieldset>
19
- <legend>Import Bill File</legend>
20
- <input type="hidden" name="supplier_batch_id"
21
- value="{{batch.id}}">
22
- <input type="file" name="import_file" size="45"
23
- value="{{request.values.import_file}}">
24
- <input type="submit" value="Import">
25
- <br>
26
- <p>Valid file name extensions are {{parser_names}}.</p>
27
- <table class="DataTable widthAuto">
28
- <caption>The '.csv' Format</caption>
29
- <tbody>
30
- <tr>
31
- <td># Bill Type (N - Normal, W - Withdrawn or F -Final)</td>
32
- <td>Account Reference</td>
33
- <td>MPAN Core</td>
34
- <td>Invoice Reference</td>
35
- <td>Issue Date (YYYY-mm-dd HH:MM)</td>
36
- <td>Start Date (YYYY-mm-dd HH:MM)</td>
37
- <td>Finish Date (YYYY-mm-dd HH:MM)</td>
38
- <td>kWh</td>
39
- <td>Net</td>
40
- <td>VAT</td>
41
- <td>Gross</td>
42
- <td>Breakdown</td>
43
- <td>R1 Meter Serial Number</td>
44
- <td>R1 MPAN</td>
45
- <td>R1 Coefficient</td>
46
- <td>R1 Units (kWh, kW, kVA or kVArh)</td>
47
- <td>R1 TPR (Blank if kW or kVA)</td>
48
- <td>R1 Previous Read Date</td>
49
- <td>R1 Previous Read Value</td>
50
- <td>R1 Previous Read Type</td>
51
- <td>R1 Present Read Date</td>
52
- <td>R1 Present Read Value</td>
53
- <td>R1 Present Read Type</td>
54
- </tr>
55
- </tbody>
56
- </table>
57
-
58
- <p>
59
- The register read block of fields can be repeated for each
60
- register, or can be left out entirely if the bill doesn't have
61
- any readings associated with it.
62
- </p>
63
-
64
- <table>
65
- <caption>
66
- Mapping Between Chellow, sse.edi and bgb.edi read types
67
- </caption>
68
- <thead>
69
- <tr>
70
- <th colspan="2">Chellow</th>
71
- <th colspan="2">
72
- <a href="https://www.electralink.co.uk/items">J0171</a>
73
- </th>
74
- <th colspan="2">SSE EDI</th>
75
- <th colspan="2">BGB EDI</th>
76
- <th colspan="2">Haven CSV</th>
77
- <th colspan="2">Haven EDI</th>
78
- </tr>
79
- <tr>
80
- <th>Code</th>
81
- <th>Description</th>
82
- <th>Code</th>
83
- <th>Description</th>
84
- <th>Code</th>
85
- <th>Description</th>
86
- <th>Code</th>
87
- <th>Description</th>
88
- <th>Code</th>
89
- <th>Description</th>
90
- <th>Code</th>
91
- <th>Description</th>
92
- </tr>
93
- </thead>
94
- <tbody>
95
- <tr>
96
- <td>A</td>
97
- <td>Actual Change of Supplier Read</td>
98
- <td>A</td>
99
- <td>Actual Change of Supplier Read</td>
100
- <td></td>
101
- <td></td>
102
- <td></td>
103
- <td></td>
104
- <td>A</td>
105
- <td>Actual Read</td>
106
- <td>00</td>
107
- <td>Actual Read</td>
108
- </tr>
109
- <tr>
110
- <td>C</td>
111
- <td>Customer</td>
112
- <td>C</td>
113
- <td>Customer own read</td>
114
- <td>04</td>
115
- <td>Customer's Own Reading</td>
116
- <td>04</td>
117
- <td>Customer's own reading</td>
118
- <td>C</td>
119
- <td>Customer's Own Read</td>
120
- <td>04</td>
121
- <td>Customer's Own Read</td>
122
- </tr>
123
- <tr>
124
- <td>CP</td>
125
- <td>Computer</td>
126
- <td></td>
127
- <td></td>
128
- <td>05</td>
129
- <td>Computer Reading</td>
130
- <td></td>
131
- <td></td>
132
- <td></td>
133
- <td></td>
134
- <td></td>
135
- <td></td>
136
- </tr>
137
- <tr>
138
- <td>D</td>
139
- <td>
140
- Deemed (Settlement Registers) or Estimated (Non-Settlement
141
- Registers)
142
- </td>
143
- <td>D</td>
144
- <td>
145
- Deemed (Settlement Registers) or Estimated (Non-Settlement
146
- Registers)
147
- </td>
148
- <td></td>
149
- <td></td>
150
- <td></td>
151
- <td></td>
152
- <td>D</td>
153
- <td>Deemed Read</td>
154
- <td>02</td>
155
- <td>Deemed Read</td>
156
- </tr>
157
- <tr>
158
- <td>E</td>
159
- <td>Estimated</td>
160
- <td></td>
161
- <td></td>
162
- <td>02</td>
163
- <td>Estimated (Computer) Reading</td>
164
- <td>02</td>
165
- <td>Estimated (computer)</td>
166
- <td>E</td>
167
- <td>Estimated</td>
168
- <td>02</td>
169
- <td>Estimated</td>
170
- </tr>
171
- <tr>
172
- <td>E3</td>
173
- <td>Estimated 3rd Party</td>
174
- <td></td>
175
- <td></td>
176
- <td>11</td>
177
- <td>Third Party Estimated (Computer) Reading</td>
178
- <td></td>
179
- <td></td>
180
- <td></td>
181
- <td></td>
182
- <td></td>
183
- <td></td>
184
- </tr>
185
- <tr>
186
- <td>EM</td>
187
- <td>Estimated Manual</td>
188
- <td></td>
189
- <td></td>
190
- <td>01</td>
191
- <td>Estimated (manual)</td>
192
- <td></td>
193
- <td></td>
194
- <td></td>
195
- <td></td>
196
- <td></td>
197
- <td></td>
198
- </tr>
199
- <tr>
200
- <td>F</td>
201
- <td>Final</td>
202
- <td>F</td>
203
- <td>Final</td>
204
- <td></td>
205
- <td></td>
206
- <td></td>
207
- <td></td>
208
- <td>F</td>
209
- <td>Final Read</td>
210
- <td>03</td>
211
- <td>Final Read</td>
212
- </tr>
213
- <tr>
214
- <td>H</td>
215
- <td>Data Collector Reading Queried By Supplier</td>
216
- <td></td>
217
- <td></td>
218
- <td></td>
219
- <td></td>
220
- <td></td>
221
- <td></td>
222
- <td>X</td>
223
- <td>Data Collector Reading Queried By Haven</td>
224
- <td></td>
225
- <td></td>
226
- </tr>
227
- <tr>
228
- <td>I</td>
229
- <td>Initial</td>
230
- <td>I</td>
231
- <td>Initial</td>
232
- <td></td>
233
- <td></td>
234
- <td></td>
235
- <td></td>
236
- <td>I</td>
237
- <td>Initial Read</td>
238
- <td>06</td>
239
- <td>Initial Read</td>
240
- </tr>
241
- <tr>
242
- <td>IF</td>
243
- <td>Information</td>
244
- <td></td>
245
- <td></td>
246
- <td>12</td>
247
- <td>Reading for Information only</td>
248
- <td></td>
249
- <td></td>
250
- <td></td>
251
- <td></td>
252
- <td></td>
253
- <td></td>
254
- </tr>
255
- <tr>
256
- <td></td>
257
- <td></td>
258
- <td>M</td>
259
- <td>MAR</td>
260
- <td></td>
261
- <td></td>
262
- <td></td>
263
- <td></td>
264
- <td></td>
265
- <td></td>
266
- <td>05</td>
267
- <td>MAR</td>
268
- </tr>
269
- <tr>
270
- <td>N</td>
271
- <td>Normal</td>
272
- <td>R</td>
273
- <td>Routine</td>
274
- <td>00</td>
275
- <td>Normal Reading</td>
276
- <td>00</td>
277
- <td>Normal Reading - Default</td>
278
- <td>R</td>
279
- <td>Routine</td>
280
- <td></td>
281
- <td></td>
282
- </tr>
283
- <tr>
284
- <td>N3</td>
285
- <td>Normal 3rd Party</td>
286
- <td></td>
287
- <td></td>
288
- <td>09</td>
289
- <td>Third Party Normal Reading</td>
290
- <td></td>
291
- <td></td>
292
- <td></td>
293
- <td></td>
294
- <td></td>
295
- <td></td>
296
- </tr>
297
- <tr>
298
- <td>O</td>
299
- <td>Old Supplier's Estimated CoS Reading</td>
300
- <td>O</td>
301
- <td>Old Supplier's Estimated CoS Reading</td>
302
- <td></td>
303
- <td></td>
304
- <td></td>
305
- <td></td>
306
- <td>O</td>
307
- <td>Old Suppliers Estimated Change of Supplier Reading</td>
308
- <td>02</td>
309
- <td>Old Suppliers Estimated Change of Supplier Reading</td>
310
- </tr>
311
- <tr>
312
- <td></td>
313
- <td></td>
314
- <td>P</td>
315
- <td>Electronically collected via PPMIP</td>
316
- <td></td>
317
- <td></td>
318
- <td></td>
319
- <td></td>
320
- <td></td>
321
- <td></td>
322
- <td></td>
323
- <td></td>
324
- </tr>
325
- <tr>
326
- <td>Q</td>
327
- <td>Meter Reading modified manually by DC</td>
328
- <td>Q</td>
329
- <td>Meter Reading modified manually by DC</td>
330
- <td></td>
331
- <td></td>
332
- <td></td>
333
- <td></td>
334
- <td>Q</td>
335
- <td>Reading Modified Manually by DC</td>
336
- <td>01</td>
337
- <td>Reading Modified Manually by DC</td>
338
- </tr>
339
- <tr>
340
- <td>S</td>
341
- <td>Special</td>
342
- <td>S</td>
343
- <td>Special</td>
344
- <td></td>
345
- <td></td>
346
- <td></td>
347
- <td></td>
348
- <td>S</td>
349
- <td>Actual Read</td>
350
- <td>00</td>
351
- <td>Actual Read</td>
352
- </tr>
353
- <tr>
354
- <td></td>
355
- <td></td>
356
- <td>T</td>
357
- <td>Proving Test Reading</td>
358
- <td></td>
359
- <td></td>
360
- <td></td>
361
- <td></td>
362
- <td></td>
363
- <td></td>
364
- <td>00</td>
365
- <td>Proving Test Reading</td>
366
- </tr>
367
- <tr>
368
- <td>W</td>
369
- <td>Withdrawn</td>
370
- <td>W</td>
371
- <td>Withdrawn</td>
372
- <td>03</td>
373
- <td>Removed meter reading</td>
374
- <td></td>
375
- <td></td>
376
- <td></td>
377
- <td></td>
378
- <td></td>
379
- <td></td>
380
- </tr>
381
- <tr>
382
- <td>X</td>
383
- <td>Exchange</td>
384
- <td></td>
385
- <td></td>
386
- <td>06</td>
387
- <td>Exchange Meter Reading</td>
388
- <td>06</td>
389
- <td>Exchange Meter Reading</td>
390
- <td></td>
391
- <td></td>
392
- <td></td>
393
- <td></td>
394
- </tr>
395
- <tr>
396
- <td>Z</td>
397
- <td>Actual Change of Tenancy Read</td>
398
- <td>Z</td>
399
- <td>Actual Change of Tenancy Read</td>
400
- <td></td>
401
- <td></td>
402
- <td></td>
403
- <td></td>
404
- <td>Z</td>
405
- <td>Actual Change of Tenancy Read</td>
406
- <td>04</td>
407
- <td>Actual Change of Tenancy Read</td>
408
- </tr>
409
- </tbody>
410
- </table>
411
- </fieldset>
412
- </form>
413
-
414
- {% if importer_ids %}
415
- <ul>
416
- {% for id in importer_ids %}
417
- <li><a href="/supplier_bill_imports/{{id}}">{{id}}</a></li>
418
- {% endfor %}
419
- </ul>
420
- {% endif %}
421
- {% endblock %}