Order edit screen#

After placing an order with a coupon, a metabox of the Flexible Coupons PDF will be added to the order edition page. You can use such a metabox to:
- Generate a coupon,
- Download a coupon,
- View a coupon,
- Go to the coupon edit page.

The Generate coupon button is available only when no generated coupon is found for the order item. After generation, the metabox displays the coupon code and the View and Download buttons. Click the coupon code to open its edit screen.
This button creates a new coupon for an order item that does not have one. It does not regenerate or replace an existing coupon.