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

IDEMPIERE-5893 Completed invoices are being updated in MOrder.afterSave #2075

Merged
merged 3 commits into from Oct 27, 2023

Conversation

CarlosRuiz-globalqss
Copy link
Collaborator

@CarlosRuiz-globalqss CarlosRuiz-globalqss commented Oct 25, 2023

https://idempiere.atlassian.net/browse/IDEMPIERE-5893

Pull Request Checklist

  • My code follows the code guidelines of this project
  • My code follows the best practices of this project
  • I have performed a self-review of my own code
  • My code is easy to understand and review.
  • I have checked my code and corrected any misspellings
  • In hard-to-understand areas, I have commented my code.
  • My changes generate no new warnings

Tests

  • I have tested the direct scenario that my code is solving
  • I checked all collaterals that can be affected by my changes, and tested other potential affected scenarios
  • New and existing unit tests pass locally with my changes
  • I have added unit tests that prove my fix is effective or that my feature works

COLUMNNAME_PaymentRule,
COLUMNNAME_C_PaymentTerm_ID,
COLUMNNAME_DateAcct};
boolean propagateColChanged = false;
Copy link
Collaborator

Choose a reason for hiding this comment

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

what would be the options available if an implementation wish to change the auto propagate columns ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

more columns can be propagated with an EventHandler

less columns or a different document status would not be possible, maybe an EventHandler on MInvoice to capture the change and reset it back to the old value?

any suggestion?

Copy link
Collaborator

Choose a reason for hiding this comment

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

perhaps as a new sysconfig entry ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

perhaps as a new sysconfig entry ?

ready, changed the approach to use SysConfig ORDER_COLUMNS_TO_COPY_TO_NOT_COMPLETED_INVOICES

@CarlosRuiz-globalqss CarlosRuiz-globalqss marked this pull request as draft October 27, 2023 10:09
@CarlosRuiz-globalqss CarlosRuiz-globalqss marked this pull request as ready for review October 27, 2023 11:31
Copy link
Collaborator

@hengsin hengsin left a comment

Choose a reason for hiding this comment

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

looks good

@hengsin hengsin merged commit 9ac87d3 into idempiere:master Oct 27, 2023
4 checks passed
CarlosRuiz-globalqss added a commit that referenced this pull request Oct 29, 2023
…ve (#2075)

* IDEMPIERE-5893 Completed invoices are being updated in MOrder.afterSave

* - refactor
- test for date and ID

* - implement SysConfig ORDER_COLUMNS_TO_COPY_TO_NOT_COMPLETED_INVOICES as suggested by Heng Sin
@CarlosRuiz-globalqss CarlosRuiz-globalqss deleted the IDEMPIERE-5893 branch October 30, 2023 13:34
freddyheredia4 pushed a commit to freddyheredia4/idempiere that referenced this pull request Feb 28, 2024
…ve (idempiere#2075)

* IDEMPIERE-5893 Completed invoices are being updated in MOrder.afterSave

* - refactor
- test for date and ID

* - implement SysConfig ORDER_COLUMNS_TO_COPY_TO_NOT_COMPLETED_INVOICES as suggested by Heng Sin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants