Changeset 17259


Ignore:
Timestamp:
9 Jan 2023, 09:47:22 (21 months ago)
Author:
Henrik Bettermann
Message:

Save payment date.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/paypal/applicantsbrowser.py

    r17252 r17259  
    124124        if response.get("status", None) == "COMPLETED":
    125125            self.context.p_state = u'paid'
     126            if self.context.payment_date is None:
     127                self.context.payment_date = datetime.utcnow()
    126128        if not response:
    127129            self.flash(_('Paypal Order ID not found.'), type='danger')
Note: See TracChangeset for help on using the changeset viewer.