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

FIX : Add new hidden conf "DISABLE_QTY_OVERWRITTEN" #28523

Merged

Conversation

atm-adrien
Copy link
Contributor

FIX : Add new hidden conf "DISABLE_QTY_OVERWRITTEN"

Adding a new hidden conf "DISABLE_QTY_OVERWRITTEN" to disable qty overwrite on iventories

// For inventory not yet close, we overwrite with the real value in stock now
if ($object->status == $object::STATUS_DRAFT || $object->status == $object::STATUS_VALIDATED) {
if (($object->status == $object::STATUS_DRAFT || $object->status == $object::STATUS_VALIDATED) && empty($conf->global->DISABLE_QTY_OVERWRITE)) {
Copy link
Member

Choose a reason for hiding this comment

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

Can you replace with
!getDolGlobalString('DISABLE_QTY_OVERWRITE');

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's done :)

@eldy eldy added the PR to fix - See feedback in comments PR needs to be fixed to be integrated (some comments should describes the fix to do) label Feb 29, 2024
@eldy eldy merged commit 700c0e3 into Dolibarr:18.0 Feb 29, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR to fix - See feedback in comments PR needs to be fixed to be integrated (some comments should describes the fix to do)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants