mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
fix(share balance): use currency field instead of int for rate and amount
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "rate",
|
"fieldname": "rate",
|
||||||
"fieldtype": "Int",
|
"fieldtype": "Currency",
|
||||||
"in_list_view": 1,
|
"in_list_view": 1,
|
||||||
"label": "Rate",
|
"label": "Rate",
|
||||||
"read_only": 1,
|
"read_only": 1,
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "amount",
|
"fieldname": "amount",
|
||||||
"fieldtype": "Int",
|
"fieldtype": "Currency",
|
||||||
"in_list_view": 1,
|
"in_list_view": 1,
|
||||||
"label": "Amount",
|
"label": "Amount",
|
||||||
"read_only": 1,
|
"read_only": 1,
|
||||||
@@ -91,13 +91,14 @@
|
|||||||
],
|
],
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2024-03-27 13:10:39.866399",
|
"modified": "2025-12-10 08:06:40.611761",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"name": "Share Balance",
|
"name": "Share Balance",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"permissions": [],
|
"permissions": [],
|
||||||
"quick_entry": 1,
|
"quick_entry": 1,
|
||||||
|
"row_format": "Dynamic",
|
||||||
"sort_field": "creation",
|
"sort_field": "creation",
|
||||||
"sort_order": "DESC",
|
"sort_order": "DESC",
|
||||||
"states": [],
|
"states": [],
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ class ShareBalance(Document):
|
|||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from frappe.types import DF
|
from frappe.types import DF
|
||||||
|
|
||||||
amount: DF.Int
|
amount: DF.Currency
|
||||||
current_state: DF.Literal["", "Issued", "Purchased"]
|
current_state: DF.Literal["", "Issued", "Purchased"]
|
||||||
from_no: DF.Int
|
from_no: DF.Int
|
||||||
is_company: DF.Check
|
is_company: DF.Check
|
||||||
@@ -22,7 +22,7 @@ class ShareBalance(Document):
|
|||||||
parent: DF.Data
|
parent: DF.Data
|
||||||
parentfield: DF.Data
|
parentfield: DF.Data
|
||||||
parenttype: DF.Data
|
parenttype: DF.Data
|
||||||
rate: DF.Int
|
rate: DF.Currency
|
||||||
share_type: DF.Link
|
share_type: DF.Link
|
||||||
to_no: DF.Int
|
to_no: DF.Int
|
||||||
# end: auto-generated types
|
# end: auto-generated types
|
||||||
|
|||||||
Reference in New Issue
Block a user