Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport 17.0 PR #31623 : Suspend facture rec when nb gen max is rea… #529

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

atm-irvine
Copy link

No description provided.

@@ -2,3 +2,4 @@
- Backport 21.0 PR #31463 : Tab to see generated invoices on recurring
supplier or customer invoice cards - *2024-10-23*
- Backport 17.0 PR #31445 : Follow ExtraFields between model invoice and classic invoice - *2024-10-18*
- Backport 17.0 PR #31623 : Suspend facture rec when nb gen max is reached - *2024-10-29*

Choose a reason for hiding this comment

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

Faut ajouter la ligne au dessus et pas en dessous, comme un changelog classique

Comment on lines 1908 to 1916

if (getDolGlobalInt('MAIN_SUSPEND_FACTURE_REC_ON_MAX_GEN_REACHED') && $this->isMaxNbGenReached()) {
$resSuspend = $this->setValueFrom('suspended', 1);

if ($resSuspend <= 0) {
dol_syslog(__METHOD__ . '::setValueFrom Error : ' . $this->error, LOG_ERR);
return -1;
}
}

Choose a reason for hiding this comment

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

Peux-tu l'ajouter dans une guirlande ?

@atm-lena atm-lena merged commit cec08a9 into 17.0_koesio Oct 30, 2024
0 of 2 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.

2 participants