wbaccounting 1.59.3__py2.py3-none-any.whl → 1.59.5__py2.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.
@@ -5,11 +5,12 @@ from celery import shared_task
5
5
  from django.db.models.signals import post_save
6
6
  from django.utils.module_loading import import_string
7
7
  from wbcore.contrib.directory.models import Entry
8
+ from wbcore.workers import Queue
8
9
 
9
10
  from wbaccounting.generators.base import generate_booking_entries
10
11
 
11
12
 
12
- @shared_task
13
+ @shared_task(queue=Queue.DEFAULT.value)
13
14
  def submit_invoices_as_task(ids: list[int]):
14
15
  from wbaccounting.models import Invoice
15
16
 
@@ -19,7 +20,7 @@ def submit_invoices_as_task(ids: list[int]):
19
20
  invoice.save()
20
21
 
21
22
 
22
- @shared_task
23
+ @shared_task(queue=Queue.DEFAULT.value)
23
24
  def approve_invoices_as_task(ids: list[int]):
24
25
  from wbaccounting.models import Invoice
25
26
 
@@ -29,7 +30,7 @@ def approve_invoices_as_task(ids: list[int]):
29
30
  invoice.save()
30
31
 
31
32
 
32
- @shared_task
33
+ @shared_task(queue=Queue.DEFAULT.value)
33
34
  def pay_invoices_as_task(ids: list[int]):
34
35
  from wbaccounting.models import Invoice
35
36
 
@@ -39,7 +40,7 @@ def pay_invoices_as_task(ids: list[int]):
39
40
  invoice.save()
40
41
 
41
42
 
42
- @shared_task
43
+ @shared_task(queue=Queue.DEFAULT.value)
43
44
  def refresh_complete_invoice_as_task(invoice_id: int):
44
45
  from wbaccounting.models import Invoice
45
46
  from wbaccounting.models.booking_entry import BookingEntry, booking_entry_changed
@@ -56,7 +57,7 @@ def refresh_complete_invoice_as_task(invoice_id: int):
56
57
  post_save.connect(booking_entry_changed, sender=BookingEntry)
57
58
 
58
59
 
59
- @shared_task
60
+ @shared_task(queue=Queue.DEFAULT.value)
60
61
  def refresh_invoice_document_as_task(invoice_id):
61
62
  from wbaccounting.models import Invoice
62
63
 
@@ -64,7 +65,7 @@ def refresh_invoice_document_as_task(invoice_id):
64
65
  invoice.refresh_invoice_document()
65
66
 
66
67
 
67
- @shared_task
68
+ @shared_task(queue=Queue.DEFAULT.value)
68
69
  def generate_booking_entries_as_task(func: str, from_date: date, to_date: date, counterparty_id: int):
69
70
  with suppress(ImportError):
70
71
  generator = import_string(func)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wbaccounting
3
- Version: 1.59.3
3
+ Version: 1.59.5
4
4
  Summary: A workbench module for managing invoicing and simple accounting.
5
5
  Author-email: Christopher Wittlinger <c.wittlinger@stainly.com>
6
6
  Requires-Dist: reportlab==3.*
@@ -38,7 +38,7 @@ wbaccounting/models/booking_entry.py,sha256=usKjt_g_4Y9dfS7-7DYzB7zxJ1eQ3UW5PwIF
38
38
  wbaccounting/models/entry_accounting_information.py,sha256=FFz4hySajryxDqQfVeDOlr5ExBR9ni6bvvcVXc6PZ9A,5779
39
39
  wbaccounting/models/invoice.py,sha256=3veUvFExBDOIATXYYqPHxeVehsaps4kaXoy6DGsK9Lw,19063
40
40
  wbaccounting/models/invoice_type.py,sha256=SMYKJGyL7rm4_7Sb6yaLT88ZIqXDmh9LA2KpyELsDBg,855
41
- wbaccounting/models/model_tasks.py,sha256=qy9-b9WCtzNc_E3ETHOlevrvqMymWFmGT5uDcRjFl4k,2166
41
+ wbaccounting/models/model_tasks.py,sha256=V0p8xXORYSf98mbZLb6y9mcgkrpKiFqF8afXlNEtw9s,2361
42
42
  wbaccounting/models/transactions.py,sha256=V6tOJjLSJJVsqynT53KABqHJGtp22f6Gl2kQy9ok53o,3875
43
43
  wbaccounting/processors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
44
  wbaccounting/processors/dummy_processor.py,sha256=eHeH6IeUlPHcN1vggzmtVcffH0xgYFqAmA4CycVOK2I,158
@@ -97,6 +97,6 @@ wbaccounting/viewsets/titles/booking_entry.py,sha256=SNQJOYXf3QcjTtL3Co2uIYZC69d
97
97
  wbaccounting/viewsets/titles/entry_accounting_information.py,sha256=76kXkK5ij-HV29tt8efUuvplQ9d1CrQklT8sSv6zHYE,344
98
98
  wbaccounting/viewsets/titles/invoice.py,sha256=mr-iufJpM2SYuvexZ3XPLjBmQgPatgIMn1JC4eHLdnY,566
99
99
  wbaccounting/viewsets/titles/invoice_type.py,sha256=szgA0iSYVILjLvhFhuLcq_WhMWv04_ESEVvogMYOkyk,301
100
- wbaccounting-1.59.3.dist-info/METADATA,sha256=J_eJ2XN__MuofcNBxYrbJPCsLtTAIcIu4EIVlKGXXeU,281
101
- wbaccounting-1.59.3.dist-info/WHEEL,sha256=aha0VrrYvgDJ3Xxl3db_g_MDIW-ZexDdrc_m-Hk8YY4,105
102
- wbaccounting-1.59.3.dist-info/RECORD,,
100
+ wbaccounting-1.59.5.dist-info/METADATA,sha256=TUm7ZA1q41ZGLeSwInDYWej2RDCZPAjWDcEO1QlHvVs,281
101
+ wbaccounting-1.59.5.dist-info/WHEEL,sha256=aha0VrrYvgDJ3Xxl3db_g_MDIW-ZexDdrc_m-Hk8YY4,105
102
+ wbaccounting-1.59.5.dist-info/RECORD,,