Changeset 16880


Ignore:
Timestamp:
15 Mar 2022, 08:30:25 (3 years ago)
Author:
Henrik Bettermann
Message:

Don't show Interswitch button if amount_auth is 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser.py

    r16484 r16880  
    6969        if self.context.p_state != 'unpaid':
    7070            return ''
     71        if self.context.amount_auth == 0:
     72            return ''
    7173        return self.view.url(self.view.context, self.target)
    7274
     
    8183            return ''
    8284        if self.context.p_state != 'unpaid':
     85            return ''
     86        if self.context.amount_auth == 0:
    8387            return ''
    8488        return self.view.url(self.view.context, self.target)
Note: See TracChangeset for help on using the changeset viewer.