Skip to content

fix: remove invalid invoice type check from supplier order stats#38979

Merged
eldy merged 1 commit into
Dolibarr:developfrom
nathanpixodeo:fix/product-stock-supplier-order-reference
Jun 25, 2026
Merged

fix: remove invalid invoice type check from supplier order stats#38979
eldy merged 1 commit into
Dolibarr:developfrom
nathanpixodeo:fix/product-stock-supplier-order-reference

Conversation

@nathanpixodeo

Copy link
Copy Markdown
Contributor

Summary

  • remove an invalid invoice credit-note check from the supplier order batch statistics page
  • avoid referencing Facture::TYPE_CREDIT_NOTE from a page that does not load invoice classes and whose query does not select an invoice type

Fix #37968

Verification

  • php -l htdocs/product/stock/stats/commande_fournisseur.php
  • git diff --check
  • confirmed commande_fournisseur.php no longer references Facture::TYPE_CREDIT_NOTE or $objp->type

@eldy eldy merged commit 4100121 into Dolibarr:develop Jun 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Error when showing Order from supplier for a serial number in stock

2 participants