Shopify Order Print Custom Code -- 2

Job ID: 31051465

Budget: €8 – €30 EUR

In the order Invoice NUMBER - Invoice Number must show :

a. For the paid orders : F-{{order.number}}

b. For the canceled orders Invoice Print number must be R-# (where # is the number that goes from 1 to infinite and consecutive for the future R invoices ) it start with the 1st canceled order (example R-00001) and takes all future canceled orders as R-00002 , R-00003 and so on.

c) For canceled orders must show : R# is related to F-{{order.number}} (Where F-{{order.number}} is the inicial order number of the order.

2. For canceled orders Invoice Must Show a negative value equal at the order value.

Exemple : R-00001 is a canceled order related to F-1201 Order and
R-00002 is a canceled order could be related to F-1333 Order

Create this variable number from 1-infinite but only for the canceled orders and must be consecutive as orders get canceled.

For more informations please don't hesitate to ask.