Martin Renvoize
b9ecf361a8
This patch updates the wording in the 'lost and found' process to more closely reflect what the process is achieving by replacing 'RETURNED' with 'FOUND' Test plan: 1) Grep codebase for _FixAccountForLostAndReturned and note there are no longer any instanced of it. 2) Run t/db_dependent/Circulation.t and note it passes 3) Test returning/renewing an item that has been marked as lost and note the updated values in the accountlines now use LOST_FOUND as credit_type_code and 'FOUND' as the status for the 'LOST' fee (debit_type_code 'LOST') Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"type": "object",
|
|
"properties": {
|
|
"credit_type": {
|
|
"type": "string",
|
|
"description": "Type of credit ('CREDIT', 'FORGIVEN', 'LOST_FOUND', 'PAYMENT', 'WRITEOFF' )"
|
|
},
|
|
"amount": {
|
|
"type": "number",
|
|
"minimum": 0,
|
|
"description": "Credit amount"
|
|
},
|
|
"library_id": {
|
|
"type": [ "string", "null" ],
|
|
"description": "Internal identifier for the library in which the transaction took place"
|
|
},
|
|
"account_lines_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
},
|
|
"description": "List of account line ids the credit goes against (optional)"
|
|
},
|
|
"payment_type": {
|
|
"type": "string",
|
|
"description": "Payment type (only applies when credit_type=payment)"
|
|
},
|
|
"date": {
|
|
"type": "string",
|
|
"format": "date",
|
|
"description": "Date the credit was recorded (optional)"
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"description": "Description"
|
|
},
|
|
"note": {
|
|
"type": "string",
|
|
"description": "Internal note"
|
|
}
|
|
},
|
|
"required": [ "amount" ]
|
|
}
|