Changed voiding of Direct Invoice to automatically void 'auto' delivery and set SO...
[fa-stable.git] / sales / includes / db / sales_credit_db.inc
index 995a060983d80187fa3f86229d323a5d1d555f15..efb743cd073824bdb48c606149f5d74230ef51e6 100644 (file)
@@ -115,7 +115,7 @@ function write_credit_note($credit_note, $write_off_acc)
        foreach ($credit_note->line_items as $credit_line) {
 
                if ($credit_invoice && $credit_line->qty_dispatched!=$credit_line->qty_old ) {
-                       update_parent_line(11, $credit_line->src_id,($credit_line->qty_dispatched
+                       update_parent_line(ST_CUSTCREDIT, $credit_line->src_id,($credit_line->qty_dispatched
                                        -$credit_line->qty_old));
                }