Openfoodnetwork: Order Adjustments added manually (Edit Order) not reflecting on customer total

Created on 15 Mar 2021  路  1Comment  路  Source: openfoodfoundation/openfoodnetwork

Description



Hub wishes to issue a partial refund/increase for a product (ie. not refund/double the full cost of that product but just part of it).
Hub manager visits Edit Order -> Adjustments (https://openfoodnetwork.org.uk/admin/orders/Rxxxxxxxx/adjustments) and creates a negative/positive adjustment.
After adjustment has been created the customer's total balance should be updated accordingly. This is not the case.
Result:
Managers can only edit their orders by adding or removing full products: non ideal!!!
Means they are unable to issue/record refunds or extra monies collected.

Expected Behavior


Add an adjustment to an order https://openfoodnetwork.org.uk/admin/orders/Rxxxxxxxx/adjustments.
Click 'Continue'
Order balance updated accordingly.

Click on 'edit' icon next to order adjustment and can edit text and value of the adjustment.

Actual Behaviour


Add an adjustment to an order https://openfoodnetwork.org.uk/admin/orders/Rxxxxxxxx/adjustments.
Click 'Continue'
Order balance remains unchanged.

Click on 'edit' icon next to order adjustment and adjustment is copied. No access to Edit.

Steps to Reproduce




  1. Create an order and pay for it.
  2. Edit order
  3. Create a negative adjustment to the order on page https://openfoodnetwork.org.uk/admin/orders/Rxxxxxxxx/adjustments
  4. Observe balance remains unchanged
  5. Create a positive adjustment to the order on the same page
  6. Observe balance remains unchanged
  7. Click on 'Edit' adjustment icon
  8. observe this copies the adjustment but no access to edit

Animated Gif/Screenshot


Workaround

Severity


S2

Your Environment

  • Version used:
  • Browser name and version:
  • Operating System and version (desktop or mobile):

Possible Fix

bug-s2

Most helpful comment

Error with Adjustment delete function:

Add an adjustment via Edit Order -> adjustments
click continue
click on the rubbish bin to remove the adjustment.

Order is not updated. ping @Matt-Yorkley (you have probably spotted this but in case you hadn't)

>All comments

Error with Adjustment delete function:

Add an adjustment via Edit Order -> adjustments
click continue
click on the rubbish bin to remove the adjustment.

Order is not updated. ping @Matt-Yorkley (you have probably spotted this but in case you hadn't)

Was this page helpful?
0 / 5 - 0 ratings