* Ignore Pycharm IDE directory * init will get executed even if there are no tables, hence migrations cannot be applies at the first step * Separate loanaccount test data load because primary key conflicts due to post_save signal * Avoid multiple DB save calls
30 lines
719 B
JSON
30 lines
719 B
JSON
[
|
|
{
|
|
"model": "payroll.loanaccount",
|
|
"pk": 1,
|
|
"fields": {
|
|
"created_at": "2024-12-12T09:45:26.097Z",
|
|
"created_by": 1,
|
|
"modified_by": 1,
|
|
"is_active": true,
|
|
"type": "loan",
|
|
"title": "Medical Loan",
|
|
"employee_id": 18,
|
|
"loan_amount": 60000.0,
|
|
"provided_date": "2024-12-01",
|
|
"allowance_id": 5,
|
|
"description": "Loan for parents medical case",
|
|
"is_fixed": true,
|
|
"rate": 0.0,
|
|
"installment_amount": 5000.0,
|
|
"installments": 12,
|
|
"installment_start_date": "2025-01-01",
|
|
"apply_on": "end_of_month",
|
|
"settled": false,
|
|
"settled_date": null,
|
|
"asset_id": null,
|
|
"deduction_ids": [1,2,3]
|
|
}
|
|
}
|
|
]
|