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

feat: Add frequency type Six-monthly and biweekly. #3772

Conversation

EdwinBetanc0urt
Copy link
Contributor

@EdwinBetanc0urt EdwinBetanc0urt commented Mar 21, 2022

  1. Create comission definition with biweekly frequency type.

Commission-Definition-Biweekly

  1. Commission Run with date before 15 day.

commission-run-first-biweekly

  1. Commission Run with date after 15 day.

commission-run-second-biweekly

fix #3771

@yamelsenih
Copy link
Member

Hi @EdwinBetanc0urt this change look fine but the dictionary changes must be with centralized ID's: https://github.com/adempiere/adempiere/pull/3772/files#diff-ed5abd0d1ed4b33411b10b6a121fa242c139b4afdb768548fe5bc5d5ce4c622bR6

Give me the pachout and I can generate it for you

Best regards

@marcalwestf marcalwestf added 14 Waiting for User Changes Waiting for Pull request User make changes and removed 09 Pending Peer Review labels Apr 24, 2022
@marcalwestf
Copy link
Collaborator

@EdwinBetanc0urt, @yamelsenih can we move on here?
Thanks!!

@EdwinBetanc0urt
Copy link
Contributor Author

Greetings @marcalwestf @yamelsenih , the migration xml has been updated with the new centralized ids.

@marcalwestf marcalwestf added 09 Pending Peer Review and removed 14 Waiting for User Changes Waiting for Pull request User make changes labels May 22, 2022
@marcalwestf
Copy link
Collaborator

@EdwinBetanc0urt thanks Edwin, proceeding to test right now.

Copy link
Collaborator

@marcalwestf marcalwestf left a comment

Choose a reason for hiding this comment

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

  • XML loaded and applied
  • Check Reference C_Commission Frequency: two entries added (Biweekly and Six-monthly), with translations
  • Create two new Invoice Commission Definitions, one for Biweekly and another for Six-monthly and add Both GardenAdmin and GardenUser as Sales Representatives.
  • Create four Commission Runs, twice referencing one of the new Commission Definitions
  • Bi-weekly: set dates before and after 15th; Six-monthly: set dates before and after July 1st
  • Run action prepare() for each Commission Run
  • Check results: start and end dates correctly set on every run; correct invoice lines selected; correct commission amount calculated.
  • Test was only run on Inovices (not run on Orders etc.) because it was not within the scope of the changes.

Test passed

@marcalwestf marcalwestf merged commit 0f4d86c into adempiere:develop May 23, 2022
@EdwinBetanc0urt EdwinBetanc0urt deleted the feature/#3771-frequency-type-six-monthly-biweekly branch November 23, 2023 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Support for biweekly and six-monthly frequency types in Commissions.
3 participants