Projet

Général

Profil

0003-lingo-simplify-extraction-of-subject-for-single-paym.patch

Benjamin Dauvergne, 23 octobre 2020 17:03

Télécharger (1,08 ko)

Voir les différences:

Subject: [PATCH 3/7] lingo: simplify extraction of subject for single payment
 (#47506)

 combo/apps/lingo/views.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
combo/apps/lingo/views.py
414 414
            if capture_date:
415 415
                kwargs['capture_date'] = capture_date
416 416
        if regie.can_pay_only_one_basket_item:
417
            if items and len(items) == 1:
418
                kwargs['subject'] = items[0].subject
419
            if remote_items and len(remote_items) == 1:
420
                kwargs['subject'] = remote_items[0].subject
417
            item = (items or remote_items)[0]
418
            kwargs['subject'] = item.subject
421 419
        if regie.transaction_options:
422 420
            kwargs.update(regie.transaction_options)
423 421
        try:
424
-