Hi,
You can abort the "discount code" copy in the class order (administrator/components/com_hikamarket/classes/order.php) by adding the "order_discount_code" into the "forbidden" fields.
foreach(get_object_vars($order->old) as $key => $value) {
if(in_array($key, array('order_id', 'order_number', 'order_invoice_id', 'order_invoice_number', 'order_discount_code'))) // "order_discount_code" Added in this line.
continue;
We are currently working on a real management of orders in hikamarket sub orders for HikaMarket 1.1.0.
But with HikaShop 2.1.0, this modification would not more required. The "discount use" would not be modified for HikaMarket sub sales.
Regards,