From e2c3f7ab14c3043891f62cbf9f75ca99b235bbcd Mon Sep 17 00:00:00 2001 From: nabinhait Date: Tue, 22 Jul 2014 18:16:21 +0530 Subject: [PATCH] Added help in landed cost voucher --- .../landed_cost_voucher.js | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/erpnext/stock/doctype/landed_cost_voucher/landed_cost_voucher.js b/erpnext/stock/doctype/landed_cost_voucher/landed_cost_voucher.js index 207b12b910..6101074282 100644 --- a/erpnext/stock/doctype/landed_cost_voucher/landed_cost_voucher.js +++ b/erpnext/stock/doctype/landed_cost_voucher/landed_cost_voucher.js @@ -36,6 +36,35 @@ erpnext.stock.LandedCostVoucher = erpnext.stock.StockController.extend({ }, + refresh: function() { + var help_content = ['', + '', + '
', + '

', + __('Notes'), + ':

', + '
    ', + '
  • ', + __("Charges will be distributed proportionately based on item amount"), + '
  • ', + '
  • ', + __("Remove item if charges is not applicable to that item"), + '
  • ', + '
  • ', + __("Charges are updated in Purchase Receipt against each item"), + '
  • ', + '
  • ', + __("Item valuation rate is recalculated considering landed cost voucher amount"), + '
  • ', + '
  • ', + __("Stock Ledger Entries and GL Entries are reposted for the selected Purchase Receipts"), + '
  • ', + '
', + '
'].join("\n"); + + set_field_options("landed_cost_help", help_content); + }, + get_items_from_purchase_receipts: function() { var me = this; if(!this.frm.doc.landed_cost_purchase_receipts.length) {