wbcommission 1.44.3rc0__py2.py3-none-any.whl → 1.44.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.
Potentially problematic release.
This version of wbcommission might be problematic. Click here for more details.
wbcommission/models/rebate.py
CHANGED
|
@@ -10,6 +10,7 @@ from django.db.models import Exists, OuterRef, QuerySet
|
|
|
10
10
|
from django.dispatch import receiver
|
|
11
11
|
from wbcore.contrib.authentication.models import User
|
|
12
12
|
from wbcore.contrib.notifications.dispatch import send_notification
|
|
13
|
+
from wbcore.contrib.notifications.utils import create_notification_type
|
|
13
14
|
from wbcore.signals import pre_merge
|
|
14
15
|
from wbcore.utils.enum import ChoiceEnum
|
|
15
16
|
from wbcrm.models.accounts import Account
|
|
@@ -160,7 +161,7 @@ class Rebate(BookingEntryCalculatedValueMixin, models.Model):
|
|
|
160
161
|
# ("date", "recipient", "product", "commission"),
|
|
161
162
|
]
|
|
162
163
|
notification_types = [
|
|
163
|
-
(
|
|
164
|
+
create_notification_type(
|
|
164
165
|
"wbcommission.rebate.computation_done",
|
|
165
166
|
"Rebate Computation Done",
|
|
166
167
|
"Sends a notification to notify rebate computation requester that the calculation is done",
|
|
@@ -29,7 +29,7 @@ wbcommission/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
|
|
|
29
29
|
wbcommission/models/__init__.py,sha256=BJyah0_zKssfU2ohvu4qcQSHAT1ovcZ_go2-sLEagyw,183
|
|
30
30
|
wbcommission/models/account_service.py,sha256=WUzcuWoZEr5twkZFEd-ejofkg6ZPCL3o-0vYXvIVAkI,10652
|
|
31
31
|
wbcommission/models/commission.py,sha256=tkWb7ej2wjIGc_GIj-m02AGEwSEoElQ12LO6nyE1xUg,29574
|
|
32
|
-
wbcommission/models/rebate.py,sha256=
|
|
32
|
+
wbcommission/models/rebate.py,sha256=GtR3G5TqmDdlcefF678Z9D993glddAormoWnYzYzQLg,12795
|
|
33
33
|
wbcommission/models/signals.py,sha256=d-123hxTlbp2A9AwUOE_E90jrDN1e3_r7d8aGq7SmiY,2270
|
|
34
34
|
wbcommission/reports/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
35
|
wbcommission/reports/audit_report.py,sha256=FAcZbXrzRfchYcAgC9B6XyQFY_o4vYnCVbkdoB5jfTg,2177
|
|
@@ -71,6 +71,6 @@ wbcommission/viewsets/menu/rebate.py,sha256=Qzhwr2xG3_j7frxs3eWLZuMoUzT2nCBrWmEY
|
|
|
71
71
|
wbcommission/viewsets/titles/__init__.py,sha256=Sg64aMWm_OD4-P57YoaN6Mqv6NRVU5m7ii_WvaWuTsY,85
|
|
72
72
|
wbcommission/viewsets/titles/commissions.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
73
73
|
wbcommission/viewsets/titles/rebate.py,sha256=VTSHJW3voqCMVhDZ_zVeVmZid_WY3P4X9k11VdJM_GQ,301
|
|
74
|
-
wbcommission-1.44.
|
|
75
|
-
wbcommission-1.44.
|
|
76
|
-
wbcommission-1.44.
|
|
74
|
+
wbcommission-1.44.5.dist-info/METADATA,sha256=nEHIor3rrTsxohNQZdB2_UGJ17IXDP5nITPuLKElqaQ,323
|
|
75
|
+
wbcommission-1.44.5.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
|
|
76
|
+
wbcommission-1.44.5.dist-info/RECORD,,
|
|
File without changes
|