This PR will create unique barcode for each labels if the user input number of labels more than 1.
This PR also change some variable in the create label ( /v1/shipment ) request.
How to test the changes in this Pull Request:
Create a new order.
Create a PostNL label from Order edit page in admin.
Print the label. Each label will have unique barcode.
Check the log from WooCommerce >> Status >> Log. The request will show Barcode for each addresses array. And MainBarcode will always use the first barcode.
Example :
Changes proposed in this Pull Request:
This PR will create unique barcode for each labels if the user input number of labels more than 1. This PR also change some variable in the create label (
/v1/shipment
) request.How to test the changes in this Pull Request:
Barcode
for each addresses array. AndMainBarcode
will always use the first barcode. Example :Changelog entry