Incorrect Journal Balance (sales invoice) when many decimals in tax and price.
[fa-stable.git] / purchasing / po_receive_items.php
index fcd7348b4e9b2fd72f3fa5153db533044c48892d..72affe2728153e28e274f5e1a463112a3ea22b8c 100644 (file)
@@ -273,7 +273,7 @@ if (isset($_GET['PONumber']) && $_GET['PONumber'] > 0 && !isset($_POST['Update']
 {
        create_new_po(ST_PURCHORDER, $_GET['PONumber']);
        $_SESSION['PO']->trans_type = ST_SUPPRECEIVE;
-       $_SESSION['PO']->reference = $Refs->get_next(ST_SUPPRECEIVE, 
+       $_SESSION['PO']->reference = $Refs->get_next(ST_SUPPRECEIVE, null,
                array('date' => Today(), 'supplier' => $_SESSION['PO']->supplier_id));
        copy_from_cart();
 }