Skip to content

Commit

Permalink
Revert "Reverse CSO specific changes for service_fees. (#1015)"
Browse files Browse the repository at this point in the history
This reverts commit 368bffb.
  • Loading branch information
seeker25 authored Nov 22, 2022
1 parent 8701058 commit 3d33bf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pay-api/src/pay_api/services/fee_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ def find_by_corp_type_and_filing_type( # pylint: disable=too-many-arguments
# Set transaction fees
fee_schedule.service_fees = FeeSchedule.calculate_service_fees(fee_schedule_dao, account_fee)

# Special case for CSO partner type which is different from normal flow
if fee_schedule.corp_type_code == 'CSO' and fee_schedule.quantity:
fee_schedule.service_fees = fee_schedule.service_fees * fee_schedule.quantity

if kwargs.get('is_priority') and fee_schedule_dao.priority_fee and apply_filing_fees:
fee_schedule.priority_fee = fee_schedule_dao.priority_fee.amount
if kwargs.get('is_future_effective') and fee_schedule_dao.future_effective_fee and apply_filing_fees:
Expand Down

0 comments on commit 3d33bf1

Please sign in to comment.