Skip to content

Commit

Permalink
fix(Travel Request): get currency from Employee Master's Company
Browse files Browse the repository at this point in the history
  • Loading branch information
vinyselopal committed May 24, 2024
1 parent 78f68f3 commit 8dfcd57
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
11 changes: 10 additions & 1 deletion hrms/hr/doctype/travel_request/travel_request.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"employee_name",
"cell_number",
"prefered_email",
"company",
"column_break_7",
"date_of_birth",
"personal_id_type",
Expand Down Expand Up @@ -212,11 +213,19 @@
{
"fieldname": "dimension_col_break",
"fieldtype": "Column Break"
},
{
"fetch_from": "employee.company",
"fieldname": "company",
"fieldtype": "Link",
"label": "Company",
"options": "Company",
"read_only": 1
}
],
"is_submittable": 1,
"links": [],
"modified": "2024-03-27 13:10:55.378040",
"modified": "2024-05-24 17:09:09.480838",
"modified_by": "Administrator",
"module": "HR",
"name": "Travel Request",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,22 @@
"fieldname": "sponsored_amount",
"fieldtype": "Currency",
"in_list_view": 1,
"label": "Sponsored Amount"
"label": "Sponsored Amount",
"options": "Company:company:default_currency"
},
{
"fieldname": "funded_amount",
"fieldtype": "Currency",
"in_list_view": 1,
"label": "Funded Amount"
"label": "Funded Amount",
"options": "Company:company:default_currency"
},
{
"fieldname": "total_amount",
"fieldtype": "Currency",
"in_list_view": 1,
"label": "Total Amount"
"label": "Total Amount",
"options": "Company:company:default_currency"
},
{
"fieldname": "section_break_4",
Expand All @@ -55,7 +58,7 @@
],
"istable": 1,
"links": [],
"modified": "2024-03-27 13:10:55.569536",
"modified": "2024-05-24 12:00:47.413806",
"modified_by": "Administrator",
"module": "HR",
"name": "Travel Request Costing",
Expand Down

0 comments on commit 8dfcd57

Please sign in to comment.