...
field | type | comment | ||||
third_party | json | referenceActor { “label“:””, “code“:””, “type”: “batchRun/commissionOverview/capitationReport“, “id“:”UUID”, “address“:{“text“:””,…} } | ||||
source | json | referenceSource { “label“:””, “code“:””, “type”: “HF/Insuree/PH/payer/user“, “id“:”UUID”, “address“:{“text“:””,…} } | ||||
id | UUID | |||||
code | str | or reference for the insurance | ||||
code_rcp | str | or reference for the recipient | ||||
code_ext | str | if required for external system integration | ||||
date_due | date | date on which the payment is due | ||||
date_invoice | date | Date of the “invoice“ | ||||
date_from | type | invoice covering service/item from | ||||
date_to | date | invoice covering service/item to | ||||
date_payed | date | Date on which the payment was actually documented as Done | ||||
amount_discount | float | total of the detail discount | ||||
amount_net | float | Total without tax | ||||
tax_analysis | json | tax details { “lines”: [ {“label“:””, “rate“:””, “base“:””, “amount”:””}] … ], “total”:”” } | ||||
amount_total | float | total net +tax total | ||||
status | int | ENUM: Draft, validated, payed, cancelled, Deleted | ||||
currency_rcp_code | str | currency of the recipient (if different) | ||||
currency_code | str | currency of insurance | ||||
note | bigttext | |||||
terms | bigttext | method(type) | type | method(type) | type | conditions |
outInvoiceDetails
field | type | comment |
code | str | reference |
description | str | |
details | json | depend of the type, TBD |
ledger_account | int | from config |
quantity | float | |
unit_price | type | |
discount | float | to document difference between the std price and the price to be paid, usefull for relative pricing |
tax_rate | Calculation uuid | Calculation to calculate the tax |
tax_analisisanalysis | json amount | tax details { “lines”: [ {“label“:””, “rate“:””, “base“:””, “amount”:””}] … ], “total”:”” } |
amount_total | float | net +tax |
amount_net | qty * unitprice - discount |
Save the different account payable
...