Skip to content

Comments

GIFF-Accountancy-2025 - Automatic numbering of accounting entries#33551

Merged
eldy merged 19 commits intoDolibarr:developfrom
jyhere:jyhere/giff-accountancy-2025-issue-32703
Mar 31, 2025
Merged

GIFF-Accountancy-2025 - Automatic numbering of accounting entries#33551
eldy merged 19 commits intoDolibarr:developfrom
jyhere:jyhere/giff-accountancy-2025-issue-32703

Conversation

@jyhere
Copy link
Contributor

@jyhere jyhere commented Mar 20, 2025

More informations at :
#32703
(see comments for details)

$fiscalStartMonth = getDolGlobalInt('SOCIETE_FISCAL_MONTH_START') ?: 1;
$docYear = dol_print_date($object->doc_date, '%Y');
$docMonth = dol_print_date($object->doc_date, '%m');
$docFiscalYear = $docMonth < $fiscalStartMonth ? $docYear - 1 : $docYear;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use parenthesis here. Result is suspicious without.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On line 153, it's better with : $fiscalStartMonth = getDolGlobalInt('SOCIETE_FISCAL_MONTH_START', 1);

@eldy eldy added the PR to fix - Conflict or CI error to solve The PHP unit tests return something wrong. Check details to know what to fix or solve the conflicts. label Mar 20, 2025
@jyhere jyhere removed the PR to fix - Conflict or CI error to solve The PHP unit tests return something wrong. Check details to know what to fix or solve the conflicts. label Mar 21, 2025
@jyhere jyhere requested review from aspangaro and eldy March 21, 2025 11:28
Copy link
Member

@aspangaro aspangaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems ok. Some tests will be realized when this PR will be integrated

@eldy eldy merged commit e35c59a into Dolibarr:develop Mar 31, 2025
7 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.

3 participants