Fixed Logical Bug in Customer Balances Report.
[fa-stable.git] / manufacturing / work_order_add_finished.php
index cec7ce78cdb067ecfa034f732a1b216b99af242e..757f304ce4128df7f2b5befe80179412ad462adf 100644 (file)
@@ -182,7 +182,7 @@ if (!isset($_POST['quantity']) || $_POST['quantity'] == '')
 start_table(TABLESTYLE2);
 br();
 
-ref_row(_("Reference:"), 'ref', '', $Refs->get_next(29, null, get_post('date_')), false, ST_MANUISSUE);
+ref_row(_("Reference:"), 'ref', '', $Refs->get_next(ST_MANURECEIVE, null, get_post('date_')), false, ST_MANURECEIVE);
 date_row(_("Date:"), 'date_');
 
 if (!isset($_POST['ProductionType']))