Openfoodnetwork: [Release Blocker] Payment and shipping state displayed as NONE in the UI (after cash payment) -> causing Payment reports to break

Created on 27 Apr 2021  路  3Comments  路  Source: openfoodfoundation/openfoodnetwork

Description


It all looks quite similar to the previous issues #7021 and it's root cause #7003.

When placing backoffice orders, adding an uncaptured cash payment leaves the order with Payment and shipping state displaying as NONE, which then breaks the payments report onItemized Totals and Payment totals.

Expected Behavior

Orders should have the correct Payment and shipping states; relevant reports should render.

Actual Behaviour

Orders with uncaptured cash payments display Payment and shipping state displayed as NONE in the UI and break the payments report.

Steps to Reproduce




Log in as admin:

  1. Create an order in the backoffice
  2. On payment details: add a cash payment (don't capture it)
  3. After clicking Update, notice the Payment and shipping state of the order changing to NONE
  4. Visit /admin/reports/payments and select one of the report types Itemized Totals or Payment totals
  5. Generating the report should trigger the snail

Animated Gif/Screenshot


After an un-captured cash payment (backoffice order):
image.png

After reaching this state, /admin/reports/payments and selecting: Itemized Totals and Payment totals:
image.png

Workaround

Capturing the payment? One would need to be aware of this...

Severity

s2 - Blocking the release, as discussed here.

Your Environment

  • Version used: v3.6.8
  • Browser name and version: Firefox
  • Operating System and version (desktop or mobile): Desktop Ubuntu 20.04

Possible Fix

bug-s2

All 3 comments

Just to clarify; it's only backoffice orders that are affected?

Yes, placing cash orders through the shopfront displays the order states as before, even before capturing the payment. I found no scenario in which this is affecting shopfront orders...

Capturing the payment? One would need to be aware of this...

I think I've captured "like a machine" during my release test, and haven't check the status, sorry team :(

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sauloperez picture sauloperez  路  3Comments

Matt-Yorkley picture Matt-Yorkley  路  3Comments

kirstenalarsen picture kirstenalarsen  路  3Comments

shen-sat picture shen-sat  路  3Comments

andrewpbrett picture andrewpbrett  路  3Comments