Skip to main content

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

openimis_be_payment_cycle-1.3.2.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openimis_be_payment_cycle-1.3.2-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file openimis_be_payment_cycle-1.3.2.tar.gz.

File metadata

File hashes

Hashes for openimis_be_payment_cycle-1.3.2.tar.gz
Algorithm Hash digest
SHA256 b577ae17bcbf820f1b7c5bdd9ebe4b381668e16ee9b5ddb6dba3e7e31b5397a2
MD5 7be7470353d91fe19740ef40be0dda81
BLAKE2b-256 1124d8bb7a055bff8ded6989d7968c1206811a812fef700554f7dac6c6923cb6

See more details on using hashes here.

File details

Details for the file openimis_be_payment_cycle-1.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for openimis_be_payment_cycle-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fa26db30094a853e47e1b30e7f4b037e2b8633c4de46194e0cffb1f33cc880d4
MD5 e41a696c06268e1793378337b21eb773
BLAKE2b-256 05c395e467dabba0f2f1e72bcf6edfc83c0d19331bccea1be289d54bac4f340b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page