Merged changes up to 2.3.16 into unstable
[fa-stable.git] / sales / includes / db / sales_invoice_db.inc
index 2032bcf058d0a55e1f0ab9d97aa81b4e3ba923d5..585b7a0f957f022fc9d0bfe21def7757b33f2408 100644 (file)
@@ -261,6 +261,8 @@ function void_sales_invoice($type, $type_no)
        // clear details after they've been reversed in the sales order
        void_customer_trans_details($type, $type_no);
 
+       void_stock_move($type, $type_no); // in case of credit note with return
+
        void_trans_tax_details($type, $type_no);
 
        void_cust_allocations($type, $type_no);