fix: wrong currency in Subcontracting Order Service Item (#50517)

This commit is contained in:
Mihir Kandoi
2025-11-14 10:51:06 +05:30
committed by GitHub
parent 4f720b3969
commit b98f4611e6
3 changed files with 20 additions and 6 deletions

View File

@@ -14,6 +14,7 @@
"supplier",
"supplier_name",
"supplier_warehouse",
"supplier_currency",
"column_break_7",
"company",
"transaction_date",
@@ -460,12 +461,22 @@
"fieldtype": "Tab Break",
"label": "Connections",
"show_dashboard": 1
},
{
"fetch_from": "purchase_order.currency",
"fieldname": "supplier_currency",
"fieldtype": "Link",
"hidden": 1,
"label": "Job Worker Currency",
"no_copy": 1,
"options": "Currency",
"read_only": 1
}
],
"icon": "fa fa-file-text",
"is_submittable": 1,
"links": [],
"modified": "2024-12-06 15:21:49.924146",
"modified": "2025-11-14 10:31:40.682892",
"modified_by": "Administrator",
"module": "Subcontracting",
"name": "Subcontracting Order",
@@ -512,6 +523,7 @@
"write": 1
}
],
"row_format": "Dynamic",
"search_fields": "status, transaction_date, supplier",
"show_name_in_global_search": 1,
"sort_field": "creation",
@@ -520,4 +532,4 @@
"timeline_field": "supplier",
"title_field": "supplier_name",
"track_changes": 1
}
}

View File

@@ -72,6 +72,7 @@ class SubcontractingOrder(SubcontractingController):
supplied_items: DF.Table[SubcontractingOrderSuppliedItem]
supplier: DF.Link
supplier_address: DF.Link | None
supplier_currency: DF.Link | None
supplier_name: DF.Data
supplier_warehouse: DF.Link
title: DF.Data | None

View File

@@ -67,7 +67,7 @@
"fieldtype": "Currency",
"in_list_view": 1,
"label": "Rate",
"options": "currency",
"options": "supplier_currency",
"reqd": 1
},
{
@@ -76,7 +76,7 @@
"fieldtype": "Currency",
"in_list_view": 1,
"label": "Amount",
"options": "currency",
"options": "supplier_currency",
"read_only": 1,
"reqd": 1
},
@@ -155,7 +155,7 @@
],
"istable": 1,
"links": [],
"modified": "2024-12-05 17:33:46.099601",
"modified": "2025-11-13 16:04:45.020225",
"modified_by": "Administrator",
"module": "Subcontracting",
"name": "Subcontracting Order Service Item",
@@ -163,8 +163,9 @@
"owner": "Administrator",
"permissions": [],
"quick_entry": 1,
"row_format": "Dynamic",
"search_fields": "item_name",
"sort_field": "creation",
"sort_order": "DESC",
"states": []
}
}