question

zhaonan avatar image
zhaonan asked zhaonan commented

web order can not reopen

Hi, I use web api to create an order, it show up in "order" app on terminal, but when I click on "Re-Open", it jump to register but didn't actually reopen the order (doesn't have the order items".

For the orders created through "register", I can reopened them without problem.

Any idea what caused this? Is this expected or is this because I missed some field in the web order?

Orders
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

mtt avatar image
mtt answered zhaonan commented

When you create the order via REST, try setting the "state" = "open"

  data = {
    'note': 'test note',
    'state': 'open',
    'total': 10000,
  }

If that doesn't work, try the above and adding a line item.

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

zhaonan avatar image zhaonan commented ·

Thank you for your reply, actually after I tried several times, I found the root reason is I didn't provide an "order type", so it will jump to the register to let user select an "order type" then continue editing order.

0 Likes 0 ·

Welcome to the
Clover Developer Community