Hi,
Thanks for the report.
HikaSerial 1.9.0 has the possibility to assign "manually" some serials to an order thanks to the data stored in the colum "order_serial_params" of the table "hikashop order".
The column "order_serial_params" stored a json encoded array using this kind of organization
'order' =>
[pack_id] => ( [qty var], [qty fixed] )
'product' =>
[product_id] =>
[pack_id] => ( [qtyvar], [qty fixed] )
'order_product' =>
[order_product_id] =>
[pack_id] => ( [qtyvar], [qty fixed] )
'serial' =>
[serial_id]
So if you have a serial (with the ID 50) that you want to assign to the order, you have to store in the column
Thanks to that, when you will click on "refresh association", HikaSerial will know that the serial is link with the order and it won't remove the association.
The "refresh association" is there to check the serials assigned to the order, depending the current products of the order and the data stored in the "order_serial_params" column.
The button has been made for the case when the order has changed (you added a product, changed a quantity, etc) and you want HikaSerial to check that the serials are good.
In your case, because you just stored the information in the serial, by asking a refresh, HikaSerial won't find any data saying that the order require a serial and it will remove all associations.
I hope my explanations are clear enough.
Don't hesitate to ask if you want more details.
Regards,