Skip to content

Commit

Permalink
Merge branch 'develop' of [email protected]:Dolibarr/dolibarr.git into d…
Browse files Browse the repository at this point in the history
…evelop
  • Loading branch information
eldy committed Jun 1, 2024
2 parents efffb63 + 39fda91 commit 42d9e75
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions htdocs/accountancy/bookkeeping/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (C) 2013-2017 Florian Henry <[email protected]>
* Copyright (C) 2013-2024 Alexandre Spangaro <[email protected]>
* Copyright (C) 2017 Laurent Destailleur <[email protected]>
* Copyright (C) 2018-2020 Frédéric France <frederic.france@netlogic.fr>
* Copyright (C) 2018-2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024 MDW <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -52,11 +52,11 @@
$accountingjournal = new AccountingJournal($db);

$accountingaccount_number = GETPOST('accountingaccount_number', 'alphanohtml');
$accountingaccount->fetch(null, $accountingaccount_number, true);
$accountingaccount->fetch(0, $accountingaccount_number, true);
$accountingaccount_label = $accountingaccount->label;

$journal_code = GETPOST('code_journal', 'alpha');
$accountingjournal->fetch(null, $journal_code);
$accountingjournal->fetch(0, $journal_code);
$journal_label = $accountingjournal->label;

$subledger_account = GETPOST('subledger_account', 'alphanohtml');
Expand Down
6 changes: 3 additions & 3 deletions htdocs/accountancy/class/accountingjournal.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ public function __construct($db)
/**
* Load an object from database
*
* @param int $rowid Id of record to load
* @param string $journal_code Journal code
* @param int $rowid Id of record to load
* @param string|null $journal_code Journal code
* @return int Return integer <0 if KO, Id of record if OK and found
*/
public function fetch($rowid = null, $journal_code = null)
public function fetch($rowid = 0, $journal_code = null)
{
global $conf;

Expand Down
8 changes: 4 additions & 4 deletions htdocs/accountancy/class/bookkeeping.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -738,10 +738,10 @@ public function createStd(User $user, $notrigger = 0, $mode = '')
/**
* Load object in memory from the database
*
* @param int $id Id object
* @param string $ref Ref
* @param string $mode Mode ('' or 'tmp_')
* @return int Return integer <0 if KO, 0 if not found, >0 if OK
* @param int $id Id object
* @param string|null $ref Ref
* @param string $mode Mode ('' or 'tmp_')
* @return int Return integer <0 if KO, 0 if not found, >0 if OK
*/
public function fetch($id, $ref = null, $mode = '')
{
Expand Down
4 changes: 2 additions & 2 deletions htdocs/product/stock/stockatdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Copyright (C) 2014 Regis Houssin <[email protected]>
* Copyright (C) 2016 Juanjo Menent <[email protected]>
* Copyright (C) 2016 ATM Consulting <[email protected]>
* Copyright (C) 2019-2021 Frédéric France <frederic.france@netlogic.fr>
* Copyright (C) 2019-2024 Frédéric France <frederic.france@free.fr>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -470,7 +470,7 @@
if ($num) {
print '<p>';
print '<a href="stockatdate.php?output=csv&sortfield='.urlencode($sortfield).'&sortorder='.urlencode($sortorder).'&type='.((int) $type).'&mode='.urlencode($mode).
(($productid > 0)?"&productid=".urlencode($productid):'').
(($productid > 0)?"&productid=".((int) $productid):'').
$param_warehouse.
"&search_ref=".dol_escape_htmltag($search_ref).
"&search_nom=".dol_escape_htmltag($search_nom).
Expand Down

0 comments on commit 42d9e75

Please sign in to comment.