wbcommission 1.54.17__py2.py3-none-any.whl → 1.55.4__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.

@@ -182,7 +182,9 @@ class AccountRebateManager:
182
182
  and date, a KeyError will be caught, and the function will return Decimal(0).
183
183
  """
184
184
  with suppress(InstrumentPrice.DoesNotExist, KeyError):
185
- product_shares = max(product.prices.get(date=compute_date, calculated=True).outstanding_shares, Decimal(0))
185
+ product_shares = max(
186
+ product.prices.get(date=compute_date, calculated=True).outstanding_shares or Decimal(0), Decimal(0)
187
+ )
186
188
  account_shares = max(
187
189
  Decimal(self.df_shares.loc[(terminal_account.id, product.id, compute_date)]), Decimal(0)
188
190
  )
@@ -1,6 +1,6 @@
1
- from rest_framework.permissions import BasePermission
1
+ from rest_framework.permissions import IsAuthenticated
2
2
 
3
3
 
4
- class IsCommissionAdmin(BasePermission):
4
+ class IsCommissionAdmin(IsAuthenticated):
5
5
  def has_permission(self, request, view):
6
6
  return request.user.has_perm("wbcommission.administrate_commission")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wbcommission
3
- Version: 1.54.17
3
+ Version: 1.55.4
4
4
  Summary: A workbench module for managing human resources.
5
5
  Author-email: Christopher Wittlinger <c.wittlinger@stainly.com>
6
6
  Requires-Dist: reportlab==3.*
@@ -8,4 +8,7 @@ Requires-Dist: wbcompliance
8
8
  Requires-Dist: wbcore
9
9
  Requires-Dist: wbcrm
10
10
  Requires-Dist: wbfdm
11
+ Requires-Dist: wbmailing
11
12
  Requires-Dist: wbnews
13
+ Requires-Dist: wbportfolio
14
+ Requires-Dist: wbreport
@@ -1,7 +1,7 @@
1
1
  wbcommission/__init__.py,sha256=J-j-u0itpEFT6irdmWmixQqYMadNl1X91TxUmoiLHMI,22
2
2
  wbcommission/apps.py,sha256=3q9lAeEBfv83rCzud3P0-VZgbWUfG0S61G5h3zFk1Ds,97
3
3
  wbcommission/dynamic_preferences_registry.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- wbcommission/permissions.py,sha256=Qjmterwqsm1st8YZNfj_7-Gl6WnvVvkE6SCgYynMhSU,219
4
+ wbcommission/permissions.py,sha256=Iz_q9QHWCXTJVisRBab4R9oXNX8ca3xVT12vdyYRMXQ,221
5
5
  wbcommission/urls.py,sha256=L4TKTeSxsHfoc091TVX2B2-w7kgNolaZ-xlgm5O51lQ,1102
6
6
  wbcommission/admin/__init__.py,sha256=xEYZYO9IUSNExPsY7jsxFS-Jjkl92tXnb7eSfwGpkZg,151
7
7
  wbcommission/admin/accounts.py,sha256=M43ovnEH9XYBmXLzA10LmbKkn4uq62HYNIauaoThno4,816
@@ -33,7 +33,7 @@ wbcommission/migrations/0007_remove_commission_unique_crm_recipient_account_and_
33
33
  wbcommission/migrations/0008_alter_commission_options_alter_commission_order.py,sha256=iNwNF1QcmVoj5Eu2yPJEHfI7bIA3e4WZMILjCfBVEx0,830
34
34
  wbcommission/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
35
  wbcommission/models/__init__.py,sha256=BJyah0_zKssfU2ohvu4qcQSHAT1ovcZ_go2-sLEagyw,183
36
- wbcommission/models/account_service.py,sha256=gvnxv_TUfeoBjOKeUBu1MectwpsA54syIkQrhYFzQyA,10616
36
+ wbcommission/models/account_service.py,sha256=7tUxB8DmqGBPxfu0wCHApSKj6AkmWnHc9JB1rUxe3kk,10660
37
37
  wbcommission/models/commission.py,sha256=5Hp2EbmPo9H7L2lM7K8eVOhmZPmEYC6avOQSR_y3U18,29899
38
38
  wbcommission/models/rebate.py,sha256=GtR3G5TqmDdlcefF678Z9D993glddAormoWnYzYzQLg,12795
39
39
  wbcommission/models/signals.py,sha256=RplhwccwDlEYGfw-lpcXpHPxfmeyKohdz-rKGll-NtU,2240
@@ -77,6 +77,6 @@ wbcommission/viewsets/menu/rebate.py,sha256=Qzhwr2xG3_j7frxs3eWLZuMoUzT2nCBrWmEY
77
77
  wbcommission/viewsets/titles/__init__.py,sha256=Sg64aMWm_OD4-P57YoaN6Mqv6NRVU5m7ii_WvaWuTsY,85
78
78
  wbcommission/viewsets/titles/commissions.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
79
79
  wbcommission/viewsets/titles/rebate.py,sha256=VTSHJW3voqCMVhDZ_zVeVmZid_WY3P4X9k11VdJM_GQ,301
80
- wbcommission-1.54.17.dist-info/METADATA,sha256=CgZWJMxEBAfnmzI7nR4PHNh9W40wcH2k2P7rMVGD0D0,324
81
- wbcommission-1.54.17.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
82
- wbcommission-1.54.17.dist-info/RECORD,,
80
+ wbcommission-1.55.4.dist-info/METADATA,sha256=saym9YHLs6JGsK_xxOvGUiDtwzsmQMuIhHnytf58bRY,399
81
+ wbcommission-1.55.4.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
82
+ wbcommission-1.55.4.dist-info/RECORD,,