From 51eabfe352f46244e8c362a1810f5a8287bb959b Mon Sep 17 00:00:00 2001 From: Rucha Mahabal Date: Thu, 19 Sep 2019 16:57:03 +0530 Subject: [PATCH] fix: subcontracting material transfer dialog in Purchase Order (#19111) * fix: subcontracting material transfer dialog in Purchase Order * fix: dialog title --- erpnext/buying/doctype/purchase_order/purchase_order.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.js b/erpnext/buying/doctype/purchase_order/purchase_order.js index b2a2f01f44..ae52437069 100644 --- a/erpnext/buying/doctype/purchase_order/purchase_order.js +++ b/erpnext/buying/doctype/purchase_order/purchase_order.js @@ -196,10 +196,10 @@ erpnext.buying.PurchaseOrderController = erpnext.buying.BuyingController.extend( if(items.length >= 1){ me.raw_material_data = []; me.show_dialog = 1; - let title = ""; + let title = __('Transfer Material to Supplier'); let fields = [ {fieldtype:'Section Break', label: __('Raw Materials')}, - {fieldname: 'sub_con_rm_items', fieldtype: 'Table', + {fieldname: 'sub_con_rm_items', fieldtype: 'Table', label: __('Items'), fields: [ { fieldtype:'Data', @@ -271,7 +271,7 @@ erpnext.buying.PurchaseOrderController = erpnext.buying.BuyingController.extend( 'item_code': item.main_item_code, 'rm_item_code': item.rm_item_code, 'item_name': item.rm_item_code, - 'qty': item.required_qty, + 'qty': item.required_qty - item.supplied_qty, 'warehouse':item.reserve_warehouse, 'rate':item.rate, 'amount':item.amount,