Skip to content

Commit

Permalink
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into d…
Browse files Browse the repository at this point in the history
…evelop
  • Loading branch information
eldy committed Dec 3, 2024
2 parents 076aae4 + 6b52c06 commit 37c506d
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 59 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/pr-18.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install GitHub CLI
run: |
Expand All @@ -36,7 +36,10 @@ jobs:
#REVIEWER: "eldy,lvessiller-opendsi,rycks" # Remplacez par le nom d'utilisateur GitHub du reviewer
REVIEWER: "rycks" # Remplacez par le nom d'utilisateur GitHub du reviewer
run: |
# shellcheck disable=2086
echo "GH_TOKEN=$GH_TOKEN"
# shellcheck disable=2086
pr_number=$(jq --raw-output .number < $GITHUB_EVENT_PATH)
# shellcheck disable=2086
gh pr edit $pr_number --add-reviewer "$REVIEWER"
continue-on-error: true
36 changes: 0 additions & 36 deletions build/phpstan/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -20946,42 +20946,6 @@ parameters:
count: 1
path: ../../htdocs/fourn/commande/document.php

-
message: '#^Variable \$badgeStatus0 might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../htdocs/fourn/commande/index.php

-
message: '#^Variable \$badgeStatus1 might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../htdocs/fourn/commande/index.php

-
message: '#^Variable \$badgeStatus4 might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../htdocs/fourn/commande/index.php

-
message: '#^Variable \$badgeStatus6 might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../htdocs/fourn/commande/index.php

-
message: '#^Variable \$badgeStatus9 might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../htdocs/fourn/commande/index.php

-
message: '#^Variable \$socid might not be defined\.$#'
identifier: variable.undefined
count: 4
path: ../../htdocs/fourn/commande/index.php

-
message: '#^If condition is always false\.$#'
identifier: if.alwaysFalse
Expand Down
4 changes: 2 additions & 2 deletions htdocs/compta/facture/class/api_invoices.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1470,7 +1470,7 @@ public function getPayments($id)
* Add payment line to a specific invoice with the remain to pay as amount.
*
* @param int $id Id of invoice
* @param string $datepaye {@from body} Payment date {@type timestamp}
* @param string $datepaye {@from body} Payment date
* @param int $paymentid {@from body} Payment mode Id {@min 1}
* @param string $closepaidinvoices {@from body} Close paid invoices {@choice yes,no}
* @param int $accountid {@from body} Account Id {@min 1}
Expand Down Expand Up @@ -1591,7 +1591,7 @@ public function addPayment($id, $datepaye, $paymentid, $closepaidinvoices, $acco
* Example of value for parameter arrayofamounts: {"1": {"amount": "99.99", "multicurrency_amount": ""}, "2": {"amount": "", "multicurrency_amount": "10"}}
*
* @param array $arrayofamounts {@from body} Array with id of invoices with amount to pay for each invoice
* @param string $datepaye {@from body} Payment date {@type timestamp}
* @param string $datepaye {@from body} Payment date
* @param int $paymentid {@from body} Payment mode Id {@min 1}
* @param string $closepaidinvoices {@from body} Close paid invoices {@choice yes,no}
* @param int $accountid {@from body} Account Id {@min 1}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
* Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
* Copyright (C) 2011-2016 Philippe Grand <philippe.grand@atoo-net.com>
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 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 All @@ -25,7 +26,7 @@

/**
* \file htdocs/core/modules/supplier_order/modules_commandefournisseur.php
* \ingroup order fournisseur
* \ingroup supplier order
* \brief File that contains parent class for supplier orders models
* and parent class for supplier orders numbering models
*/
Expand Down
13 changes: 4 additions & 9 deletions htdocs/expensereport/class/expensereport.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,6 @@ public function createFromClone(User $user, $fk_user_author)
*/
public function update($user, $notrigger = 0, $userofexpensereport = null)
{
global $langs;

$error = 0;
$this->db->begin();

Expand All @@ -644,24 +642,21 @@ public function update($user, $notrigger = 0, $userofexpensereport = null)
dol_syslog(get_class($this)."::update", LOG_DEBUG);
$result = $this->db->query($sql);
if ($result) {
if (!$error) {
$result = $this->insertExtraFields();
if ($result < 0) {
$error++;
}
$result = $this->insertExtraFields();
if ($result < 0) {
$error++;
}

if (!$error && !$notrigger) {
// Call trigger
$result = $this->call_trigger('EXPENSE_REPORT_MODIFY', $user);

if ($result < 0) {
$error++;
}
// End call triggers
}

if (empty($error)) {
if (!$error) {
$this->db->commit();
return 1;
} else {
Expand Down
2 changes: 1 addition & 1 deletion htdocs/fourn/commande/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

/**
* \file htdocs/fourn/commande/card.php
* \ingroup supplier, order
* \ingroup supplier order
* \brief Card supplier order
*/

Expand Down
2 changes: 1 addition & 1 deletion htdocs/fourn/commande/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

/**
* \file htdocs/fourn/commande/contact.php
* \ingroup order
* \ingroup supplier order
* \brief Onglet de gestion des contacts de commande
*/

Expand Down
2 changes: 1 addition & 1 deletion htdocs/fourn/commande/dispatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

/**
* \file htdocs/fourn/commande/dispatch.php
* \ingroup commande
* \ingroup supplier order
* \brief Page to dispatch receiving
*/

Expand Down
2 changes: 1 addition & 1 deletion htdocs/fourn/commande/document.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

/**
* \file htdocs/fourn/commande/document.php
* \ingroup supplier
* \ingroup supplier order
* \brief Management page of attached documents to a supplier order
*/

Expand Down
11 changes: 9 additions & 2 deletions htdocs/fourn/commande/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

/**
* \file htdocs/fourn/commande/index.php
* \ingroup order fournisseur
* \ingroup supplier order
* \brief Home page of supplier's orders area
*/

Expand Down Expand Up @@ -52,6 +52,7 @@

// Security check
$orderid = GETPOST('orderid');
$socid = GETPOSTINT('socid');
if ($user->socid) {
$socid = $user->socid;
}
Expand Down Expand Up @@ -116,7 +117,13 @@
$db->free($resql);

include DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/theme_vars.inc.php';

/**
* @var string $badgeStatus0
* @var string $badgeStatus1
* @var string $badgeStatus4
* @var string $badgeStatus6
* @var string $badgeStatus9
*/
print '<div class="div-table-responsive-no-min">';
print '<table class="noborder nohover centpercent">';
print '<tr class="liste_titre"><th colspan="2">'.$langs->trans("Statistics").' - '.$langs->trans("SuppliersOrders").'</th></tr>';
Expand Down
2 changes: 1 addition & 1 deletion htdocs/fourn/commande/info.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

/**
* \file htdocs/fourn/commande/info.php
* \ingroup order
* \ingroup supplier order
* \brief Info page for Purchase Order / Supplier Order
*/

Expand Down
2 changes: 1 addition & 1 deletion htdocs/fourn/commande/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

/**
* \file htdocs/fourn/commande/list.php
* \ingroup fournisseur
* \ingroup supplier order
* \brief List of purchase orders
*/

Expand Down
2 changes: 1 addition & 1 deletion htdocs/fourn/commande/note.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

/**
* \file htdocs/fourn/commande/note.php
* \ingroup order
* \ingroup supplier order
* \brief page for notes on supplier orders
*/

Expand Down

0 comments on commit 37c506d

Please sign in to comment.