Skip to content

Commit

Permalink
clearing is not anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwul committed May 14, 2024
1 parent 54b8653 commit c700de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_ch_pain_direct_debit/models/move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def _prepare_payment_line_vals(self, payment_order):
if payment_order.payment_method_id.pain_version == "pain.008.001.02.ch.03":
vals["communication"] = self.move_id.payment_reference.replace(" ", "")
if payment_order.payment_type == "inbound":
if payment_order.company_partner_bank_id.bank_id.clearing == "9000":
if payment_order.company_partner_bank_id.acc_number.replace(" ", "")[5:9] == "9000":
# Force correct values for Postfinance
vals.update(
{"local_instrument": "DDCOR1", "communication_type": "normal"}
Expand Down

0 comments on commit c700de9

Please sign in to comment.