Modify invoice using Workflow duplicates Line Items on Invoice

Try chnaging the following code in ‘modules/AOS_Products_Quotes/AOS_Products_Quotes.php’ at about line 56 :-


$product_quote->parent_type = $parent->object_name;
$product_quote->save();
}

to


$product_quote->parent_type = $parent->object_name;
$product_quote->save();
$_POST[$key.'id'][$i] = $product_quote->id;
}