Hi,
You can edit the plugin attachinvoice (plugins/hikashop/attachinvoice/attachinvoice.php) and replace
if(empty($data->mail_name) || empty($data->data->order_status) || !in_array($data->mail_name,array('order_status_notification','order_creation_notification')) || !in_array($data->data->order_status,$confirmed)) return;
By
if(empty($data->mail_name) || empty($data->data->order_status) || !in_array($data->mail_name,array('order_status_notification','order_creation_notification')) || !in_array($data->data->order_status,$confirmed))
return;
if(!empty($data->data->order_type) && $data->data->order_type != 'sale')
return;
So it will only attach the PDF invoice to customer "sale" and not to the vendor "subsale".
Regards,