From 90fc19ed9a7234e26ca54f19eb14450aa2f5cb15 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 14 May 2015 12:26:27 +0530 Subject: [PATCH] Item image in print view --- .../doctype/purchase_order_item/purchase_order_item.json | 7 ++++--- .../supplier_quotation_item/supplier_quotation_item.json | 7 ++++--- erpnext/crm/doctype/opportunity_item/opportunity_item.json | 7 ++++--- erpnext/selling/doctype/quotation_item/quotation_item.json | 7 ++++--- .../selling/doctype/sales_order_item/sales_order_item.json | 7 ++++--- .../doctype/delivery_note_item/delivery_note_item.json | 7 ++++--- .../purchase_receipt_item/purchase_receipt_item.json | 7 ++++--- .../print_formats/includes/item_table_description.html | 2 +- 8 files changed, 29 insertions(+), 22 deletions(-) diff --git a/erpnext/buying/doctype/purchase_order_item/purchase_order_item.json b/erpnext/buying/doctype/purchase_order_item/purchase_order_item.json index cc1eae4f76..841159c668 100755 --- a/erpnext/buying/doctype/purchase_order_item/purchase_order_item.json +++ b/erpnext/buying/doctype/purchase_order_item/purchase_order_item.json @@ -97,7 +97,7 @@ "label": "Image", "permlevel": 0, "precision": "", - "print_hide": 1 + "print_hide": 0 }, { "fieldname": "image_view", @@ -105,7 +105,8 @@ "label": "Image View", "options": "image", "permlevel": 0, - "precision": "" + "precision": "", + "print_hide": 1 }, { "fieldname": "quantity_and_rate", @@ -536,7 +537,7 @@ ], "idx": 1, "istable": 1, - "modified": "2015-03-23 16:12:29.821493", + "modified": "2015-05-14 14:54:16.899713", "modified_by": "Administrator", "module": "Buying", "name": "Purchase Order Item", diff --git a/erpnext/buying/doctype/supplier_quotation_item/supplier_quotation_item.json b/erpnext/buying/doctype/supplier_quotation_item/supplier_quotation_item.json index fd077f45d6..014c54342d 100644 --- a/erpnext/buying/doctype/supplier_quotation_item/supplier_quotation_item.json +++ b/erpnext/buying/doctype/supplier_quotation_item/supplier_quotation_item.json @@ -81,7 +81,7 @@ "label": "Image", "permlevel": 0, "precision": "", - "print_hide": 1 + "print_hide": 0 }, { "fieldname": "image_view", @@ -89,7 +89,8 @@ "label": "Image View", "options": "image", "permlevel": 0, - "precision": "" + "precision": "", + "print_hide": 1 }, { "fieldname": "quantity_and_rate", @@ -411,7 +412,7 @@ ], "idx": 1, "istable": 1, - "modified": "2015-03-23 15:28:03.712608", + "modified": "2015-05-14 14:54:36.253819", "modified_by": "Administrator", "module": "Buying", "name": "Supplier Quotation Item", diff --git a/erpnext/crm/doctype/opportunity_item/opportunity_item.json b/erpnext/crm/doctype/opportunity_item/opportunity_item.json index afc6fcb31d..d33fdcaeb2 100644 --- a/erpnext/crm/doctype/opportunity_item/opportunity_item.json +++ b/erpnext/crm/doctype/opportunity_item/opportunity_item.json @@ -108,7 +108,7 @@ "options": "", "permlevel": 0, "precision": "", - "print_hide": 1 + "print_hide": 0 }, { "fieldname": "image_view", @@ -116,7 +116,8 @@ "label": "Image View", "options": "image", "permlevel": 0, - "precision": "" + "precision": "", + "print_hide": 1 }, { "fieldname": "basic_rate", @@ -133,7 +134,7 @@ ], "idx": 1, "istable": 1, - "modified": "2015-04-02 22:04:26.867653", + "modified": "2015-05-14 14:55:18.325286", "modified_by": "Administrator", "module": "CRM", "name": "Opportunity Item", diff --git a/erpnext/selling/doctype/quotation_item/quotation_item.json b/erpnext/selling/doctype/quotation_item/quotation_item.json index 889c3e7448..621b204a8c 100644 --- a/erpnext/selling/doctype/quotation_item/quotation_item.json +++ b/erpnext/selling/doctype/quotation_item/quotation_item.json @@ -73,7 +73,7 @@ "label": "Image", "permlevel": 0, "precision": "", - "print_hide": 1 + "print_hide": 0 }, { "fieldname": "image_view", @@ -81,7 +81,8 @@ "label": "Image View", "options": "image", "permlevel": 0, - "precision": "" + "precision": "", + "print_hide": 1 }, { "fieldname": "quantity_and_rate", @@ -388,7 +389,7 @@ ], "idx": 1, "istable": 1, - "modified": "2015-03-23 00:48:08.477241", + "modified": "2015-05-14 14:51:21.557189", "modified_by": "Administrator", "module": "Selling", "name": "Quotation Item", diff --git a/erpnext/selling/doctype/sales_order_item/sales_order_item.json b/erpnext/selling/doctype/sales_order_item/sales_order_item.json index 7e8d7a4c39..a0c8c2abe1 100644 --- a/erpnext/selling/doctype/sales_order_item/sales_order_item.json +++ b/erpnext/selling/doctype/sales_order_item/sales_order_item.json @@ -82,7 +82,7 @@ "label": "Image", "permlevel": 0, "precision": "", - "print_hide": 1 + "print_hide": 0 }, { "fieldname": "image_view", @@ -90,7 +90,8 @@ "label": "Image View", "options": "image", "permlevel": 0, - "precision": "" + "precision": "", + "print_hide": 1 }, { "fieldname": "quantity_and_rate", @@ -496,7 +497,7 @@ ], "idx": 1, "istable": 1, - "modified": "2015-05-07 08:45:19.554719", + "modified": "2015-05-14 14:51:46.978580", "modified_by": "Administrator", "module": "Selling", "name": "Sales Order Item", diff --git a/erpnext/stock/doctype/delivery_note_item/delivery_note_item.json b/erpnext/stock/doctype/delivery_note_item/delivery_note_item.json index d0933fbe07..d09e7ad819 100644 --- a/erpnext/stock/doctype/delivery_note_item/delivery_note_item.json +++ b/erpnext/stock/doctype/delivery_note_item/delivery_note_item.json @@ -88,7 +88,7 @@ "label": "Image", "permlevel": 0, "precision": "", - "print_hide": 1 + "print_hide": 0 }, { "fieldname": "image_view", @@ -96,7 +96,8 @@ "label": "Image View", "options": "image", "permlevel": 0, - "precision": "" + "precision": "", + "print_hide": 1 }, { "fieldname": "quantity_and_rate", @@ -521,7 +522,7 @@ ], "idx": 1, "istable": 1, - "modified": "2015-03-23 12:21:17.028911", + "modified": "2015-05-14 14:52:20.610748", "modified_by": "Administrator", "module": "Stock", "name": "Delivery Note Item", diff --git a/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json b/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json index 56ac8bf115..7a2b9ae29d 100755 --- a/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json +++ b/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json @@ -71,7 +71,7 @@ "label": "Image", "permlevel": 0, "precision": "", - "print_hide": 1 + "print_hide": 0 }, { "fieldname": "image_view", @@ -79,7 +79,8 @@ "label": "Image View", "options": "image", "permlevel": 0, - "precision": "" + "precision": "", + "print_hide": 1 }, { "fieldname": "received_and_accepted", @@ -640,7 +641,7 @@ ], "idx": 1, "istable": 1, - "modified": "2015-03-23 15:19:26.294450", + "modified": "2015-05-14 14:54:02.462587", "modified_by": "Administrator", "module": "Stock", "name": "Purchase Receipt Item", diff --git a/erpnext/templates/print_formats/includes/item_table_description.html b/erpnext/templates/print_formats/includes/item_table_description.html index 39fe75eaa4..f4c3d2c639 100644 --- a/erpnext/templates/print_formats/includes/item_table_description.html +++ b/erpnext/templates/print_formats/includes/item_table_description.html @@ -1,4 +1,4 @@ -{% if doc.in_format_data("image") and doc.get("image") -%} +{% if doc.in_format_data("image") and doc.get("image") and not doc.is_print_hide("image")-%}