Skip to content

FIX use Dolibarr invoice creation date column - #35

Open
braito4 wants to merge 1 commit into
garacil:mainfrom
braito4:fix/invoice-creation-date-column
Open

FIX use Dolibarr invoice creation date column#35
braito4 wants to merge 1 commit into
garacil:mainfrom
braito4:fix/invoice-creation-date-column

Conversation

@braito4

@braito4 braito4 commented Jul 27, 2026

Copy link
Copy Markdown

Summary

views/query.facture.php queries a non-existent llx_facture.date_creation column when looking up an invoice by reference. Dolibarr stores the invoice creation timestamp in datec.

This selects datec AS date_creation, preserving the property name consumed by the existing code.

Validation

  • reproduced on MySQL 8.0.44: Unknown column 'date_creation' in 'field list'
  • validated the corrected query with MySQL 8 EXPLAIN under ONLY_FULL_GROUP_BY and STRICT_TRANS_TABLES
  • PHP syntax checked with PHP 8.3, 8.4 and 8.5
  • both bundled test suites pass on PHP 8.3, 8.4 and 8.5

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.

1 participant