fix: Negative amount check for amounts

This commit is contained in:
Deepesh Garg
2020-11-05 21:14:07 +05:30
parent c9a6135d6c
commit 49cc57e76e
6 changed files with 20 additions and 8 deletions

View File

@@ -136,6 +136,7 @@
"fieldname": "loan_amount", "fieldname": "loan_amount",
"fieldtype": "Currency", "fieldtype": "Currency",
"label": "Loan Amount", "label": "Loan Amount",
"non_negative": 1,
"options": "Company:company:default_currency" "options": "Company:company:default_currency"
}, },
{ {
@@ -351,7 +352,7 @@
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"is_submittable": 1, "is_submittable": 1,
"links": [], "links": [],
"modified": "2020-10-27 23:37:02.785940", "modified": "2020-11-05 10:04:00.762975",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Loan Management", "module": "Loan Management",
"name": "Loan", "name": "Loan",

View File

@@ -41,6 +41,7 @@
"fieldname": "disbursed_amount", "fieldname": "disbursed_amount",
"fieldtype": "Currency", "fieldtype": "Currency",
"label": "Disbursed Amount", "label": "Disbursed Amount",
"non_negative": 1,
"options": "Company:company:default_currency", "options": "Company:company:default_currency",
"reqd": 1 "reqd": 1
}, },
@@ -130,7 +131,7 @@
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"is_submittable": 1, "is_submittable": 1,
"links": [], "links": [],
"modified": "2020-10-16 10:04:26.229216", "modified": "2020-11-06 10:04:30.882322",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Loan Management", "module": "Loan Management",
"name": "Loan Disbursement", "name": "Loan Disbursement",

View File

@@ -108,6 +108,7 @@
"fieldname": "amount_paid", "fieldname": "amount_paid",
"fieldtype": "Currency", "fieldtype": "Currency",
"label": "Amount Paid", "label": "Amount Paid",
"non_negative": 1,
"options": "Company:company:default_currency", "options": "Company:company:default_currency",
"reqd": 1 "reqd": 1
}, },
@@ -230,7 +231,7 @@
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"is_submittable": 1, "is_submittable": 1,
"links": [], "links": [],
"modified": "2020-10-10 03:49:01.827593", "modified": "2020-11-05 10:06:58.792841",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Loan Management", "module": "Loan Management",
"name": "Loan Repayment", "name": "Loan Repayment",

View File

@@ -1,4 +1,5 @@
{ {
"actions": [],
"creation": "2019-09-09 17:06:16.756573", "creation": "2019-09-09 17:06:16.756573",
"doctype": "DocType", "doctype": "DocType",
"editable_grid": 1, "editable_grid": 1,
@@ -49,7 +50,8 @@
"fieldname": "qty", "fieldname": "qty",
"fieldtype": "Float", "fieldtype": "Float",
"in_list_view": 1, "in_list_view": 1,
"label": "Quantity" "label": "Quantity",
"non_negative": 1
}, },
{ {
"fieldname": "loan_security_price", "fieldname": "loan_security_price",
@@ -86,7 +88,8 @@
} }
], ],
"istable": 1, "istable": 1,
"modified": "2019-12-03 10:59:58.001421", "links": [],
"modified": "2020-11-05 10:07:15.424937",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Loan Management", "module": "Loan Management",
"name": "Pledge", "name": "Pledge",

View File

@@ -1,4 +1,5 @@
{ {
"actions": [],
"creation": "2019-08-29 22:29:37.628178", "creation": "2019-08-29 22:29:37.628178",
"doctype": "DocType", "doctype": "DocType",
"editable_grid": 1, "editable_grid": 1,
@@ -39,7 +40,8 @@
"fieldname": "qty", "fieldname": "qty",
"fieldtype": "Float", "fieldtype": "Float",
"in_list_view": 1, "in_list_view": 1,
"label": "Quantity" "label": "Quantity",
"non_negative": 1
}, },
{ {
"fieldname": "loan_security", "fieldname": "loan_security",
@@ -56,8 +58,10 @@
"read_only": 1 "read_only": 1
} }
], ],
"index_web_pages_for_search": 1,
"istable": 1, "istable": 1,
"modified": "2019-12-02 10:23:11.498308", "links": [],
"modified": "2020-11-05 10:07:37.542344",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Loan Management", "module": "Loan Management",
"name": "Proposed Pledge", "name": "Proposed Pledge",

View File

@@ -52,6 +52,7 @@
"fieldtype": "Float", "fieldtype": "Float",
"in_list_view": 1, "in_list_view": 1,
"label": "Quantity", "label": "Quantity",
"non_negative": 1,
"reqd": 1 "reqd": 1
}, },
{ {
@@ -62,9 +63,10 @@
"read_only": 1 "read_only": 1
} }
], ],
"index_web_pages_for_search": 1,
"istable": 1, "istable": 1,
"links": [], "links": [],
"modified": "2020-05-06 10:50:18.448552", "modified": "2020-11-05 10:07:28.106961",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Loan Management", "module": "Loan Management",
"name": "Unpledge", "name": "Unpledge",