feat: Subcontracting Receipt ref in Purchase Receipt
This commit is contained in:
parent
d366a91d9e
commit
d891bd7fac
@ -49,6 +49,14 @@ frappe.ui.form.on("Purchase Receipt", {
|
||||
}
|
||||
});
|
||||
|
||||
frm.set_query("subcontracting_receipt", function() {
|
||||
return {
|
||||
filters: {
|
||||
'docstatus': 1,
|
||||
'supplier': frm.doc.supplier,
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
onload: function(frm) {
|
||||
erpnext.queries.setup_queries(frm, "Warehouse", function() {
|
||||
|
@ -16,6 +16,7 @@
|
||||
"supplier",
|
||||
"supplier_name",
|
||||
"supplier_delivery_note",
|
||||
"subcontracting_receipt",
|
||||
"column_break1",
|
||||
"posting_date",
|
||||
"posting_time",
|
||||
@ -1236,13 +1237,21 @@
|
||||
"fieldname": "named_place",
|
||||
"fieldtype": "Data",
|
||||
"label": "Named Place"
|
||||
},
|
||||
{
|
||||
"depends_on": "eval: (doc.is_subcontracted && !doc.is_old_subcontracting_flow)",
|
||||
"fieldname": "subcontracting_receipt",
|
||||
"fieldtype": "Link",
|
||||
"label": "Subcontracting Receipt",
|
||||
"options": "Subcontracting Receipt",
|
||||
"search_index": 1
|
||||
}
|
||||
],
|
||||
"icon": "fa fa-truck",
|
||||
"idx": 261,
|
||||
"is_submittable": 1,
|
||||
"links": [],
|
||||
"modified": "2023-10-01 21:00:44.556816",
|
||||
"modified": "2023-11-28 13:14:15.243474",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Stock",
|
||||
"name": "Purchase Receipt",
|
||||
|
@ -560,6 +560,7 @@ def make_purchase_receipt(subcontracting_receipt, save=False, submit=False, noti
|
||||
"field_map": {
|
||||
"posting_date": "posting_date",
|
||||
"posting_time": "posting_time",
|
||||
"name": "subcontracting_receipt",
|
||||
"supplier_warehouse": "supplier_warehouse",
|
||||
},
|
||||
"field_no_map": ["total_qty", "total"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user