PHP 7.X produces A non-numeric value encountered in \includes\date_functions.inc...
[fa-stable.git] / sales / credit_note_entry.php
index 8181f7a34c24c3e1154af1642676bb1f622109c1..2a3077b4c5787b5e6c9680d26e92b50fae916284 100644 (file)
@@ -83,9 +83,9 @@ if (isset($_GET['AddedID'])) {
 //--------------------------------------------------------------------------------
 
 function line_start_focus() {
-  global $Ajax;
-  $Ajax->activate('items_table');
-  set_focus('_stock_id_edit');
+       global $Ajax;
+       $Ajax->activate('items_table');
+       set_focus('_stock_id_edit');
 }
 
 //-----------------------------------------------------------------------------
@@ -143,7 +143,7 @@ function can_process()
        if ($_SESSION['Items']->count_items() == 0 && (!check_num('ChargeFreightCost',0)))
                return false;
        if($_SESSION['Items']->trans_no == 0) {
-           if (!$Refs->is_valid($_POST['ref'])) {
+           if (!$Refs->is_valid($_POST['ref'], ST_CUSTCREDIT)) {
                        display_error( _("You must enter a reference."));
                        set_focus('ref');
                        $input_error = 1;