Skip to content

Ehddsi#1069

Open
Terkura wants to merge 15 commits intoapache:trunkfrom
Terkura:ehddsi
Open

Ehddsi#1069
Terkura wants to merge 15 commits intoapache:trunkfrom
Terkura:ehddsi

Conversation

@Terkura
Copy link
Copy Markdown

@Terkura Terkura commented Apr 7, 2026

Improved:
Implemented:
Documented:
Completed:
Reverted:
Fixed:
(OFBIZ-)

Explanation

Thanks:

Copilot AI and others added 15 commits April 6, 2026 17:22
…ovider, hmo-sponsor)

Agent-Logs-Url: https://github.com/Terkura/ofbiz-framework/sessions/d04600af-b06c-47c6-ad0f-b6ce034d79b4

Co-authored-by: Terkura <3463221+Terkura@users.noreply.github.com>
Creates the complete hmo-hr OFBiz plugin at plugins/hmo-hr/ providing
HR & Admin functionality for managing HMO internal staff.

## Plugin structure
- ofbiz-component.xml: component name hmo-hr, webapp hmohr at /hmohr,
  position 24, base-permission OFBTOOLS,HMO_VIEW, app-bar-display true
- entitydef/entitymodel.xml: 4 new entities in org.apache.ofbiz.hmo.hr —
  HmoGradeLevel, HmoStaffPosition, HmoPromotion, HmoLeaveRecord
- servicedef/services.xml: 8 services — createStaffPosition,
  updateStaffPosition, promoteStaff, createLeaveRecord, approveLeave,
  rejectLeave, processLeaveReturn, updateGradeLevel
- src/main/groovy/.../HrServices.groovy: Groovy implementations of
  promoteStaff, approveLeave, rejectLeave, processLeaveReturn with
  StatusValidChange validation matching SponsorServices pattern
- webapp/hmohr/WEB-INF/web.xml: localDispatcherName HmoHr
- webapp/hmohr/WEB-INF/controller.xml: all request/view maps
- webapp/hmohr/index.jsp: redirect to control/main
- widget/CommonScreens.xml: main-decorator + ShortcutApp screens
- widget/HrScreens.xml: 9 screens (dashboard, staff, leave, grade levels)
- widget/HrForms.xml: 9 forms/grids
- widget/Menus.xml: HrAppBar menu with permission conditions
- config/HrUiLabels.xml: all UI labels
- data/seed/HmoHrSeedData.xml: permissions, security group, enumerations,
  status types with valid transitions, 10 grade level rows (GL-01..GL-10)

Also registers hmo-hr in plugins/component-load.xml and adds gitignore
exception so the plugin is tracked by git.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: Terkura <3463221+Terkura@users.noreply.github.com>
The gradeLevelId hyperlink column in GradeLevelGrid was incorrectly using
the HmoStaffPositionId label. Fixed to use HmoGradeLevel.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: Terkura <3463221+Terkura@users.noreply.github.com>
…tation, reporting)

Creates the complete hmo-finance OFBiz plugin at plugins/hmo-finance/ with:
- ofbiz-component.xml: component registration, webapp /hmofinance (pos=25)
- entitydef/entitymodel.xml: HmoPremiumInvoice, HmoClaimPayment, HmoClaimPaymentItem, HmoCapitationSchedule
- servicedef/services.xml: createPremiumInvoice, markPremiumInvoicePaid, createClaimPayment, createCapitationSchedule, updateCapitationSchedule, generateHmoFinancialReport
- FinanceServices.groovy: full Groovy service implementations using EntityCondition/delegator
- webapp/hmofinance: web.xml, controller.xml, index.jsp
- widget: CommonScreens.xml (main-decorator + ShortcutApp), FinanceScreens.xml (10 screens), FinanceForms.xml (13 forms/grids), Menus.xml (FinanceAppBar)
- config/FinanceUiLabels.xml: all UI labels
- data/seed/HmoFinanceSeedData.xml: security permissions/group, invoice & payment status machines

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: Terkura <3463221+Terkura@users.noreply.github.com>
- FinanceForms.xml: use date-time type="date" (not timestamp) for all date boundary fields
- FinanceForms.xml: fix wrong label HmoInvoiceDate -> HmoPaymentDate on MarkInvoicePaidForm
- FinanceServices.groovy: extract DEFAULT_PAYMENT_TERM_DAYS=30 named constant
- FinanceServices.groovy: extract DEFAULT_CURRENCY_UOM_ID="NGN" named constant

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: Terkura <3463221+Terkura@users.noreply.github.com>
…ture

Move HMO seed/demo data to dedicated hmo-demo module
@jacopoc
Copy link
Copy Markdown
Contributor

jacopoc commented Apr 7, 2026

Hi @Terkura, this pull request should be created in our other repository:
https://github.com/apache/ofbiz-plugins

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