Projet

Général

Profil

« Précédent | Suivant » 

Révision c6ba8333

Ajouté par Thomas Noël il y a environ 12 ans

add workflow item "cancel payment" (fix #1255)

+ add_part(invoice) in formdata.evolution

Voir les différences:

extra/modules/payments_ui.ptl
39 39
        '<div class="details">'
40 40
        htmltext(invoice.details)
41 41
        '</div>'
42
    if invoice.canceled:
43
        '<p class="canceled">'
44
        '%s' % _('canceled on %s') % misc.localstrftime(invoice.canceled_date)
45
        if invoice.canceled_reason:
46
            ' (%s)' % invoice.canceled_reason
47
        '</p>'
42 48
    if invoice.paid:
43 49
        '<p class="paid">%s</p>' % _('paid on %s') % misc.localstrftime(invoice.paid_date)
44 50
    '</div>'
......
81 87
            except KeyError:
82 88
                raise errors.TraversalError()
83 89
            invoice_as_html(invoice)
84
            if not invoice.paid:
90
            if not (invoice.paid or invoice.canceled):
85 91
                regies_id.add(invoice.regie_id)
86 92

  
87 93
        if len(regies_id) == 1:

Formats disponibles : Unified diff