From 3ea7ce84ed5ac034a37caa0c93886cbe4f6f7b5f Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 27 Aug 2015 16:03:29 +0530 Subject: [PATCH] [fix] print hide additional discount, reload doctypes in sales return patch --- erpnext/buying/doctype/purchase_order/purchase_order.json | 4 ++-- .../patches/v5_8/update_order_reference_in_return_entries.py | 3 +++ erpnext/stock/doctype/purchase_receipt/purchase_receipt.json | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.json b/erpnext/buying/doctype/purchase_order/purchase_order.json index a92d9d0617..aed66c33ac 100644 --- a/erpnext/buying/doctype/purchase_order/purchase_order.json +++ b/erpnext/buying/doctype/purchase_order/purchase_order.json @@ -1027,7 +1027,7 @@ "options": "\nGrand Total\nNet Total", "permlevel": 0, "precision": "", - "print_hide": 0, + "print_hide": 1, "read_only": 0, "report_hide": 0, "reqd": 0, @@ -2032,7 +2032,7 @@ "is_submittable": 1, "issingle": 0, "istable": 0, - "modified": "2015-08-27 03:22:25.403272", + "modified": "2015-08-27 06:26:20.233037", "modified_by": "Administrator", "module": "Buying", "name": "Purchase Order", diff --git a/erpnext/patches/v5_8/update_order_reference_in_return_entries.py b/erpnext/patches/v5_8/update_order_reference_in_return_entries.py index a875aede28..d7972dc64a 100644 --- a/erpnext/patches/v5_8/update_order_reference_in_return_entries.py +++ b/erpnext/patches/v5_8/update_order_reference_in_return_entries.py @@ -5,6 +5,9 @@ from __future__ import unicode_literals import frappe def execute(): + frappe.reload_doctype("Delivery Note") + frappe.reload_doctype("Sales Invoice") + frappe.reload_doctype("Purchase Receipt") frappe.reload_doctype("Sales Order Item") frappe.reload_doctype("Purchase Order Item") diff --git a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.json b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.json index e8fbbc816f..1423b426af 100755 --- a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.json +++ b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.json @@ -1134,7 +1134,7 @@ "options": "Company:company:default_currency", "permlevel": 0, "precision": "", - "print_hide": 0, + "print_hide": 1, "read_only": 1, "report_hide": 0, "reqd": 0, @@ -2076,7 +2076,7 @@ "is_submittable": 1, "issingle": 0, "istable": 0, - "modified": "2015-08-27 03:23:10.261818", + "modified": "2015-08-27 06:27:48.950655", "modified_by": "Administrator", "module": "Stock", "name": "Purchase Receipt",