Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

from_to: [{“from”:”Policy”,”to”:”Invoice”}, {“from”:”Contract”,”to”:”Invoice”}, {“from”:”ContractContributionPlanDetails”,”to”:”InvoiceLine”},]

...

convert(from, to, obj_from, save = True)

to convert a “from” object (obj_from) to a to object

...

obj_from policy/contract objsave will save the “To“ object in the database

Wrappers are required to attach “convert“ function to those signal

  • Policy activated (obj_from is the instance from the signal data)

returns the obj_to

convert_batch(from, to, **agrv)

...

Informal sector / from Policy to Invoice: this function will take the all polices related to the product (all product if not specified) that have no invoice and were created in the period specified in the specified location if any

Save the invoice in database

getLinkedClass(classname)

...