The openIMIS Backend payment_cycle reference module.
Project description
openIMIS Backend payment_cycle reference module
This repository holds the files of the openIMIS Backend Payment Cycle reference module. It is dedicated to be deployed as a module of openimis-be_py.
ORM mapping:
- payment_cycle_paymentcycle, payment_cycle_historicalpaymentcycle > Individual
GraphQl Queries
- paymentCycle
GraphQL Mutations - each mutation emits default signals and return standard error lists (cfr. openimis-be-core_py)
- processBenefitPlanPaymentCycle
Services
- PaymentCycleService - Generic service containing workflow for payment cycle calculation
- BenefitPlanPaymentCycleService - Service customized for Benefit Plan payment cycle calculation
Configuration options (can be changed via core.ModuleConfiguration)
- gql_query_payment_cycle_perms: required rights to query PaymentCycle (default: ["200001"])
- gql_create_payment_cycle_perms: required rights to create PaymentCycle (default: ["200002"])
- gql_update_payment_cycle_perms: required rights to update PaymentCycle (default: ["200003"])
- gql_delete_payment_cycle_perms: required rights to delete PaymentCycle (default: ["200004"])
- gql_mutation_process_payment_cycle_perms: required rights to call processBenefitPlanPaymentCycle GraphQL Mutation (default: ["200005"])
openIMIS Modules Dependencies
- core
- social_protection
- contribution_plan
- calculation
Payment Cycle Service
Payment cycle service specifies generic workflow for performing a calculation of periodical payments
for any king of business object connected to payment plans. This service includes a service specific
to BenefitPlan objects. To trigger a calculation The service requires a user reference, year, and month.
Any additional keyword arguments can be passed to the process()
method to be used in calculations.
result = BenefitPlanPaymentCycleService(user).process(year=year, month=month)
the result is a dict containing status of the operation, indicating if the operation completed successfully or not, message and details of an error if occurred and any additional data that was returned from psecific implementation of the services and calculation rules grouped by the id of main queryset entry (BenefitPlan id in this case).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file openimis_be_payment_cycle-1.2.1.tar.gz
.
File metadata
- Download URL: openimis_be_payment_cycle-1.2.1.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cd2f96a3abac088696fcef0aa8aacd76506356574679e12fcce19e1afa62424 |
|
MD5 | dc24044e42894a20246ae0d5f3e2f9e0 |
|
BLAKE2b-256 | 39428736503ae19df270a1bc4a8a7cb37032a2dc06c67460c712cc471d235db5 |
File details
Details for the file openimis_be_payment_cycle-1.2.1-py3-none-any.whl
.
File metadata
- Download URL: openimis_be_payment_cycle-1.2.1-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 668f55a1bef193ee4b7bc62b6734bb02f7197229a6b711ca345251731d2457ff |
|
MD5 | 4c739d92aa16388dab58f40c28743888 |
|
BLAKE2b-256 | 97200a57d92a23f5143ea6f838fa327076377edbe079cbaec09b8e314b97c2aa |