Merge pull request #4621 from neilLasrado/develop
Fixed time log overlap validation. Fixed test case in time log
diff --git a/erpnext/accounts/doctype/payment_gateway/payment_gateway.json b/erpnext/accounts/doctype/payment_gateway/payment_gateway.json
index 9b48066..3f1da8f 100644
--- a/erpnext/accounts/doctype/payment_gateway/payment_gateway.json
+++ b/erpnext/accounts/doctype/payment_gateway/payment_gateway.json
@@ -37,13 +37,13 @@
"hide_heading": 0,
"hide_toolbar": 0,
"idx": 0,
- "in_create": 0,
+ "in_create": 1,
"in_dialog": 0,
"is_submittable": 0,
"issingle": 0,
"istable": 0,
"max_attachments": 0,
- "modified": "2015-12-29 12:04:17.371619",
+ "modified": "2016-01-18 03:58:22.588834",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Payment Gateway",
@@ -111,7 +111,7 @@
"write": 0
}
],
- "read_only": 0,
+ "read_only": 1,
"read_only_onload": 0,
"sort_field": "modified",
"sort_order": "DESC"
diff --git a/erpnext/accounts/doctype/payment_gateway_account/payment_gateway_account.json b/erpnext/accounts/doctype/payment_gateway_account/payment_gateway_account.json
index c3a4772..579c2c2 100644
--- a/erpnext/accounts/doctype/payment_gateway_account/payment_gateway_account.json
+++ b/erpnext/accounts/doctype/payment_gateway_account/payment_gateway_account.json
@@ -12,22 +12,23 @@
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
- "fieldname": "gateway_acount_details",
- "fieldtype": "Section Break",
+ "fieldname": "gateway",
+ "fieldtype": "Link",
"hidden": 0,
"ignore_user_permissions": 0,
"in_filter": 0,
"in_list_view": 0,
- "label": "Gateway Acount Details",
+ "label": "Payment Gateway",
"length": 0,
"no_copy": 0,
+ "options": "Payment Gateway",
"permlevel": 0,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
- "reqd": 0,
+ "reqd": 1,
"search_index": 0,
"set_only_once": 0,
"unique": 0
@@ -60,23 +61,21 @@
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
- "fieldname": "gateway",
- "fieldtype": "Link",
+ "fieldname": "column_break_4",
+ "fieldtype": "Column Break",
"hidden": 0,
"ignore_user_permissions": 0,
"in_filter": 0,
"in_list_view": 0,
- "label": "Gateway",
"length": 0,
"no_copy": 0,
- "options": "Payment Gateway",
"permlevel": 0,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
- "reqd": 1,
+ "reqd": 0,
"search_index": 0,
"set_only_once": 0,
"unique": 0
@@ -141,7 +140,7 @@
"ignore_user_permissions": 0,
"in_filter": 0,
"in_list_view": 0,
- "label": "Payment Request Message",
+ "label": "",
"length": 0,
"no_copy": 0,
"permlevel": 0,
@@ -159,12 +158,14 @@
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
+ "default": "Please click on the link below to make your payment",
"fieldname": "message",
"fieldtype": "Text Editor",
"hidden": 0,
"ignore_user_permissions": 0,
"in_filter": 0,
"in_list_view": 0,
+ "label": "Default Payment Request Message",
"length": 0,
"no_copy": 0,
"permlevel": 0,
@@ -182,6 +183,7 @@
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
+ "default": "Click here to make a payment",
"fieldname": "payment_url_message",
"fieldtype": "Data",
"hidden": 0,
@@ -236,7 +238,7 @@
"issingle": 0,
"istable": 0,
"max_attachments": 0,
- "modified": "2016-01-11 05:55:41.117089",
+ "modified": "2016-01-18 03:53:50.534673",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Payment Gateway Account",
diff --git a/erpnext/accounts/doctype/payment_request/payment_request.js b/erpnext/accounts/doctype/payment_request/payment_request.js
index b28a889..b519dee 100644
--- a/erpnext/accounts/doctype/payment_request/payment_request.js
+++ b/erpnext/accounts/doctype/payment_request/payment_request.js
@@ -13,31 +13,22 @@
set_field_options("print_format", r.message["print_format"])
}
})
- }
+ }
})
frappe.ui.form.on("Payment Request", "refresh", function(frm) {
frm.add_custom_button(__('Resend Payment Email'), function(){
frappe.call({
- method:"erpnext.accounts.doctype.payment_request.payment_request.resend_payment_email",
+ method: "erpnext.accounts.doctype.payment_request.payment_request.resend_payment_email",
args: {"docname": frm.doc.name},
freeze: true,
freeze_message: __("Sending"),
- callback:function(r){
+ callback: function(r){
if(!r.exc) {
- frappe.msgprint(__("Message Sent"))
+ frappe.msgprint(__("Message Sent"));
}
}
- })
- })
-
- frm.add_custom_button(__("Show Paypal Express Payment"), function() {
- frappe.route_options = {
- "Paypal Express Payment.reference_doctype": frm.doc.doctype,
- "Paypal Express Payment.reference_docname": frm.doc.name
- };
-
- frappe.set_route("List", "Paypal Express Payment");
+ });
});
-})
+});
diff --git a/erpnext/accounts/doctype/pricing_rule/pricing_rule.json b/erpnext/accounts/doctype/pricing_rule/pricing_rule.json
index a9c7ce7..eb77ae2 100644
--- a/erpnext/accounts/doctype/pricing_rule/pricing_rule.json
+++ b/erpnext/accounts/doctype/pricing_rule/pricing_rule.json
@@ -1,8 +1,8 @@
{
"allow_copy": 0,
"allow_import": 1,
- "allow_rename": 0,
- "autoname": "PRULE.#####",
+ "allow_rename": 1,
+ "autoname": "field:title",
"creation": "2014-02-21 15:02:51",
"custom": 0,
"docstatus": 0,
@@ -24,6 +24,7 @@
"no_copy": 0,
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -47,6 +48,7 @@
"permlevel": 0,
"precision": "",
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 1,
@@ -71,6 +73,7 @@
"options": "\nItem Code\nItem Group\nBrand",
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 1,
@@ -95,6 +98,7 @@
"options": "Item",
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -119,6 +123,7 @@
"options": "Brand",
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -143,6 +148,7 @@
"options": "Item Group",
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -165,6 +171,7 @@
"permlevel": 0,
"precision": "",
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -189,6 +196,7 @@
"options": "\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20",
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -211,6 +219,7 @@
"no_copy": 0,
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -233,6 +242,7 @@
"permlevel": 0,
"precision": "",
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -255,6 +265,7 @@
"no_copy": 0,
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -277,6 +288,7 @@
"no_copy": 0,
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -299,6 +311,7 @@
"permlevel": 0,
"precision": "",
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -323,6 +336,7 @@
"options": "\nCustomer\nCustomer Group\nTerritory\nSales Partner\nCampaign\nSupplier\nSupplier Type",
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -347,6 +361,7 @@
"options": "Customer",
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -371,6 +386,7 @@
"options": "Customer Group",
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -395,6 +411,7 @@
"options": "Territory",
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -419,6 +436,7 @@
"options": "Sales Partner",
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -443,6 +461,7 @@
"options": "Campaign",
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -467,6 +486,7 @@
"options": "Supplier",
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -491,6 +511,7 @@
"options": "Supplier Type",
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -513,6 +534,7 @@
"permlevel": 0,
"precision": "",
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -535,6 +557,7 @@
"no_copy": 0,
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -557,6 +580,7 @@
"permlevel": 0,
"precision": "",
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -579,6 +603,7 @@
"no_copy": 0,
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -601,6 +626,7 @@
"permlevel": 0,
"precision": "",
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -624,6 +650,7 @@
"no_copy": 0,
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -646,6 +673,7 @@
"no_copy": 0,
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -667,6 +695,7 @@
"no_copy": 0,
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -690,6 +719,7 @@
"options": "Company",
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -712,6 +742,7 @@
"no_copy": 0,
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -736,6 +767,7 @@
"options": "\nPrice\nDiscount Percentage",
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 1,
@@ -757,6 +789,7 @@
"no_copy": 0,
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -780,6 +813,7 @@
"no_copy": 0,
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -803,6 +837,7 @@
"no_copy": 0,
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -827,6 +862,7 @@
"options": "Price List",
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -850,6 +886,7 @@
"options": "Simple",
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -872,6 +909,7 @@
"no_copy": 0,
"permlevel": 0,
"print_hide": 0,
+ "print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
@@ -890,7 +928,7 @@
"issingle": 0,
"istable": 0,
"max_attachments": 0,
- "modified": "2015-11-16 06:29:51.958974",
+ "modified": "2016-01-15 04:05:11.633824",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Pricing Rule",
@@ -1001,5 +1039,5 @@
"read_only_onload": 0,
"sort_field": "modified",
"sort_order": "DESC",
- "title_field": "title"
+ "title_field": ""
}
\ No newline at end of file
diff --git a/erpnext/accounts/doctype/pricing_rule/pricing_rule.py b/erpnext/accounts/doctype/pricing_rule/pricing_rule.py
index d835e76..494e70c 100644
--- a/erpnext/accounts/doctype/pricing_rule/pricing_rule.py
+++ b/erpnext/accounts/doctype/pricing_rule/pricing_rule.py
@@ -76,7 +76,7 @@
def apply_pricing_rule(args):
"""
args = {
- "item_list": [{"doctype": "", "name": "", "item_code": "", "brand": "", "item_group": ""}, ...],
+ "items": [{"doctype": "", "name": "", "item_code": "", "brand": "", "item_group": ""}, ...],
"customer": "something",
"customer_group": "something",
"territory": "something",
@@ -101,14 +101,10 @@
# list of dictionaries
out = []
- if args.get("parenttype") == "Material Request": return out
+ if args.get("doctype") == "Material Request": return out
- if not args.transaction_type:
- args.transaction_type = "buying" if frappe.get_meta(args.parenttype).get_field("supplier") \
- else "selling"
-
- item_list = args.get("item_list")
- args.pop("item_list")
+ item_list = args.get("items")
+ args.pop("items")
for item in item_list:
args_copy = copy.deepcopy(args)
@@ -184,9 +180,12 @@
conditions = ""
+ values = {"item_code": args.get("item_code"), "brand": args.get("brand")}
+
for field in ["company", "customer", "supplier", "supplier_type", "campaign", "sales_partner"]:
if args.get(field):
conditions += " and ifnull("+field+", '') in (%("+field+")s, '')"
+ values[field] = args.get(field)
else:
conditions += " and ifnull("+field+", '') = ''"
@@ -194,12 +193,15 @@
group_condition = _get_tree_conditions(parenttype)
if group_condition:
conditions += " and " + group_condition
+
if not args.price_list: args.price_list = None
conditions += " and ifnull(for_price_list, '') in (%(price_list)s, '')"
+ values["price_list"] = args.get("price_list")
if args.get("transaction_date"):
conditions += """ and %(transaction_date)s between ifnull(valid_from, '2000-01-01')
and ifnull(valid_upto, '2500-12-31')"""
+ values['transaction_date'] = args.get('transaction_date')
item_group_condition = _get_tree_conditions("Item Group", False)
if item_group_condition: item_group_condition = " or " + item_group_condition
@@ -210,7 +212,8 @@
and {transaction_type} = 1 {conditions}
order by priority desc, name desc""".format(
item_group_condition=item_group_condition,
- transaction_type=args.transaction_type, conditions=conditions), args, as_dict=1)
+ transaction_type= "selling" if (args.customer or args.lead) else "buying",
+ conditions=conditions), values, as_dict=1)
def filter_pricing_rules(args, pricing_rules):
# filter for qty
diff --git a/erpnext/accounts/doctype/pricing_rule/test_pricing_rule.py b/erpnext/accounts/doctype/pricing_rule/test_pricing_rule.py
index 2a43814..6edfaff 100644
--- a/erpnext/accounts/doctype/pricing_rule/test_pricing_rule.py
+++ b/erpnext/accounts/doctype/pricing_rule/test_pricing_rule.py
@@ -36,7 +36,6 @@
"price_list_currency": "_Test Currency",
"plc_conversion_rate": 1,
"order_type": "Sales",
- "transaction_type": "selling",
"customer": "_Test Customer",
"doctype": "Sales Order Item",
"name": None
diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js
index 4a52541..d3a72d6 100644
--- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js
+++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js
@@ -44,7 +44,7 @@
company: cur_frm.doc.company
}
})
- });
+ }, __("Get items from"));
cur_frm.add_custom_button(__('Purchase Receipt'), function() {
frappe.model.map_current_doc({
@@ -57,7 +57,7 @@
company: cur_frm.doc.company
}
})
- });
+ }, __("Get items from"));
}
}
},
@@ -77,7 +77,7 @@
me.apply_pricing_rule();
})
},
-
+
credit_to: function() {
var me = this;
if(this.frm.doc.credit_to) {
diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js
index 3c8673c..1725b7e 100644
--- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js
+++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js
@@ -50,13 +50,13 @@
if(doc.update_stock) this.show_stock_ledger();
if(doc.docstatus==1 && !doc.is_return) {
-
+
var is_delivered_by_supplier = false;
-
+
is_delivered_by_supplier = cur_frm.doc.items.some(function(item){
return item.is_delivered_by_supplier ? true : false;
})
-
+
cur_frm.add_custom_button(doc.update_stock ? __('Sales Return') : __('Credit Note'),
this.make_sales_return, __("Make"));
cur_frm.page.set_inner_btn_group_as_primary(__("Make"));
@@ -70,12 +70,12 @@
});
if(!from_delivery_note && !is_delivered_by_supplier) {
- cur_frm.add_custom_button(__('Delivery'), cur_frm.cscript['Make Delivery Note'], __("Make"));
+ cur_frm.add_custom_button(__('Delivery'), cur_frm.cscript['Delivery Note'], __("Make"));
}
}
if(doc.outstanding_amount!=0 && !cint(doc.is_return)) {
- cur_frm.add_custom_button(__('Make Payment Request'), this.make_payment_request, __("Make"));
+ cur_frm.add_custom_button(__('Payment Request'), this.make_payment_request, __("Make"));
cur_frm.add_custom_button(__('Payment'), cur_frm.cscript.make_bank_entry, __("Make"));
}
@@ -106,7 +106,7 @@
},
sales_order_btn: function() {
- this.$sales_order_btn = cur_frm.add_custom_button(__('From Sales Order'),
+ this.$sales_order_btn = cur_frm.add_custom_button(__('Sales Order'),
function() {
frappe.model.map_current_doc({
method: "erpnext.selling.doctype.sales_order.sales_order.make_sales_invoice",
@@ -119,11 +119,11 @@
company: cur_frm.doc.company
}
})
- }, __("From"));
+ }, __("Get items from"));
},
delivery_note_btn: function() {
- this.$delivery_note_btn = cur_frm.add_custom_button(__('From Delivery Note'),
+ this.$delivery_note_btn = cur_frm.add_custom_button(__('Delivery Note'),
function() {
frappe.model.map_current_doc({
method: "erpnext.stock.doctype.delivery_note.delivery_note.make_sales_invoice",
@@ -139,7 +139,7 @@
};
}
});
- }, __("From"));
+ }, __("Get items from"));
},
tc_name: function() {
@@ -437,9 +437,11 @@
})
if(cur_frm.doc.is_pos) {
- cur_frm.msgbox = frappe.msgprint('<a class="btn btn-primary" \
- onclick="cur_frm.print_preview.printit(true)" style="margin-right: 5px;">Print</a>\
- <a class="btn btn-default" href="#Form/Sales Invoice/New Sales Invoice">New</a>');
+ cur_frm.msgbox = frappe.msgprint(format('<a class="btn btn-primary" \
+ onclick="cur_frm.print_preview.printit(true)" style="margin-right: 5px;">{0}</a>\
+ <a class="btn btn-default" href="javascript:new_doc(cur_frm.doctype);">{1}</a>', [
+ __('Print'), __('New')
+ ]));
} else if(cint(frappe.boot.notification_settings.sales_invoice)) {
cur_frm.email_doc(frappe.boot.notification_settings.sales_invoice_message);
diff --git a/erpnext/buying/doctype/purchase_common/purchase_common.js b/erpnext/buying/doctype/purchase_common/purchase_common.js
index 85ce5b4..c856e28 100644
--- a/erpnext/buying/doctype/purchase_common/purchase_common.js
+++ b/erpnext/buying/doctype/purchase_common/purchase_common.js
@@ -169,7 +169,7 @@
var me = this;
this.frm.add_custom_button(__("Product Bundle"), function() {
erpnext.buying.get_items_from_product_bundle(me.frm);
- }, __("From"));
+ }, __("Get items from"));
}
});
diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.js b/erpnext/buying/doctype/purchase_order/purchase_order.js
index db7a544..e23b0d4 100644
--- a/erpnext/buying/doctype/purchase_order/purchase_order.js
+++ b/erpnext/buying/doctype/purchase_order/purchase_order.js
@@ -37,7 +37,7 @@
}
cur_frm.set_df_property("drop_ship", "hidden", !is_drop_ship);
-
+
if(doc.docstatus == 1 && !in_list(["Stopped", "Closed", "Delivered"], doc.status)) {
if (this.frm.has_perm("submit")) {
if(flt(doc.per_billed, 2) < 100 || doc.per_received < 100) {
@@ -47,25 +47,23 @@
cur_frm.add_custom_button(__('Close'), this.close_purchase_order, __("Status"));
}
-
+
if(is_drop_ship && doc.status!="Delivered"){
cur_frm.add_custom_button(__('Delivered'),
this.delivered_by_supplier, __("Status"));
-
+
cur_frm.page.set_inner_btn_group_as_primary(__("Status"));
}
} else if(doc.docstatus===0) {
- cur_frm.add_custom_button(__('Get Last Purchase Rate'), this.get_last_purchase_rate);
-
cur_frm.cscript.add_from_mappers();
}
-
+
if(doc.docstatus == 1 && in_list(["Stopped", "Closed", "Delivered"], doc.status)) {
if (this.frm.has_perm("submit")) {
cur_frm.add_custom_button(__('Re-open'), this.unstop_purchase_order, __("Status"));
}
}
-
+
if(doc.docstatus == 1 && !in_list(["Stopped", "Closed"], doc.status)) {
if(flt(doc.per_received, 2) < 100 && allow_receipt) {
cur_frm.add_custom_button(__('Receive'), this.make_purchase_receipt, __("Make"));
@@ -79,15 +77,25 @@
if(flt(doc.per_billed, 2) < 100)
cur_frm.add_custom_button(__('Invoice'),
this.make_purchase_invoice, __("Make"));
-
+
if(flt(doc.per_billed)==0 && doc.status != "Delivered") {
cur_frm.add_custom_button(__('Payment'), cur_frm.cscript.make_bank_entry, __("Make"));
}
cur_frm.page.set_inner_btn_group_as_primary(__("Make"));
-
+
}
},
+ get_items_from_open_material_requests: function() {
+ frappe.model.map_current_doc({
+ method: "erpnext.stock.doctype.material_request.material_request.make_purchase_order_based_on_supplier",
+ source_name: this.frm.doc.supplier,
+ get_query_filters: {
+ docstatus: ["!=", 2],
+ }
+ });
+ },
+
make_stock_entry: function() {
var items = $.map(cur_frm.doc.items, function(d) { return d.bom ? d.item_code : false; });
var me = this;
@@ -144,7 +152,7 @@
company: cur_frm.doc.company
}
})
- }, __("From"));
+ }, __("Add items from"));
cur_frm.add_custom_button(__('Supplier Quotation'),
function() {
@@ -157,18 +165,8 @@
company: cur_frm.doc.company
}
})
- }, __("From"));
+ }, __("Add items from"));
- cur_frm.add_custom_button(__('Supplier'),
- function() {
- frappe.model.map_current_doc({
- method: "erpnext.stock.doctype.material_request.material_request.make_purchase_order_based_on_supplier",
- source_doctype: "Supplier",
- get_query_filters: {
- docstatus: ["!=", 2],
- }
- })
- }, __("For"));
},
tc_name: function() {
@@ -209,12 +207,13 @@
delivered_by_supplier: function(){
cur_frm.cscript.update_status('Deliver', 'Delivered')
},
-
+
get_last_purchase_rate: function() {
frappe.call({
"method": "get_last_purchase_rate",
"doc": cur_frm.doc,
callback: function(r, rt) {
+ cur_frm.dirty();
cur_frm.cscript.calculate_taxes_and_totals();
}
})
@@ -267,54 +266,12 @@
}
}
-cur_frm.pformat.indent_no = function(doc, cdt, cdn){
- //function to make row of table
-
- var make_row = function(title,val1, val2, bold){
- var bstart = '<b>'; var bend = '</b>';
-
- return '<tr><td style="width:39%;">'+(bold?bstart:'')+title+(bold?bend:'')+'</td>'
- +'<td style="width:61%;text-align:left;">'+val1+(val2?' ('+dateutil.str_to_user(val2)+')':'')+'</td>'
- +'</tr>'
- }
-
- out ='';
-
- var cl = doc.items || [];
-
- // outer table
- var out='<div><table class="noborder" style="width:100%"><tr><td style="width: 50%"></td><td>';
-
- // main table
- out +='<table class="noborder" style="width:100%">';
-
- // add rows
- if(cl.length){
- prevdoc_list = new Array();
- for(var i=0;i<cl.length;i++){
- if(cl[i].prevdoc_doctype == 'Material Request' && cl[i].prevdoc_docname && prevdoc_list.indexOf(cl[i].prevdoc_docname) == -1) {
- prevdoc_list.push(cl[i].prevdoc_docname);
- if(prevdoc_list.length ==1)
- out += make_row(cl[i].prevdoc_doctype, cl[i].prevdoc_docname, null,0);
- else
- out += make_row('', cl[i].prevdoc_docname,null,0);
- }
- }
- }
-
- out +='</table></td></tr></table></div>';
-
- return out;
-}
-
cur_frm.cscript.on_submit = function(doc, cdt, cdn) {
if(cint(frappe.boot.notification_settings.purchase_order)) {
cur_frm.email_doc(frappe.boot.notification_settings.purchase_order_message);
}
}
-
-
cur_frm.cscript.schedule_date = function(doc, cdt, cdn) {
erpnext.utils.copy_value_in_all_row(doc, cdt, cdn, "items", "schedule_date");
}
diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.json b/erpnext/buying/doctype/purchase_order/purchase_order.json
index 88e317e..277229a 100644
--- a/erpnext/buying/doctype/purchase_order/purchase_order.json
+++ b/erpnext/buying/doctype/purchase_order/purchase_order.json
@@ -115,6 +115,31 @@
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
+ "depends_on": "eval:doc.supplier && doc.docstatus===0 && !(doc.items && doc.items.length)",
+ "fieldname": "get_items_from_open_material_requests",
+ "fieldtype": "Button",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Get Items from Open Material Requests",
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0
+ },
+ {
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
"default": "No",
"fieldname": "is_subcontracted",
"fieldtype": "Select",
@@ -851,6 +876,31 @@
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
+ "depends_on": "eval:doc.docstatus===0 && (doc.items && doc.items.length)",
+ "fieldname": "get_last_purchase_rate",
+ "fieldtype": "Button",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Get last purchase rate",
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0
+ },
+ {
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
"fieldname": "sb_last_purchase",
"fieldtype": "Section Break",
"hidden": 0,
@@ -2458,7 +2508,7 @@
"issingle": 0,
"istable": 0,
"max_attachments": 0,
- "modified": "2015-12-17 16:18:39.096762",
+ "modified": "2016-01-15 04:13:35.179163",
"modified_by": "Administrator",
"module": "Buying",
"name": "Purchase Order",
diff --git a/erpnext/buying/doctype/supplier/supplier.js b/erpnext/buying/doctype/supplier/supplier.js
index 375d4d2..136514a 100644
--- a/erpnext/buying/doctype/supplier/supplier.js
+++ b/erpnext/buying/doctype/supplier/supplier.js
@@ -1,24 +1,44 @@
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
-cur_frm.cscript.refresh = function(doc, dt, dn) {
- cur_frm.cscript.make_dashboard(doc);
+frappe.ui.form.on("Supplier", {
+ refresh: function(frm) {
+ frm.cscript.make_dashboard(frm.doc);
- if(frappe.defaults.get_default("supp_master_name")!="Naming Series") {
- cur_frm.toggle_display("naming_series", false);
- } else {
- erpnext.toggle_naming_series();
- }
+ if(frappe.defaults.get_default("supp_master_name")!="Naming Series") {
+ frm.toggle_display("naming_series", false);
+ } else {
+ erpnext.toggle_naming_series();
+ }
- if(doc.__islocal){
- hide_field(['address_html','contact_html']);
- erpnext.utils.clear_address_and_contact(cur_frm);
- }
- else{
- unhide_field(['address_html','contact_html']);
- erpnext.utils.render_address_and_contact(cur_frm)
- }
-}
+ if(frm.doc.__islocal){
+ hide_field(['address_html','contact_html']);
+ erpnext.utils.clear_address_and_contact(frm);
+ }
+ else {
+ unhide_field(['address_html','contact_html']);
+ erpnext.utils.render_address_and_contact(frm);
+ }
+
+ frm.events.add_custom_buttons(frm);
+ },
+ add_custom_buttons: function(frm) {
+ ["Supplier Quotation", "Purchase Order", "Purchase Receipt", "Purchase Invoice"].forEach(function(doctype, i) {
+ if(frappe.model.can_read(doctype)) {
+ frm.add_custom_button(__(doctype), function() {
+ frappe.route_options = {"supplier": frm.doc.name};
+ frappe.set_route("List", doctype);
+ }, __("View"));
+ }
+ if(frappe.model.can_create(doctype)) {
+ frm.add_custom_button(__(doctype), function() {
+ frappe.route_options = {"supplier": frm.doc.name};
+ new_doc(doctype);
+ }, __("Make"));
+ }
+ });
+ },
+});
cur_frm.cscript.make_dashboard = function(doc) {
cur_frm.dashboard.reset();
diff --git a/erpnext/buying/doctype/supplier_quotation/supplier_quotation.js b/erpnext/buying/doctype/supplier_quotation/supplier_quotation.js
index 8922048..2e314e0 100644
--- a/erpnext/buying/doctype/supplier_quotation/supplier_quotation.js
+++ b/erpnext/buying/doctype/supplier_quotation/supplier_quotation.js
@@ -27,7 +27,7 @@
company: cur_frm.doc.company
}
})
- }, __("From"));
+ }, __("Get items from"));
}
},
diff --git a/erpnext/config/learn.py b/erpnext/config/learn.py
index dcb682d..426449b 100644
--- a/erpnext/config/learn.py
+++ b/erpnext/config/learn.py
@@ -135,7 +135,7 @@
{
"type": "help",
"label": _("Product Bundle"),
- "youtube_id": "yk-7kPrRyRRc"
+ "youtube_id": "yk3kPrRyRRc"
},
{
"type": "help",
diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py
index 861ec8e..c3da6b2 100644
--- a/erpnext/controllers/accounts_controller.py
+++ b/erpnext/controllers/accounts_controller.py
@@ -133,13 +133,13 @@
def set_missing_item_details(self):
"""set missing item values"""
from erpnext.stock.get_item_details import get_item_details
-
+
if self.doctype == "Purchase Invoice":
auto_accounting_for_stock = cint(frappe.defaults.get_global_default("auto_accounting_for_stock"))
if auto_accounting_for_stock:
stock_not_billed_account = self.get_company_default("stock_received_but_not_billed")
-
+
stock_items = self.get_stock_items()
if hasattr(self, "items"):
@@ -151,6 +151,10 @@
if item.get("item_code"):
args = parent_dict.copy()
args.update(item.as_dict())
+
+ args["doctype"] = parent_dict.get("doctype")
+ args["name"] = parent_dict.get("name")
+
if not args.get("transaction_date"):
args["transaction_date"] = args.get("posting_date")
@@ -178,13 +182,13 @@
if item.price_list_rate:
item.rate = flt(item.price_list_rate *
(1.0 - (flt(item.discount_percentage) / 100.0)), item.precision("rate"))
-
+
if self.doctype == "Purchase Invoice":
if auto_accounting_for_stock and item.item_code in stock_items \
and self.is_opening == 'No' \
- and (not item.po_detail or not frappe.db.get_value("Purchase Order Item",
+ and (not item.po_detail or not frappe.db.get_value("Purchase Order Item",
item.po_detail, "delivered_by_supplier")):
-
+
item.expense_account = stock_not_billed_account
item.cost_center = None
diff --git a/erpnext/crm/doctype/lead/lead.js b/erpnext/crm/doctype/lead/lead.js
index 25d7588..be3cd82 100644
--- a/erpnext/crm/doctype/lead/lead.js
+++ b/erpnext/crm/doctype/lead/lead.js
@@ -29,7 +29,7 @@
if(!this.frm.doc.__islocal && this.frm.doc.__onload && !this.frm.doc.__onload.is_customer) {
this.frm.add_custom_button(__("Customer"), this.create_customer, __("Make"));
this.frm.add_custom_button(__("Opportunity"), this.create_opportunity, __("Make"));
- this.frm.add_custom_button(__("Make Quotation"), this.make_quotation, __("Make"));
+ this.frm.add_custom_button(__("Quotation"), this.make_quotation, __("Make"));
cur_frm.page.set_inner_btn_group_as_primary(__("Make"));
}
@@ -53,7 +53,7 @@
frm: cur_frm
})
},
-
+
make_quotation: function() {
frappe.model.open_mapped_doc({
method: "erpnext.crm.doctype.lead.lead.make_quotation",
diff --git a/erpnext/crm/doctype/opportunity/opportunity.js b/erpnext/crm/doctype/opportunity/opportunity.js
index b6abdaf..af4e387 100644
--- a/erpnext/crm/doctype/opportunity/opportunity.js
+++ b/erpnext/crm/doctype/opportunity/opportunity.js
@@ -92,13 +92,13 @@
}, __("Status"));
}
}
-
+
if(doc.status!=="Lost") {
if(doc.status!=="Quotation") {
- cur_frm.add_custom_button(__('Opportunity Lost'),
- cur_frm.cscript['Declare Opportunity Lost'], __("Mark"));
+ cur_frm.add_custom_button(__('Lost'),
+ cur_frm.cscript['Declare Opportunity Lost'], __("Status"));
}
-
+
cur_frm.add_custom_button(__('Quotation'),cur_frm.cscript.create_quotation, __("Make"));
cur_frm.page.set_inner_btn_group_as_primary(__("Make"));
}
diff --git a/erpnext/crm/doctype/opportunity/opportunity.py b/erpnext/crm/doctype/opportunity/opportunity.py
index 866b982..a21ebde 100644
--- a/erpnext/crm/doctype/opportunity/opportunity.py
+++ b/erpnext/crm/doctype/opportunity/opportunity.py
@@ -9,6 +9,7 @@
from erpnext.setup.utils import get_exchange_rate
from erpnext.utilities.transaction_base import TransactionBase
from erpnext.accounts.party import get_party_account_currency
+from erpnext.stock.get_item_details import apply_price_list
subject_field = "title"
sender_field = "contact_email"
@@ -192,6 +193,8 @@
quotation.currency = party_account_currency or company_currency
quotation.conversion_rate = exchange_rate
+ quotation.update(apply_price_list(quotation.as_dict(), as_doc = True))
+
quotation.run_method("set_missing_values")
quotation.run_method("calculate_taxes_and_totals")
diff --git a/erpnext/docs/current/api/stock/erpnext.stock.get_item_details.html b/erpnext/docs/current/api/stock/erpnext.stock.get_item_details.html
index 8724808..bce01a4 100644
--- a/erpnext/docs/current/api/stock/erpnext.stock.get_item_details.html
+++ b/erpnext/docs/current/api/stock/erpnext.stock.get_item_details.html
@@ -23,23 +23,34 @@
<a name="erpnext.stock.get_item_details.apply_price_list" href="#erpnext.stock.get_item_details.apply_price_list" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.stock.get_item_details.<b>apply_price_list</b>
- <i class="text-muted">(args)</i>
+ <i class="text-muted">(args, as_doc=False)</i>
</p>
- <div class="docs-attr-desc"><p>args = {
- "item<em>list": [{"doctype": "", "name": "", "item</em>code": "", "brand": "", "item<em>group": ""}, ...],
- "conversion</em>rate": 1.0,
- "selling<em>price</em>list": None,
- "price<em>list</em>currency": None,
- "plc<em>conversion</em>rate": 1.0,
- "parenttype": "",
- "parent": "",
+ <div class="docs-attr-desc"><p>Apply pricelist on a document-like dict object and return as
+{'parent': dict, 'children': list}</p>
+
+<p><strong>Parameters:</strong></p>
+
+<ul>
+<li><strong><code>args</code></strong> - See below</li>
+<li><p><strong><code>as_doc</code></strong> - Updates value in the passed dict</p>
+
+<p>args = {
+ "doctype": "",
+ "name": "",
+ "items": [{"doctype": "", "name": "", "item<em>code": "", "brand": "", "item</em>group": ""}, ...],
+ "conversion<em>rate": 1.0,
+ "selling</em>price<em>list": None,
+ "price</em>list<em>currency": None,
+ "plc</em>conversion<em>rate": 1.0,
+ "doctype": "",
+ "name": "",
"supplier": None,
- "transaction<em>date": None,
- "conversion</em>rate": 1.0,
- "buying<em>price</em>list": None,
- "transaction<em>type": "selling",
+ "transaction</em>date": None,
+ "conversion<em>rate": 1.0,
+ "buying</em>price<em>list": None,
"ignore</em>pricing_rule": 0/1
-}</p>
+}</p></li>
+</ul>
</div>
<br>
@@ -251,16 +262,15 @@
"selling<em>price</em>list": None,
"price<em>list</em>currency": None,
"plc<em>conversion</em>rate": 1.0,
- "parenttype": "",
- "parent": "",
+ "doctype": "",
+ "name": "",
"supplier": None,
"transaction<em>date": None,
"conversion</em>rate": 1.0,
"buying<em>price</em>list": None,
"is<em>subcontracted": "Yes" / "No",
- "transaction</em>type": "selling",
- "ignore<em>pricing</em>rule": 0/1
- "project_name": ""
+ "ignore</em>pricing<em>rule": 0/1
+ "project</em>name": ""
}</p>
</div>
<br>
@@ -373,7 +383,7 @@
<a name="erpnext.stock.get_item_details.get_price_list_rate_for" href="#erpnext.stock.get_item_details.get_price_list_rate_for" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.stock.get_item_details.<b>get_price_list_rate_for</b>
- <i class="text-muted">(args, item_code)</i>
+ <i class="text-muted">(price_list, item_code)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
diff --git a/erpnext/docs/current/index.html b/erpnext/docs/current/index.html
index 4c021c1..01071ee 100644
--- a/erpnext/docs/current/index.html
+++ b/erpnext/docs/current/index.html
@@ -35,7 +35,7 @@
Version
</td>
<td>
- <code>6.16.4</code>
+ <code>6.17.0</code>
</td>
</tr>
</table>
diff --git a/erpnext/docs/current/models/accounts/account.html b/erpnext/docs/current/models/accounts/account.html
index 5b3103d..37c774e 100644
--- a/erpnext/docs/current/models/accounts/account.html
+++ b/erpnext/docs/current/models/accounts/account.html
@@ -582,6 +582,20 @@
<p class="docs-attr-name">
+ <a name="validate_group_or_ledger" href="#validate_group_or_ledger" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>validate_group_or_ledger</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
<a name="validate_mandatory" href="#validate_mandatory" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>validate_mandatory</b>
@@ -850,6 +864,15 @@
<li>
+<a href="https://frappe.github.io/erpnext/current/models/accounts/payment_gateway_account">Payment Gateway Account</a>
+
+</li>
+
+
+
+ <li>
+
+
<a href="https://frappe.github.io/erpnext/current/models/accounts/payment_reconciliation">Payment Reconciliation</a>
</li>
diff --git a/erpnext/docs/current/models/accounts/journal_entry.html b/erpnext/docs/current/models/accounts/journal_entry.html
index 4aab93c..fb29c5c 100644
--- a/erpnext/docs/current/models/accounts/journal_entry.html
+++ b/erpnext/docs/current/models/accounts/journal_entry.html
@@ -1215,7 +1215,7 @@
<a name="erpnext.accounts.doctype.journal_entry.journal_entry.get_default_bank_cash_account" href="#erpnext.accounts.doctype.journal_entry.journal_entry.get_default_bank_cash_account" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.accounts.doctype.journal_entry.journal_entry.<b>get_default_bank_cash_account</b>
- <i class="text-muted">(company, voucher_type, mode_of_payment=None)</i>
+ <i class="text-muted">(company, voucher_type, mode_of_payment=None, account=None)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
@@ -1321,7 +1321,7 @@
<a name="erpnext.accounts.doctype.journal_entry.journal_entry.get_payment_entry_against_invoice" href="#erpnext.accounts.doctype.journal_entry.journal_entry.get_payment_entry_against_invoice" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.accounts.doctype.journal_entry.journal_entry.<b>get_payment_entry_against_invoice</b>
- <i class="text-muted">(dt, dn)</i>
+ <i class="text-muted">(dt, dn, amount=None, journal_entry=False, bank_account=None)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
@@ -1339,7 +1339,7 @@
<a name="erpnext.accounts.doctype.journal_entry.journal_entry.get_payment_entry_against_order" href="#erpnext.accounts.doctype.journal_entry.journal_entry.get_payment_entry_against_order" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.accounts.doctype.journal_entry.journal_entry.<b>get_payment_entry_against_order</b>
- <i class="text-muted">(dt, dn)</i>
+ <i class="text-muted">(dt, dn, amount=None, journal_entry=False, bank_account=None)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
diff --git a/erpnext/docs/current/models/accounts/payment_gateway.html b/erpnext/docs/current/models/accounts/payment_gateway.html
new file mode 100644
index 0000000..9707ba6
--- /dev/null
+++ b/erpnext/docs/current/models/accounts/payment_gateway.html
@@ -0,0 +1,101 @@
+<!-- title: Payment Gateway -->
+
+
+
+
+
+<div class="dev-header">
+
+<a class="btn btn-default btn-sm" disabled style="margin-bottom: 10px;">
+ Version 6.x.x</a>
+
+
+ <a class="btn btn-default btn-sm" href="https://github.com/frappe/erpnext/tree/develop/erpnext/accounts/doctype/payment_gateway"
+ target="_blank" style="margin-left: 10px; margin-bottom: 10px;"><i class="octicon octicon-mark-github"></i> Source</a>
+
+</div>
+
+
+
+
+
+ <p><b>Table Name:</b> <code>tabPayment Gateway</code></p>
+
+
+
+
+<h3>Fields</h3>
+
+<table class="table table-bordered">
+ <thead>
+ <tr>
+ <th style="width: 5%">Sr</th>
+ <th style="width: 25%">Fieldname</th>
+ <th style="width: 20%">Type</th>
+ <th style="width: 25%">Label</th>
+ <th style="width: 25%">Options</th>
+ </tr>
+ </thead>
+ <tbody>
+
+ <tr >
+ <td>1</td>
+ <td class="danger" title="Mandatory"><code>gateway</code></td>
+ <td >
+ Data</td>
+ <td >
+ Gateway
+
+ </td>
+ <td></td>
+ </tr>
+
+ </tbody>
+</table>
+
+
+ <hr>
+ <h3>Controller</h3>
+ <h4>erpnext.accounts.doctype.payment_gateway.payment_gateway</h4>
+
+
+
+
+
+
+
+ <h3 style="font-weight: normal;">Class <b>PaymentGateway</b></h3>
+
+ <p style="padding-left: 30px;"><i>Inherits from frappe.model.document.Document</i></h4>
+
+ <div class="docs-attr-desc"><p></p>
+</div>
+ <div style="padding-left: 30px;">
+
+ </div>
+ <hr>
+
+
+
+
+
+
+ <h4>Linked In:</h4>
+ <ul>
+
+
+ <li>
+
+
+<a href="https://frappe.github.io/erpnext/current/models/accounts/payment_gateway_account">Payment Gateway Account</a>
+
+</li>
+
+
+ </ul>
+
+
+
+<!-- autodoc -->
+<!-- jinja -->
+<!-- static -->
\ No newline at end of file
diff --git a/erpnext/docs/current/models/accounts/payment_gateway_account.html b/erpnext/docs/current/models/accounts/payment_gateway_account.html
new file mode 100644
index 0000000..68d369b
--- /dev/null
+++ b/erpnext/docs/current/models/accounts/payment_gateway_account.html
@@ -0,0 +1,273 @@
+<!-- title: Payment Gateway Account -->
+
+
+
+
+
+<div class="dev-header">
+
+<a class="btn btn-default btn-sm" disabled style="margin-bottom: 10px;">
+ Version 6.x.x</a>
+
+
+ <a class="btn btn-default btn-sm" href="https://github.com/frappe/erpnext/tree/develop/erpnext/accounts/doctype/payment_gateway_account"
+ target="_blank" style="margin-left: 10px; margin-bottom: 10px;"><i class="octicon octicon-mark-github"></i> Source</a>
+
+</div>
+
+
+
+
+
+ <p><b>Table Name:</b> <code>tabPayment Gateway Account</code></p>
+
+
+
+
+<h3>Fields</h3>
+
+<table class="table table-bordered">
+ <thead>
+ <tr>
+ <th style="width: 5%">Sr</th>
+ <th style="width: 25%">Fieldname</th>
+ <th style="width: 20%">Type</th>
+ <th style="width: 25%">Label</th>
+ <th style="width: 25%">Options</th>
+ </tr>
+ </thead>
+ <tbody>
+
+ <tr class="info">
+ <td>1</td>
+ <td ><code>gateway_acount_details</code></td>
+ <td >
+ Section Break</td>
+ <td >
+ Gateway Acount Details
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>2</td>
+ <td ><code>is_default</code></td>
+ <td >
+ Check</td>
+ <td >
+ Is Default
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>3</td>
+ <td class="danger" title="Mandatory"><code>gateway</code></td>
+ <td >
+ Link</td>
+ <td >
+ Gateway
+
+ </td>
+ <td>
+
+
+
+
+<a href="https://frappe.github.io/erpnext/current/models/accounts/payment_gateway">Payment Gateway</a>
+
+
+
+ </td>
+ </tr>
+
+ <tr >
+ <td>4</td>
+ <td class="danger" title="Mandatory"><code>payment_account</code></td>
+ <td >
+ Link</td>
+ <td >
+ Payment Account
+
+ </td>
+ <td>
+
+
+
+
+<a href="https://frappe.github.io/erpnext/current/models/accounts/account">Account</a>
+
+
+
+ </td>
+ </tr>
+
+ <tr >
+ <td>5</td>
+ <td ><code>currency</code></td>
+ <td >
+ Read Only</td>
+ <td >
+ Currency
+
+ </td>
+ <td>
+ <pre>payment_account.account_currency</pre>
+ </td>
+ </tr>
+
+ <tr class="info">
+ <td>6</td>
+ <td ><code>payment_request_message</code></td>
+ <td >
+ Section Break</td>
+ <td >
+ Payment Request Message
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>7</td>
+ <td ><code>message</code></td>
+ <td >
+ Text Editor</td>
+ <td >
+
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>8</td>
+ <td ><code>payment_url_message</code></td>
+ <td >
+ Data</td>
+ <td >
+ Payment URL Message
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>9</td>
+ <td ><code>payment_success_url</code></td>
+ <td >
+ Data</td>
+ <td >
+ Payment Success URL
+
+ </td>
+ <td></td>
+ </tr>
+
+ </tbody>
+</table>
+
+
+ <hr>
+ <h3>Controller</h3>
+ <h4>erpnext.accounts.doctype.payment_gateway_account.payment_gateway_account</h4>
+
+
+
+
+
+
+
+ <h3 style="font-weight: normal;">Class <b>PaymentGatewayAccount</b></h3>
+
+ <p style="padding-left: 30px;"><i>Inherits from frappe.model.document.Document</i></h4>
+
+ <div class="docs-attr-desc"><p></p>
+</div>
+ <div style="padding-left: 30px;">
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="autoname" href="#autoname" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>autoname</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="set_as_default_if_not_set" href="#set_as_default_if_not_set" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>set_as_default_if_not_set</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="update_default_payment_gateway" href="#update_default_payment_gateway" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>update_default_payment_gateway</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="validate" href="#validate" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>validate</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+ </div>
+ <hr>
+
+
+
+
+
+
+ <h4>Linked In:</h4>
+ <ul>
+
+
+ <li>
+
+
+<a href="https://frappe.github.io/erpnext/current/models/accounts/payment_request">Payment Request</a>
+
+</li>
+
+
+ </ul>
+
+
+
+<!-- autodoc -->
+<!-- jinja -->
+<!-- static -->
\ No newline at end of file
diff --git a/erpnext/docs/current/models/accounts/payment_request.html b/erpnext/docs/current/models/accounts/payment_request.html
new file mode 100644
index 0000000..668fff8
--- /dev/null
+++ b/erpnext/docs/current/models/accounts/payment_request.html
@@ -0,0 +1,810 @@
+<!-- title: Payment Request -->
+
+
+
+
+
+<div class="dev-header">
+
+<a class="btn btn-default btn-sm" disabled style="margin-bottom: 10px;">
+ Version 6.x.x</a>
+
+
+ <a class="btn btn-default btn-sm" href="https://github.com/frappe/erpnext/tree/develop/erpnext/accounts/doctype/payment_request"
+ target="_blank" style="margin-left: 10px; margin-bottom: 10px;"><i class="octicon octicon-mark-github"></i> Source</a>
+
+</div>
+
+
+
+
+
+ <p><b>Table Name:</b> <code>tabPayment Request</code></p>
+
+
+
+
+<h3>Fields</h3>
+
+<table class="table table-bordered">
+ <thead>
+ <tr>
+ <th style="width: 5%">Sr</th>
+ <th style="width: 25%">Fieldname</th>
+ <th style="width: 20%">Type</th>
+ <th style="width: 25%">Label</th>
+ <th style="width: 25%">Options</th>
+ </tr>
+ </thead>
+ <tbody>
+
+ <tr class="info">
+ <td>1</td>
+ <td ><code>payment_details</code></td>
+ <td >
+ Section Break</td>
+ <td >
+ Payment Details
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>2</td>
+ <td ><code>amount</code></td>
+ <td >
+ Currency</td>
+ <td >
+ Amount
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>3</td>
+ <td ><code>currency</code></td>
+ <td >
+ Link</td>
+ <td >
+ Currency
+
+ </td>
+ <td>
+
+
+
+
+<a href="https://frappe.github.io/erpnext/current/models/geo/currency">Currency</a>
+
+
+
+ </td>
+ </tr>
+
+ <tr >
+ <td>4</td>
+ <td ><code>make_sales_invoice</code></td>
+ <td >
+ Check</td>
+ <td >
+ Make Sales Invoice
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>5</td>
+ <td ><code>column_break_5</code></td>
+ <td class="info">
+ Column Break</td>
+ <td >
+
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>6</td>
+ <td ><code>status</code></td>
+ <td >
+ Select</td>
+ <td >
+ Status
+
+ </td>
+ <td>
+ <pre>
+Draft
+Initiated
+Paid
+Failed
+Cancelled</pre>
+ </td>
+ </tr>
+
+ <tr class="info">
+ <td>7</td>
+ <td ><code>section_break_7</code></td>
+ <td >
+ Section Break</td>
+ <td >
+
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>8</td>
+ <td ><code>payment_gateway</code></td>
+ <td >
+ Link</td>
+ <td >
+ Payment Gateway
+
+ </td>
+ <td>
+
+
+
+
+<a href="https://frappe.github.io/erpnext/current/models/accounts/payment_gateway_account">Payment Gateway Account</a>
+
+
+
+ </td>
+ </tr>
+
+ <tr >
+ <td>9</td>
+ <td ><code>payment_success_url</code></td>
+ <td >
+ Data</td>
+ <td >
+ Payment Success URL
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>10</td>
+ <td ><code>column_break_9</code></td>
+ <td class="info">
+ Column Break</td>
+ <td >
+
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>11</td>
+ <td ><code>gateway</code></td>
+ <td >
+ Read Only</td>
+ <td >
+ Gateway
+
+ </td>
+ <td>
+ <pre>payment_gateway.gateway</pre>
+ </td>
+ </tr>
+
+ <tr >
+ <td>12</td>
+ <td ><code>payment_account</code></td>
+ <td >
+ Read Only</td>
+ <td >
+ Payment Account
+
+ </td>
+ <td>
+ <pre>payment_gateway.payment_account</pre>
+ </td>
+ </tr>
+
+ <tr class="info">
+ <td>13</td>
+ <td ><code>recipient_and_message</code></td>
+ <td >
+ Section Break</td>
+ <td >
+ Recipient and Message
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>14</td>
+ <td ><code>print_format</code></td>
+ <td >
+ Select</td>
+ <td >
+ Print Format
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>15</td>
+ <td ><code>mute_email</code></td>
+ <td >
+ Check</td>
+ <td class="text-muted" title="Hidden">
+ Mute Email
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>16</td>
+ <td ><code>email_to</code></td>
+ <td >
+ Data</td>
+ <td >
+ Email To
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>17</td>
+ <td ><code>subject</code></td>
+ <td >
+ Data</td>
+ <td >
+ Subject
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>18</td>
+ <td ><code>message</code></td>
+ <td >
+ Text Editor</td>
+ <td >
+ Message
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>19</td>
+ <td ><code>payment_url_message</code></td>
+ <td >
+ Data</td>
+ <td >
+ Payment URL Message
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>20</td>
+ <td ><code>payment_url</code></td>
+ <td >
+ Data</td>
+ <td class="text-muted" title="Hidden">
+ payment_url
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr class="info">
+ <td>21</td>
+ <td ><code>reference_details</code></td>
+ <td >
+ Section Break</td>
+ <td >
+ Reference Details
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>22</td>
+ <td ><code>reference_doctype</code></td>
+ <td >
+ Link</td>
+ <td >
+ Reference Doctype
+
+ </td>
+ <td>
+
+
+
+
+<a href="https://frappe.github.io/erpnext/current/models/core/doctype">DocType</a>
+
+
+
+ </td>
+ </tr>
+
+ <tr >
+ <td>23</td>
+ <td ><code>reference_name</code></td>
+ <td >
+ Dynamic Link</td>
+ <td >
+ Reference Name
+
+ </td>
+ <td>
+ <pre>reference_doctype</pre>
+ </td>
+ </tr>
+
+ <tr >
+ <td>24</td>
+ <td ><code>amended_from</code></td>
+ <td >
+ Link</td>
+ <td >
+ Amended From
+
+ </td>
+ <td>
+
+
+
+
+<a href="https://frappe.github.io/erpnext/current/models/accounts/payment_request">Payment Request</a>
+
+
+
+ </td>
+ </tr>
+
+ </tbody>
+</table>
+
+
+ <hr>
+ <h3>Controller</h3>
+ <h4>erpnext.accounts.doctype.payment_request.payment_request</h4>
+
+
+
+
+
+
+
+ <h3 style="font-weight: normal;">Class <b>PaymentRequest</b></h3>
+
+ <p style="padding-left: 30px;"><i>Inherits from frappe.model.document.Document</i></h4>
+
+ <div class="docs-attr-desc"><p></p>
+</div>
+ <div style="padding-left: 30px;">
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="create_journal_entry" href="#create_journal_entry" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>create_journal_entry</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p>create entry</p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="get_message" href="#get_message" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>get_message</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p>return message with payment gateway link</p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="get_payment_success_url" href="#get_payment_success_url" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>get_payment_success_url</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="get_payment_url" href="#get_payment_url" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>get_payment_url</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="make_communication_entry" href="#make_communication_entry" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>make_communication_entry</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p>Make communication entry</p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="make_invoice" href="#make_invoice" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>make_invoice</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="on_cancel" href="#on_cancel" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>on_cancel</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="on_submit" href="#on_submit" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>on_submit</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="on_update_after_submit" href="#on_update_after_submit" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>on_update_after_submit</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="send_email" href="#send_email" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>send_email</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p>send email with payment link</p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="send_payment_request" href="#send_payment_request" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>send_payment_request</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="set_as_cancelled" href="#set_as_cancelled" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>set_as_cancelled</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="set_as_paid" href="#set_as_paid" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>set_as_paid</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="set_failed" href="#set_failed" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>set_failed</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="set_status" href="#set_status" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>set_status</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="validate" href="#validate" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>validate</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="validate_currency" href="#validate_currency" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>validate_currency</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="validate_payment_gateway" href="#validate_payment_gateway" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>validate_payment_gateway</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="validate_payment_gateway_account" href="#validate_payment_gateway_account" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>validate_payment_gateway_account</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="validate_payment_request" href="#validate_payment_request" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>validate_payment_request</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+ </div>
+ <hr>
+
+
+
+
+
+
+ <p><span class="label label-info">Public API</span>
+ <br><code>/api/method/erpnext.accounts.doctype.payment_request.payment_request.generate_payment_request</code>
+ </p>
+ <p class="docs-attr-name">
+ <a name="erpnext.accounts.doctype.payment_request.payment_request.generate_payment_request" href="#erpnext.accounts.doctype.payment_request.payment_request.generate_payment_request" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ erpnext.accounts.doctype.payment_request.payment_request.<b>generate_payment_request</b>
+ <i class="text-muted">(name)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="erpnext.accounts.doctype.payment_request.payment_request.get_amount" href="#erpnext.accounts.doctype.payment_request.payment_request.get_amount" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ erpnext.accounts.doctype.payment_request.payment_request.<b>get_amount</b>
+ <i class="text-muted">(ref_doc, dt)</i>
+ </p>
+ <div class="docs-attr-desc"><p>get amount based on doctype</p>
+</div>
+ <br>
+
+
+
+
+
+
+
+ <p class="docs-attr-name">
+ <a name="erpnext.accounts.doctype.payment_request.payment_request.get_gateway_details" href="#erpnext.accounts.doctype.payment_request.payment_request.get_gateway_details" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ erpnext.accounts.doctype.payment_request.payment_request.<b>get_gateway_details</b>
+ <i class="text-muted">(args)</i>
+ </p>
+ <div class="docs-attr-desc"><p>return gateway and payment account of default payment gateway</p>
+</div>
+ <br>
+
+
+
+
+
+
+ <p><span class="label label-info">Public API</span>
+ <br><code>/api/method/erpnext.accounts.doctype.payment_request.payment_request.get_print_format_list</code>
+ </p>
+ <p class="docs-attr-name">
+ <a name="erpnext.accounts.doctype.payment_request.payment_request.get_print_format_list" href="#erpnext.accounts.doctype.payment_request.payment_request.get_print_format_list" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ erpnext.accounts.doctype.payment_request.payment_request.<b>get_print_format_list</b>
+ <i class="text-muted">(ref_doctype)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+
+ <p><span class="label label-info">Public API</span>
+ <br><code>/api/method/erpnext.accounts.doctype.payment_request.payment_request.make_payment_request</code>
+ </p>
+ <p class="docs-attr-name">
+ <a name="erpnext.accounts.doctype.payment_request.payment_request.make_payment_request" href="#erpnext.accounts.doctype.payment_request.payment_request.make_payment_request" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ erpnext.accounts.doctype.payment_request.payment_request.<b>make_payment_request</b>
+ <i class="text-muted">()</i>
+ </p>
+ <div class="docs-attr-desc"><p>Make payment request</p>
+</div>
+ <br>
+
+
+
+
+
+
+ <p><span class="label label-info">Public API</span>
+ <br><code>/api/method/erpnext.accounts.doctype.payment_request.payment_request.resend_payment_email</code>
+ </p>
+ <p class="docs-attr-name">
+ <a name="erpnext.accounts.doctype.payment_request.payment_request.resend_payment_email" href="#erpnext.accounts.doctype.payment_request.payment_request.resend_payment_email" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ erpnext.accounts.doctype.payment_request.payment_request.<b>resend_payment_email</b>
+ <i class="text-muted">(docname)</i>
+ </p>
+ <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
+</div>
+ <br>
+
+
+
+
+
+
+ <h4>Linked In:</h4>
+ <ul>
+
+
+ <li>
+
+
+<a href="https://frappe.github.io/erpnext/current/models/accounts/payment_request">Payment Request</a>
+
+</li>
+
+
+ </ul>
+
+
+
+<!-- autodoc -->
+<!-- jinja -->
+<!-- static -->
\ No newline at end of file
diff --git a/erpnext/docs/current/models/accounts/pricing_rule.html b/erpnext/docs/current/models/accounts/pricing_rule.html
index 67e561f..5539128 100644
--- a/erpnext/docs/current/models/accounts/pricing_rule.html
+++ b/erpnext/docs/current/models/accounts/pricing_rule.html
@@ -814,21 +814,21 @@
<i class="text-muted">(args)</i>
</p>
<div class="docs-attr-desc"><p>args = {
- "item<em>list": [{"doctype": "", "name": "", "item</em>code": "", "brand": "", "item<em>group": ""}, ...],
+ "items": [{"doctype": "", "name": "", "item<em>code": "", "brand": "", "item</em>group": ""}, ...],
"customer": "something",
- "customer</em>group": "something",
+ "customer<em>group": "something",
"territory": "something",
"supplier": "something",
- "supplier<em>type": "something",
+ "supplier</em>type": "something",
"currency": "something",
- "conversion</em>rate": "something",
- "price<em>list": "something",
- "plc</em>conversion<em>rate": "something",
+ "conversion<em>rate": "something",
+ "price</em>list": "something",
+ "plc<em>conversion</em>rate": "something",
"company": "something",
- "transaction</em>date": "something",
+ "transaction<em>date": "something",
"campaign": "something",
- "sales<em>partner": "something",
- "ignore</em>pricing_rule": "something"
+ "sales</em>partner": "something",
+ "ignore<em>pricing</em>rule": "something"
}</p>
</div>
<br>
diff --git a/erpnext/docs/current/models/buying/purchase_order.html b/erpnext/docs/current/models/buying/purchase_order.html
index bbf1dce..c627191 100644
--- a/erpnext/docs/current/models/buying/purchase_order.html
+++ b/erpnext/docs/current/models/buying/purchase_order.html
@@ -101,6 +101,18 @@
<tr >
<td>5</td>
+ <td ><code>get_items_from_open_material_requests</code></td>
+ <td >
+ Button</td>
+ <td >
+ Get Items from Open Material Requests
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>6</td>
<td ><code>is_subcontracted</code></td>
<td >
Select</td>
@@ -115,7 +127,7 @@
</tr>
<tr >
- <td>6</td>
+ <td>7</td>
<td ><code>supplier_name</code></td>
<td >
Data</td>
@@ -127,7 +139,7 @@
</tr>
<tr >
- <td>7</td>
+ <td>8</td>
<td ><code>address_display</code></td>
<td >
Small Text</td>
@@ -139,7 +151,7 @@
</tr>
<tr >
- <td>8</td>
+ <td>9</td>
<td ><code>contact_display</code></td>
<td >
Small Text</td>
@@ -151,7 +163,7 @@
</tr>
<tr >
- <td>9</td>
+ <td>10</td>
<td ><code>contact_mobile</code></td>
<td >
Small Text</td>
@@ -163,7 +175,7 @@
</tr>
<tr >
- <td>10</td>
+ <td>11</td>
<td ><code>contact_email</code></td>
<td >
Small Text</td>
@@ -175,7 +187,7 @@
</tr>
<tr >
- <td>11</td>
+ <td>12</td>
<td ><code>column_break1</code></td>
<td class="info">
Column Break</td>
@@ -187,7 +199,7 @@
</tr>
<tr >
- <td>12</td>
+ <td>13</td>
<td class="danger" title="Mandatory"><code>transaction_date</code></td>
<td >
Date</td>
@@ -199,7 +211,7 @@
</tr>
<tr >
- <td>13</td>
+ <td>14</td>
<td ><code>amended_from</code></td>
<td >
Link</td>
@@ -220,7 +232,7 @@
</tr>
<tr >
- <td>14</td>
+ <td>15</td>
<td class="danger" title="Mandatory"><code>company</code></td>
<td >
Link</td>
@@ -241,7 +253,7 @@
</tr>
<tr class="info">
- <td>15</td>
+ <td>16</td>
<td ><code>drop_ship</code></td>
<td >
Section Break</td>
@@ -253,7 +265,7 @@
</tr>
<tr >
- <td>16</td>
+ <td>17</td>
<td ><code>customer</code></td>
<td >
Link</td>
@@ -274,7 +286,7 @@
</tr>
<tr >
- <td>17</td>
+ <td>18</td>
<td ><code>customer_name</code></td>
<td >
Data</td>
@@ -286,7 +298,7 @@
</tr>
<tr >
- <td>18</td>
+ <td>19</td>
<td ><code>column_break_19</code></td>
<td class="info">
Column Break</td>
@@ -298,7 +310,7 @@
</tr>
<tr >
- <td>19</td>
+ <td>20</td>
<td ><code>customer_address</code></td>
<td >
Link</td>
@@ -319,7 +331,7 @@
</tr>
<tr >
- <td>20</td>
+ <td>21</td>
<td ><code>customer_contact_person</code></td>
<td >
Link</td>
@@ -340,7 +352,7 @@
</tr>
<tr >
- <td>21</td>
+ <td>22</td>
<td ><code>customer_address_display</code></td>
<td >
Small Text</td>
@@ -352,7 +364,7 @@
</tr>
<tr >
- <td>22</td>
+ <td>23</td>
<td ><code>customer_contact_display</code></td>
<td >
Small Text</td>
@@ -364,7 +376,7 @@
</tr>
<tr >
- <td>23</td>
+ <td>24</td>
<td ><code>customer_contact_mobile</code></td>
<td >
Small Text</td>
@@ -376,7 +388,7 @@
</tr>
<tr >
- <td>24</td>
+ <td>25</td>
<td ><code>customer_contact_email</code></td>
<td >
Small Text</td>
@@ -388,7 +400,7 @@
</tr>
<tr class="info">
- <td>25</td>
+ <td>26</td>
<td ><code>currency_and_price_list</code></td>
<td >
Section Break</td>
@@ -402,7 +414,7 @@
</tr>
<tr >
- <td>26</td>
+ <td>27</td>
<td class="danger" title="Mandatory"><code>currency</code></td>
<td >
Link</td>
@@ -423,7 +435,7 @@
</tr>
<tr >
- <td>27</td>
+ <td>28</td>
<td class="danger" title="Mandatory"><code>conversion_rate</code></td>
<td >
Float</td>
@@ -435,7 +447,7 @@
</tr>
<tr >
- <td>28</td>
+ <td>29</td>
<td ><code>cb_price_list</code></td>
<td class="info">
Column Break</td>
@@ -447,7 +459,7 @@
</tr>
<tr >
- <td>29</td>
+ <td>30</td>
<td ><code>buying_price_list</code></td>
<td >
Link</td>
@@ -468,7 +480,7 @@
</tr>
<tr >
- <td>30</td>
+ <td>31</td>
<td ><code>price_list_currency</code></td>
<td >
Link</td>
@@ -489,7 +501,7 @@
</tr>
<tr >
- <td>31</td>
+ <td>32</td>
<td ><code>plc_conversion_rate</code></td>
<td >
Float</td>
@@ -501,7 +513,7 @@
</tr>
<tr >
- <td>32</td>
+ <td>33</td>
<td ><code>ignore_pricing_rule</code></td>
<td >
Check</td>
@@ -513,7 +525,7 @@
</tr>
<tr class="info">
- <td>33</td>
+ <td>34</td>
<td ><code>items_section</code></td>
<td >
Section Break</td>
@@ -527,7 +539,7 @@
</tr>
<tr >
- <td>34</td>
+ <td>35</td>
<td ><code>items</code></td>
<td >
Table</td>
@@ -547,8 +559,20 @@
</td>
</tr>
+ <tr >
+ <td>36</td>
+ <td ><code>get_last_purchase_rate</code></td>
+ <td >
+ Button</td>
+ <td >
+ Get last purchase rate
+
+ </td>
+ <td></td>
+ </tr>
+
<tr class="info">
- <td>35</td>
+ <td>37</td>
<td ><code>sb_last_purchase</code></td>
<td >
Section Break</td>
@@ -560,7 +584,7 @@
</tr>
<tr >
- <td>36</td>
+ <td>38</td>
<td ><code>base_total</code></td>
<td >
Currency</td>
@@ -574,7 +598,7 @@
</tr>
<tr >
- <td>37</td>
+ <td>39</td>
<td ><code>base_net_total</code></td>
<td >
Currency</td>
@@ -588,7 +612,7 @@
</tr>
<tr >
- <td>38</td>
+ <td>40</td>
<td ><code>column_break_26</code></td>
<td class="info">
Column Break</td>
@@ -600,7 +624,7 @@
</tr>
<tr >
- <td>39</td>
+ <td>41</td>
<td ><code>total</code></td>
<td >
Currency</td>
@@ -614,7 +638,7 @@
</tr>
<tr >
- <td>40</td>
+ <td>42</td>
<td ><code>net_total</code></td>
<td >
Currency</td>
@@ -628,7 +652,7 @@
</tr>
<tr class="info">
- <td>41</td>
+ <td>43</td>
<td ><code>taxes_section</code></td>
<td >
Section Break</td>
@@ -642,7 +666,7 @@
</tr>
<tr >
- <td>42</td>
+ <td>44</td>
<td ><code>taxes_and_charges</code></td>
<td >
Link</td>
@@ -663,7 +687,7 @@
</tr>
<tr >
- <td>43</td>
+ <td>45</td>
<td ><code>taxes</code></td>
<td >
Table</td>
@@ -684,7 +708,7 @@
</tr>
<tr >
- <td>44</td>
+ <td>46</td>
<td ><code>other_charges_calculation</code></td>
<td >
HTML</td>
@@ -696,7 +720,7 @@
</tr>
<tr class="info">
- <td>45</td>
+ <td>47</td>
<td ><code>totals</code></td>
<td >
Section Break</td>
@@ -710,7 +734,7 @@
</tr>
<tr >
- <td>46</td>
+ <td>48</td>
<td ><code>base_taxes_and_charges_added</code></td>
<td >
Currency</td>
@@ -724,7 +748,7 @@
</tr>
<tr >
- <td>47</td>
+ <td>49</td>
<td ><code>base_taxes_and_charges_deducted</code></td>
<td >
Currency</td>
@@ -738,7 +762,7 @@
</tr>
<tr >
- <td>48</td>
+ <td>50</td>
<td ><code>base_total_taxes_and_charges</code></td>
<td >
Currency</td>
@@ -752,7 +776,7 @@
</tr>
<tr >
- <td>49</td>
+ <td>51</td>
<td ><code>column_break_39</code></td>
<td class="info">
Column Break</td>
@@ -764,7 +788,7 @@
</tr>
<tr >
- <td>50</td>
+ <td>52</td>
<td ><code>taxes_and_charges_added</code></td>
<td >
Currency</td>
@@ -778,7 +802,7 @@
</tr>
<tr >
- <td>51</td>
+ <td>53</td>
<td ><code>taxes_and_charges_deducted</code></td>
<td >
Currency</td>
@@ -792,7 +816,7 @@
</tr>
<tr >
- <td>52</td>
+ <td>54</td>
<td ><code>total_taxes_and_charges</code></td>
<td >
Currency</td>
@@ -806,7 +830,7 @@
</tr>
<tr class="info">
- <td>53</td>
+ <td>55</td>
<td ><code>discount_section</code></td>
<td >
Section Break</td>
@@ -818,7 +842,7 @@
</tr>
<tr >
- <td>54</td>
+ <td>56</td>
<td ><code>apply_discount_on</code></td>
<td >
Select</td>
@@ -834,7 +858,7 @@
</tr>
<tr >
- <td>55</td>
+ <td>57</td>
<td ><code>base_discount_amount</code></td>
<td >
Currency</td>
@@ -848,7 +872,7 @@
</tr>
<tr >
- <td>56</td>
+ <td>58</td>
<td ><code>column_break_45</code></td>
<td class="info">
Column Break</td>
@@ -860,7 +884,7 @@
</tr>
<tr >
- <td>57</td>
+ <td>59</td>
<td ><code>additional_discount_percentage</code></td>
<td >
Float</td>
@@ -872,7 +896,7 @@
</tr>
<tr >
- <td>58</td>
+ <td>60</td>
<td ><code>discount_amount</code></td>
<td >
Currency</td>
@@ -886,7 +910,7 @@
</tr>
<tr class="info">
- <td>59</td>
+ <td>61</td>
<td ><code>totals_section</code></td>
<td >
Section Break</td>
@@ -898,7 +922,7 @@
</tr>
<tr >
- <td>60</td>
+ <td>62</td>
<td ><code>base_grand_total</code></td>
<td >
Currency</td>
@@ -912,7 +936,7 @@
</tr>
<tr >
- <td>61</td>
+ <td>63</td>
<td ><code>base_in_words</code></td>
<td >
Data</td>
@@ -925,7 +949,7 @@
</tr>
<tr >
- <td>62</td>
+ <td>64</td>
<td ><code>base_rounded_total</code></td>
<td >
Currency</td>
@@ -939,7 +963,7 @@
</tr>
<tr >
- <td>63</td>
+ <td>65</td>
<td ><code>advance_paid</code></td>
<td >
Currency</td>
@@ -951,7 +975,7 @@
</tr>
<tr >
- <td>64</td>
+ <td>66</td>
<td ><code>column_break4</code></td>
<td class="info">
Column Break</td>
@@ -963,7 +987,7 @@
</tr>
<tr >
- <td>65</td>
+ <td>67</td>
<td ><code>grand_total</code></td>
<td >
Currency</td>
@@ -977,7 +1001,7 @@
</tr>
<tr >
- <td>66</td>
+ <td>68</td>
<td ><code>in_words</code></td>
<td >
Data</td>
@@ -989,7 +1013,7 @@
</tr>
<tr class="info">
- <td>67</td>
+ <td>69</td>
<td ><code>terms_section_break</code></td>
<td >
Section Break</td>
@@ -1003,7 +1027,7 @@
</tr>
<tr >
- <td>68</td>
+ <td>70</td>
<td ><code>tc_name</code></td>
<td >
Link</td>
@@ -1024,7 +1048,7 @@
</tr>
<tr >
- <td>69</td>
+ <td>71</td>
<td ><code>terms</code></td>
<td >
Text Editor</td>
@@ -1036,7 +1060,7 @@
</tr>
<tr class="info">
- <td>70</td>
+ <td>72</td>
<td ><code>contact_section</code></td>
<td >
Section Break</td>
@@ -1050,7 +1074,7 @@
</tr>
<tr >
- <td>71</td>
+ <td>73</td>
<td ><code>supplier_address</code></td>
<td >
Link</td>
@@ -1071,7 +1095,7 @@
</tr>
<tr >
- <td>72</td>
+ <td>74</td>
<td ><code>cb_contact</code></td>
<td class="info">
Column Break</td>
@@ -1083,7 +1107,7 @@
</tr>
<tr >
- <td>73</td>
+ <td>75</td>
<td ><code>contact_person</code></td>
<td >
Link</td>
@@ -1104,7 +1128,7 @@
</tr>
<tr class="info">
- <td>74</td>
+ <td>76</td>
<td ><code>more_info</code></td>
<td >
Section Break</td>
@@ -1116,7 +1140,7 @@
</tr>
<tr >
- <td>75</td>
+ <td>77</td>
<td class="danger" title="Mandatory"><code>status</code></td>
<td >
Select</td>
@@ -1139,7 +1163,7 @@
</tr>
<tr >
- <td>76</td>
+ <td>78</td>
<td class="danger" title="Mandatory"><code>fiscal_year</code></td>
<td >
Link</td>
@@ -1160,7 +1184,7 @@
</tr>
<tr >
- <td>77</td>
+ <td>79</td>
<td ><code>ref_sq</code></td>
<td >
Data</td>
@@ -1172,7 +1196,7 @@
</tr>
<tr >
- <td>78</td>
+ <td>80</td>
<td ><code>column_break_74</code></td>
<td class="info">
Column Break</td>
@@ -1184,7 +1208,7 @@
</tr>
<tr >
- <td>79</td>
+ <td>81</td>
<td ><code>per_received</code></td>
<td >
Percent</td>
@@ -1196,7 +1220,7 @@
</tr>
<tr >
- <td>80</td>
+ <td>82</td>
<td ><code>per_billed</code></td>
<td >
Percent</td>
@@ -1208,7 +1232,7 @@
</tr>
<tr class="info">
- <td>81</td>
+ <td>83</td>
<td ><code>column_break5</code></td>
<td >
Section Break</td>
@@ -1220,7 +1244,7 @@
</tr>
<tr >
- <td>82</td>
+ <td>84</td>
<td ><code>letter_head</code></td>
<td >
Link</td>
@@ -1241,7 +1265,7 @@
</tr>
<tr >
- <td>83</td>
+ <td>85</td>
<td ><code>select_print_heading</code></td>
<td >
Link</td>
@@ -1262,7 +1286,7 @@
</tr>
<tr class="info">
- <td>84</td>
+ <td>86</td>
<td ><code>raw_material_details</code></td>
<td >
Section Break</td>
@@ -1276,7 +1300,7 @@
</tr>
<tr >
- <td>85</td>
+ <td>87</td>
<td ><code>supplied_items</code></td>
<td >
Table</td>
@@ -1297,7 +1321,7 @@
</tr>
<tr class="info">
- <td>86</td>
+ <td>88</td>
<td ><code>recurring_order</code></td>
<td >
Section Break</td>
@@ -1311,7 +1335,7 @@
</tr>
<tr >
- <td>87</td>
+ <td>89</td>
<td ><code>column_break</code></td>
<td class="info">
Column Break</td>
@@ -1323,7 +1347,7 @@
</tr>
<tr >
- <td>88</td>
+ <td>90</td>
<td ><code>is_recurring</code></td>
<td >
Check</td>
@@ -1335,7 +1359,7 @@
</tr>
<tr >
- <td>89</td>
+ <td>91</td>
<td ><code>recurring_type</code></td>
<td >
Select</td>
@@ -1352,7 +1376,7 @@
</tr>
<tr >
- <td>90</td>
+ <td>92</td>
<td ><code>from_date</code></td>
<td >
Date</td>
@@ -1365,7 +1389,7 @@
</tr>
<tr >
- <td>91</td>
+ <td>93</td>
<td ><code>to_date</code></td>
<td >
Date</td>
@@ -1378,7 +1402,7 @@
</tr>
<tr >
- <td>92</td>
+ <td>94</td>
<td ><code>repeat_on_day_of_month</code></td>
<td >
Int</td>
@@ -1391,7 +1415,7 @@
</tr>
<tr >
- <td>93</td>
+ <td>95</td>
<td ><code>end_date</code></td>
<td >
Date</td>
@@ -1404,7 +1428,7 @@
</tr>
<tr >
- <td>94</td>
+ <td>96</td>
<td ><code>column_break83</code></td>
<td class="info">
Column Break</td>
@@ -1416,7 +1440,7 @@
</tr>
<tr >
- <td>95</td>
+ <td>97</td>
<td ><code>next_date</code></td>
<td >
Date</td>
@@ -1429,7 +1453,7 @@
</tr>
<tr >
- <td>96</td>
+ <td>98</td>
<td ><code>recurring_id</code></td>
<td >
Data</td>
@@ -1441,7 +1465,7 @@
</tr>
<tr >
- <td>97</td>
+ <td>99</td>
<td ><code>notification_email_address</code></td>
<td >
Small Text</td>
@@ -1454,7 +1478,7 @@
</tr>
<tr >
- <td>98</td>
+ <td>100</td>
<td ><code>recurring_print_format</code></td>
<td >
Link</td>
diff --git a/erpnext/docs/current/models/projects/time_log.html b/erpnext/docs/current/models/projects/time_log.html
index 2276314..b37e0b5 100644
--- a/erpnext/docs/current/models/projects/time_log.html
+++ b/erpnext/docs/current/models/projects/time_log.html
@@ -40,110 +40,6 @@
<tr >
<td>1</td>
- <td class="danger" title="Mandatory"><code>naming_series</code></td>
- <td >
- Select</td>
- <td >
- Series
-
- </td>
- <td>
- <pre>TL-</pre>
- </td>
- </tr>
-
- <tr >
- <td>2</td>
- <td ><code>column_break_2</code></td>
- <td class="info">
- Column Break</td>
- <td >
-
-
- </td>
- <td></td>
- </tr>
-
- <tr >
- <td>3</td>
- <td ><code>status</code></td>
- <td >
- Select</td>
- <td >
- Status
-
- </td>
- <td>
- <pre>Draft
-Submitted
-Batched for Billing
-Billed
-Cancelled</pre>
- </td>
- </tr>
-
- <tr class="info">
- <td>4</td>
- <td ><code>section_break_4</code></td>
- <td >
- Section Break</td>
- <td >
-
-
- </td>
- <td></td>
- </tr>
-
- <tr >
- <td>5</td>
- <td class="danger" title="Mandatory"><code>from_time</code></td>
- <td >
- Datetime</td>
- <td >
- From Time
-
- </td>
- <td></td>
- </tr>
-
- <tr >
- <td>6</td>
- <td ><code>hours</code></td>
- <td >
- Float</td>
- <td >
- Hours
-
- </td>
- <td></td>
- </tr>
-
- <tr >
- <td>7</td>
- <td class="danger" title="Mandatory"><code>to_time</code></td>
- <td >
- Datetime</td>
- <td >
- To Time
-
- </td>
- <td></td>
- </tr>
-
- <tr >
- <td>8</td>
- <td ><code>column_break_8</code></td>
- <td class="info">
- Column Break</td>
- <td >
-
-
- </td>
- <td></td>
- </tr>
-
- <tr >
- <td>9</td>
<td ><code>activity_type</code></td>
<td >
Link</td>
@@ -164,7 +60,21 @@
</tr>
<tr >
- <td>10</td>
+ <td>2</td>
+ <td class="danger" title="Mandatory"><code>naming_series</code></td>
+ <td >
+ Select</td>
+ <td >
+ Series
+
+ </td>
+ <td>
+ <pre>TL-</pre>
+ </td>
+ </tr>
+
+ <tr >
+ <td>3</td>
<td ><code>project</code></td>
<td >
Link</td>
@@ -185,7 +95,7 @@
</tr>
<tr >
- <td>11</td>
+ <td>4</td>
<td ><code>task</code></td>
<td >
Link</td>
@@ -205,8 +115,110 @@
</td>
</tr>
+ <tr >
+ <td>5</td>
+ <td ><code>status</code></td>
+ <td >
+ Select</td>
+ <td >
+ Status
+
+ </td>
+ <td>
+ <pre>Draft
+Submitted
+Batched for Billing
+Billed
+Cancelled</pre>
+ </td>
+ </tr>
+
+ <tr >
+ <td>6</td>
+ <td ><code>column_break_2</code></td>
+ <td class="info">
+ Column Break</td>
+ <td >
+
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>7</td>
+ <td class="danger" title="Mandatory"><code>from_time</code></td>
+ <td >
+ Datetime</td>
+ <td >
+ From Time
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>8</td>
+ <td ><code>hours</code></td>
+ <td >
+ Float</td>
+ <td >
+ Hours
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>9</td>
+ <td class="danger" title="Mandatory"><code>to_time</code></td>
+ <td >
+ Datetime</td>
+ <td >
+ To Time
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>10</td>
+ <td ><code>billable</code></td>
+ <td >
+ Check</td>
+ <td >
+ Billable
+
+ </td>
+ <td></td>
+ </tr>
+
<tr class="info">
+ <td>11</td>
+ <td ><code>section_break_7</code></td>
+ <td >
+ Section Break</td>
+ <td >
+
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
<td>12</td>
+ <td ><code>note</code></td>
+ <td >
+ Text Editor</td>
+ <td >
+ Note
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr class="info">
+ <td>13</td>
<td ><code>section_break_12</code></td>
<td >
Section Break</td>
@@ -218,7 +230,7 @@
</tr>
<tr >
- <td>13</td>
+ <td>14</td>
<td ><code>user</code></td>
<td >
Link</td>
@@ -239,7 +251,7 @@
</tr>
<tr >
- <td>14</td>
+ <td>15</td>
<td ><code>employee</code></td>
<td >
Link</td>
@@ -260,7 +272,7 @@
</tr>
<tr >
- <td>15</td>
+ <td>16</td>
<td ><code>column_break_3</code></td>
<td class="info">
Column Break</td>
@@ -272,7 +284,7 @@
</tr>
<tr >
- <td>16</td>
+ <td>17</td>
<td ><code>for_manufacturing</code></td>
<td >
Check</td>
@@ -283,18 +295,6 @@
<td></td>
</tr>
- <tr >
- <td>17</td>
- <td ><code>billable</code></td>
- <td >
- Check</td>
- <td >
- Billable
-
- </td>
- <td></td>
- </tr>
-
<tr class="info">
<td>18</td>
<td ><code>section_break_11</code></td>
@@ -409,30 +409,6 @@
<tr class="info">
<td>25</td>
- <td ><code>section_break_7</code></td>
- <td >
- Section Break</td>
- <td >
-
-
- </td>
- <td></td>
- </tr>
-
- <tr >
- <td>26</td>
- <td ><code>note</code></td>
- <td >
- Text Editor</td>
- <td >
- Note
-
- </td>
- <td></td>
- </tr>
-
- <tr class="info">
- <td>27</td>
<td ><code>section_break_24</code></td>
<td >
Section Break</td>
@@ -444,7 +420,7 @@
</tr>
<tr >
- <td>28</td>
+ <td>26</td>
<td ><code>costing_rate</code></td>
<td >
Currency</td>
@@ -456,7 +432,7 @@
</tr>
<tr >
- <td>29</td>
+ <td>27</td>
<td ><code>costing_amount</code></td>
<td >
Currency</td>
@@ -468,7 +444,7 @@
</tr>
<tr >
- <td>30</td>
+ <td>28</td>
<td ><code>column_break_25</code></td>
<td class="info">
Column Break</td>
@@ -480,7 +456,7 @@
</tr>
<tr >
- <td>31</td>
+ <td>29</td>
<td ><code>billing_rate</code></td>
<td >
Currency</td>
@@ -492,7 +468,19 @@
</tr>
<tr >
- <td>32</td>
+ <td>30</td>
+ <td ><code>additional_cost</code></td>
+ <td >
+ Currency</td>
+ <td >
+ Additional Cost
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>31</td>
<td ><code>billing_amount</code></td>
<td >
Currency</td>
@@ -505,7 +493,7 @@
</tr>
<tr class="info">
- <td>33</td>
+ <td>32</td>
<td ><code>section_break_29</code></td>
<td >
Section Break</td>
@@ -517,7 +505,7 @@
</tr>
<tr >
- <td>34</td>
+ <td>33</td>
<td ><code>time_log_batch</code></td>
<td >
Link</td>
@@ -539,7 +527,7 @@
</tr>
<tr >
- <td>35</td>
+ <td>34</td>
<td ><code>sales_invoice</code></td>
<td >
Link</td>
@@ -561,7 +549,7 @@
</tr>
<tr >
- <td>36</td>
+ <td>35</td>
<td ><code>amended_from</code></td>
<td >
Link</td>
@@ -582,7 +570,7 @@
</tr>
<tr >
- <td>37</td>
+ <td>36</td>
<td ><code>title</code></td>
<td >
Data</td>
diff --git a/erpnext/docs/current/models/selling/sales_order.html b/erpnext/docs/current/models/selling/sales_order.html
index d3b0e68..aadc664 100644
--- a/erpnext/docs/current/models/selling/sales_order.html
+++ b/erpnext/docs/current/models/selling/sales_order.html
@@ -1846,6 +1846,20 @@
<p class="docs-attr-name">
+ <a name="set_indicator" href="#set_indicator" class="text-muted small">
+ <i class="icon-link small" style="color: #ccc;"></i></a>
+ <b>set_indicator</b>
+ <i class="text-muted">(self)</i>
+ </p>
+ <div class="docs-attr-desc"><p>Set indicator for portal</p>
+</div>
+ <br>
+
+
+
+
+
+ <p class="docs-attr-name">
<a name="update_delivery_status" href="#update_delivery_status" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>update_delivery_status</b>
@@ -2260,7 +2274,7 @@
<a name="erpnext.selling.doctype.sales_order.sales_order.make_sales_invoice" href="#erpnext.selling.doctype.sales_order.sales_order.make_sales_invoice" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
erpnext.selling.doctype.sales_order.sales_order.<b>make_sales_invoice</b>
- <i class="text-muted">(source_name, target_doc=None)</i>
+ <i class="text-muted">(source_name, target_doc=None, ignore_permissions=False)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
diff --git a/erpnext/docs/current/models/stock/purchase_receipt.html b/erpnext/docs/current/models/stock/purchase_receipt.html
index dda3979..3a4ea2c 100644
--- a/erpnext/docs/current/models/stock/purchase_receipt.html
+++ b/erpnext/docs/current/models/stock/purchase_receipt.html
@@ -409,7 +409,7 @@
<td >
Button</td>
<td >
- Get Current Stock
+ Get current stock
</td>
<td>
diff --git a/erpnext/docs/current/models/stock/purchase_receipt_item.html b/erpnext/docs/current/models/stock/purchase_receipt_item.html
index 1ee6b14..2404597 100644
--- a/erpnext/docs/current/models/stock/purchase_receipt_item.html
+++ b/erpnext/docs/current/models/stock/purchase_receipt_item.html
@@ -584,48 +584,6 @@
<tr >
<td>40</td>
- <td ><code>project_name</code></td>
- <td >
- Link</td>
- <td >
- Project Name
-
- </td>
- <td>
-
-
-
-
-<a href="https://frappe.github.io/erpnext/current/models/projects/project">Project</a>
-
-
-
- </td>
- </tr>
-
- <tr >
- <td>41</td>
- <td ><code>cost_center</code></td>
- <td >
- Link</td>
- <td >
- Cost Center
-
- </td>
- <td>
-
-
-
-
-<a href="https://frappe.github.io/erpnext/current/models/accounts/cost_center">Cost Center</a>
-
-
-
- </td>
- </tr>
-
- <tr >
- <td>42</td>
<td ><code>qa_no</code></td>
<td >
Link</td>
@@ -646,6 +604,39 @@
</tr>
<tr >
+ <td>41</td>
+ <td ><code>column_break_40</code></td>
+ <td class="info">
+ Column Break</td>
+ <td >
+
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>42</td>
+ <td ><code>prevdoc_docname</code></td>
+ <td >
+ Link</td>
+ <td >
+ Purchase Order
+
+ </td>
+ <td>
+
+
+
+
+<a href="https://frappe.github.io/erpnext/current/models/buying/purchase_order">Purchase Order</a>
+
+
+
+ </td>
+ </tr>
+
+ <tr >
<td>43</td>
<td ><code>schedule_date</code></td>
<td >
@@ -669,13 +660,13 @@
<td></td>
</tr>
- <tr >
+ <tr class="info">
<td>45</td>
- <td ><code>prevdoc_doctype</code></td>
+ <td ><code>section_break_45</code></td>
<td >
- Data</td>
- <td class="text-muted" title="Hidden">
- Prevdoc Doctype
+ Section Break</td>
+ <td >
+
</td>
<td></td>
@@ -683,72 +674,6 @@
<tr >
<td>46</td>
- <td ><code>prevdoc_docname</code></td>
- <td >
- Link</td>
- <td >
- Purchase Order
-
- </td>
- <td>
-
-
-
-
-<a href="https://frappe.github.io/erpnext/current/models/buying/purchase_order">Purchase Order</a>
-
-
-
- </td>
- </tr>
-
- <tr >
- <td>47</td>
- <td ><code>prevdoc_detail_docname</code></td>
- <td >
- Data</td>
- <td class="text-muted" title="Hidden">
- Purchase Order Item No
-
- </td>
- <td></td>
- </tr>
-
- <tr >
- <td>48</td>
- <td ><code>col_break5</code></td>
- <td class="info">
- Column Break</td>
- <td >
-
-
- </td>
- <td></td>
- </tr>
-
- <tr >
- <td>49</td>
- <td ><code>bom</code></td>
- <td >
- Link</td>
- <td >
- BOM
-
- </td>
- <td>
-
-
-
-
-<a href="https://frappe.github.io/erpnext/current/models/manufacturing/bom">BOM</a>
-
-
-
- </td>
- </tr>
-
- <tr >
- <td>50</td>
<td ><code>serial_no</code></td>
<td >
Text</td>
@@ -760,19 +685,7 @@
</tr>
<tr >
- <td>51</td>
- <td ><code>rejected_serial_no</code></td>
- <td >
- Text</td>
- <td >
- Rejected Serial No
-
- </td>
- <td></td>
- </tr>
-
- <tr >
- <td>52</td>
+ <td>47</td>
<td ><code>batch_no</code></td>
<td >
Link</td>
@@ -793,7 +706,142 @@
</tr>
<tr >
+ <td>48</td>
+ <td ><code>column_break_48</code></td>
+ <td class="info">
+ Column Break</td>
+ <td >
+
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>49</td>
+ <td ><code>rejected_serial_no</code></td>
+ <td >
+ Text</td>
+ <td >
+ Rejected Serial No
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr class="info">
+ <td>50</td>
+ <td ><code>section_break_50</code></td>
+ <td >
+ Section Break</td>
+ <td >
+
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>51</td>
+ <td ><code>project_name</code></td>
+ <td >
+ Link</td>
+ <td >
+ Project Name
+
+ </td>
+ <td>
+
+
+
+
+<a href="https://frappe.github.io/erpnext/current/models/projects/project">Project</a>
+
+
+
+ </td>
+ </tr>
+
+ <tr >
+ <td>52</td>
+ <td ><code>cost_center</code></td>
+ <td >
+ Link</td>
+ <td >
+ Cost Center
+
+ </td>
+ <td>
+
+
+
+
+<a href="https://frappe.github.io/erpnext/current/models/accounts/cost_center">Cost Center</a>
+
+
+
+ </td>
+ </tr>
+
+ <tr >
<td>53</td>
+ <td ><code>prevdoc_doctype</code></td>
+ <td >
+ Data</td>
+ <td class="text-muted" title="Hidden">
+ Prevdoc Doctype
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>54</td>
+ <td ><code>prevdoc_detail_docname</code></td>
+ <td >
+ Data</td>
+ <td class="text-muted" title="Hidden">
+ Purchase Order Item No
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>55</td>
+ <td ><code>col_break5</code></td>
+ <td class="info">
+ Column Break</td>
+ <td >
+
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>56</td>
+ <td ><code>bom</code></td>
+ <td >
+ Link</td>
+ <td >
+ BOM
+
+ </td>
+ <td>
+
+
+
+
+<a href="https://frappe.github.io/erpnext/current/models/manufacturing/bom">BOM</a>
+
+
+
+ </td>
+ </tr>
+
+ <tr >
+ <td>57</td>
<td ><code>billed_amt</code></td>
<td >
Currency</td>
@@ -805,7 +853,19 @@
</tr>
<tr >
- <td>54</td>
+ <td>58</td>
+ <td ><code>landed_cost_voucher_amount</code></td>
+ <td >
+ Currency</td>
+ <td >
+ Landed Cost Voucher Amount
+
+ </td>
+ <td></td>
+ </tr>
+
+ <tr >
+ <td>59</td>
<td ><code>brand</code></td>
<td >
Link</td>
@@ -826,7 +886,7 @@
</tr>
<tr >
- <td>55</td>
+ <td>60</td>
<td ><code>item_group</code></td>
<td >
Link</td>
@@ -847,7 +907,7 @@
</tr>
<tr >
- <td>56</td>
+ <td>61</td>
<td ><code>rm_supp_cost</code></td>
<td >
Currency</td>
@@ -861,7 +921,7 @@
</tr>
<tr >
- <td>57</td>
+ <td>62</td>
<td ><code>item_tax_amount</code></td>
<td >
Currency</td>
@@ -875,19 +935,7 @@
</tr>
<tr >
- <td>58</td>
- <td ><code>landed_cost_voucher_amount</code></td>
- <td >
- Currency</td>
- <td >
- Landed Cost Voucher Amount
-
- </td>
- <td></td>
- </tr>
-
- <tr >
- <td>59</td>
+ <td>63</td>
<td ><code>valuation_rate</code></td>
<td >
Currency</td>
@@ -901,7 +949,7 @@
</tr>
<tr >
- <td>60</td>
+ <td>64</td>
<td ><code>item_tax_rate</code></td>
<td >
Small Text</td>
@@ -915,7 +963,7 @@
</tr>
<tr >
- <td>61</td>
+ <td>65</td>
<td ><code>page_break</code></td>
<td >
Check</td>
diff --git a/erpnext/docs/user/index.md b/erpnext/docs/user/index.md
index 0394638..7ce09d3 100644
--- a/erpnext/docs/user/index.md
+++ b/erpnext/docs/user/index.md
@@ -1,3 +1,6 @@
# User Manual and Videos
-{index}
\ No newline at end of file
+Learn ERPNext by watching the user manual or training videos.
+
+1. [User Manual]({{docs_base_url}}/user/manual)
+1. [Help Videos]({{docs_base_url}}/user/videos/learn)
diff --git a/erpnext/docs/user/manual/en/accounts/index.txt b/erpnext/docs/user/manual/en/accounts/index.txt
index 5f1b5d5..1a1d5d5 100644
--- a/erpnext/docs/user/manual/en/accounts/index.txt
+++ b/erpnext/docs/user/manual/en/accounts/index.txt
@@ -5,6 +5,7 @@
chart-of-accounts
making-payments
advance-payment-entry
+payment-request
credit-limit
opening-entry
accounting-reports
diff --git a/erpnext/docs/user/manual/en/accounts/pyament-request.md b/erpnext/docs/user/manual/en/accounts/payment-request.md
similarity index 87%
rename from erpnext/docs/user/manual/en/accounts/pyament-request.md
rename to erpnext/docs/user/manual/en/accounts/payment-request.md
index ca696c6..68d4397 100644
--- a/erpnext/docs/user/manual/en/accounts/pyament-request.md
+++ b/erpnext/docs/user/manual/en/accounts/payment-request.md
@@ -1,4 +1,4 @@
-Payment Request will act as mediator between Payment Gateway and ERPNext. You can create payment request via Sales Order or Sales Invoice.
+Payment Request is sent via Email and will contain a link to a Payment Gateway if setup. You can create payment request via Sales Order or Sales Invoice.
- Create Payment Request via Sales Order
<img class="screenshot" alt="Payment Request" src="{{docs_base_url}}/assets/img/accounts/pr-from-so.png">
diff --git a/erpnext/manufacturing/doctype/production_order/production_order.js b/erpnext/manufacturing/doctype/production_order/production_order.js
index c4280da..ad8b776 100644
--- a/erpnext/manufacturing/doctype/production_order/production_order.js
+++ b/erpnext/manufacturing/doctype/production_order/production_order.js
@@ -61,7 +61,7 @@
set_custom_buttons: function(frm) {
var doc = frm.doc;
if (doc.docstatus === 1) {
- frm.add_custom_button(__("Show Stock Entries"), function() {
+ frm.add_custom_button(__("Stock Entries"), function() {
frappe.route_options = {
production_order: frm.doc.name
}
@@ -76,12 +76,12 @@
// opertions
if ((doc.operations || []).length) {
- frm.add_custom_button(__('Show Time Logs'), function() {
+ frm.add_custom_button(__('Time Logs'), function() {
frappe.route_options = {"production_order": frm.doc.name};
frappe.set_route("List", "Time Log");
}, __("View"));
}
-
+
if (flt(doc.material_transferred_for_manufacturing) < flt(doc.qty)) {
frm.add_custom_button(__('Transfer Materials for Manufacture'),
cur_frm.cscript['Transfer Raw Materials'], __("Stock Entry"));
diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js
index d768306..e5e0938 100644
--- a/erpnext/public/js/controllers/transaction.js
+++ b/erpnext/public/js/controllers/transaction.js
@@ -559,7 +559,7 @@
apply_pricing_rule: function(item, calculate_taxes_and_totals) {
var me = this;
var args = this._get_args(item);
- if (!(args.item_list && args.item_list.length)) {
+ if (!(args.items && args.items.length)) {
if(calculate_taxes_and_totals) me.calculate_taxes_and_totals();
return;
}
@@ -579,7 +579,7 @@
_get_args: function(item) {
var me = this;
return {
- "item_list": this._get_item_list(item),
+ "items": this._get_item_list(item),
"customer": me.frm.doc.customer,
"customer_group": me.frm.doc.customer_group,
"territory": me.frm.doc.territory,
@@ -595,8 +595,8 @@
"campaign": me.frm.doc.campaign,
"sales_partner": me.frm.doc.sales_partner,
"ignore_pricing_rule": me.frm.doc.ignore_pricing_rule,
- "parenttype": me.frm.doc.doctype,
- "parent": me.frm.doc.name
+ "doctype": me.frm.doc.doctype,
+ "name": me.frm.doc.name
};
},
@@ -654,7 +654,7 @@
apply_price_list: function(item) {
var me = this;
var args = this._get_args(item);
- if (!((args.item_list && args.item_list.length) || args.price_list)) {
+ if (!((args.items && args.items.length) || args.price_list)) {
return;
}
@@ -668,7 +668,7 @@
me.frm.set_value("plc_conversion_rate", r.message.parent.plc_conversion_rate);
me.in_apply_price_list = false;
- if(args.item_list.length) {
+ if(args.items.length) {
me._set_values_for_item_list(r.message.children);
}
}
diff --git a/erpnext/selling/doctype/customer/customer.js b/erpnext/selling/doctype/customer/customer.js
index 7bbd693..f816fe3 100644
--- a/erpnext/selling/doctype/customer/customer.js
+++ b/erpnext/selling/doctype/customer/customer.js
@@ -1,28 +1,50 @@
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
-frappe.ui.form.on("Customer", "refresh", function(frm) {
- cur_frm.cscript.setup_dashboard(frm.doc);
+frappe.ui.form.on("Customer", {
+ refresh: function(frm) {
+ frm.cscript.setup_dashboard(frm.doc);
- if(frappe.defaults.get_default("cust_master_name")!="Naming Series") {
- frm.toggle_display("naming_series", false);
- } else {
- erpnext.toggle_naming_series();
+ if(frappe.defaults.get_default("cust_master_name")!="Naming Series") {
+ frm.toggle_display("naming_series", false);
+ } else {
+ erpnext.toggle_naming_series();
+ }
+
+ frm.toggle_display(['address_html','contact_html'], !frm.doc.__islocal);
+
+ if(!frm.doc.__islocal) {
+ erpnext.utils.render_address_and_contact(frm);
+ } else {
+ erpnext.utils.clear_address_and_contact(frm);
+ }
+
+ var grid = cur_frm.get_field("sales_team").grid;
+ grid.set_column_disp("allocated_amount", false);
+ grid.set_column_disp("incentives", false);
+
+ frm.events.add_custom_buttons(frm);
+ },
+ add_custom_buttons: function(frm) {
+ ["Opportunity", "Quotation", "Sales Order", "Delivery Note", "Sales Invoice"].forEach(function(doctype, i) {
+ if(frappe.model.can_read(doctype)) {
+ frm.add_custom_button(__(doctype), function() {
+ frappe.route_options = {"customer": frm.doc.name};
+ frappe.set_route("List", doctype);
+ }, __("View"));
+ }
+ if(frappe.model.can_create(doctype)) {
+ frm.add_custom_button(__(doctype), function() {
+ frappe.route_options = {"customer": frm.doc.name};
+ new_doc(doctype);
+ }, __("Make"));
+ }
+ });
+ },
+ validate: function(frm) {
+ if(frm.doc.lead_name) frappe.model.clear_doc("Lead", frm.doc.lead_name);
}
-
- frm.toggle_display(['address_html','contact_html'], !frm.doc.__islocal);
-
- if(!frm.doc.__islocal) {
- erpnext.utils.render_address_and_contact(frm);
- } else {
- erpnext.utils.clear_address_and_contact(frm);
- }
-
- var grid = cur_frm.get_field("sales_team").grid;
- grid.set_column_disp("allocated_amount", false);
- grid.set_column_disp("incentives", false);
-
-})
+});
cur_frm.cscript.onload = function(doc, dt, dn) {
cur_frm.cscript.load_defaults(doc, dt, dn);
@@ -39,10 +61,6 @@
cur_frm.add_fetch('lead_name', 'company_name', 'customer_name');
cur_frm.add_fetch('default_sales_partner','commission_rate','default_commission_rate');
-cur_frm.cscript.validate = function(doc, dt, dn) {
- if(doc.lead_name) frappe.model.clear_doc("Lead", doc.lead_name);
-}
-
cur_frm.cscript.setup_dashboard = function(doc) {
cur_frm.dashboard.reset(doc);
if(doc.__islocal)
diff --git a/erpnext/selling/doctype/quotation/quotation.js b/erpnext/selling/doctype/quotation/quotation.js
index 8d1df4c..aad4628 100644
--- a/erpnext/selling/doctype/quotation/quotation.js
+++ b/erpnext/selling/doctype/quotation/quotation.js
@@ -20,16 +20,16 @@
if(doc.docstatus == 1 && doc.status!=='Lost') {
cur_frm.add_custom_button(__('Sales Order'),
cur_frm.cscript['Make Sales Order'], __("Make"));
-
+
if(doc.status!=="Ordered") {
cur_frm.add_custom_button(__('Lost'),
- cur_frm.cscript['Declare Order Lost'], __("Mark"));
+ cur_frm.cscript['Declare Order Lost'], __("Status"));
}
}
if (this.frm.doc.docstatus===0) {
- cur_frm.add_custom_button(__('From Opportunity'),
+ cur_frm.add_custom_button(__('Opportunity'),
function() {
frappe.model.map_current_doc({
method: "erpnext.crm.doctype.opportunity.opportunity.make_quotation",
@@ -42,7 +42,7 @@
company: cur_frm.doc.company
}
})
- }, __("From"), "btn-default");
+ }, __("Get items from"), "btn-default");
}
this.toggle_reqd_lead_customer();
diff --git a/erpnext/selling/doctype/sales_order/sales_order.js b/erpnext/selling/doctype/sales_order/sales_order.js
index a6ec617..9dae2b9 100644
--- a/erpnext/selling/doctype/sales_order/sales_order.js
+++ b/erpnext/selling/doctype/sales_order/sales_order.js
@@ -88,13 +88,13 @@
} else {
if (this.frm.has_perm("submit")) {
// un-stop
- cur_frm.add_custom_button(__('Re-open'), cur_frm.cscript['Unstop Sales Order']);
+ cur_frm.add_custom_button(__('Re-open'), cur_frm.cscript['Unstop Sales Order'], __("Status"));
}
}
}
if (this.frm.doc.docstatus===0) {
- cur_frm.add_custom_button(__('From Quotation'),
+ cur_frm.add_custom_button(__('Quotation'),
function() {
frappe.model.map_current_doc({
method: "erpnext.selling.doctype.quotation.quotation.make_sales_order",
@@ -107,7 +107,7 @@
company: cur_frm.doc.company
}
})
- });
+ }, __("Get items from"));
}
this.order_type(doc);
diff --git a/erpnext/setup/setup_wizard/setup_wizard.py b/erpnext/setup/setup_wizard/setup_wizard.py
index 081afcc..b92dcf9 100644
--- a/erpnext/setup/setup_wizard/setup_wizard.py
+++ b/erpnext/setup/setup_wizard/setup_wizard.py
@@ -112,15 +112,17 @@
def create_bank_account(args):
if args.get("bank_account"):
+ company_name = args.get('company_name').strip()
bank_account_group = frappe.db.get_value("Account",
- {"account_type": "Bank", "is_group": 1, "root_type": "Asset"})
+ {"account_type": "Bank", "is_group": 1, "root_type": "Asset",
+ "company": company_name})
if bank_account_group:
bank_account = frappe.get_doc({
"doctype": "Account",
'account_name': args.get("bank_account"),
'parent_account': bank_account_group,
'is_group':0,
- 'company':args.get('company_name').strip(),
+ 'company': company_name,
"account_type": "Bank",
})
try:
diff --git a/erpnext/stock/doctype/delivery_note/delivery_note.js b/erpnext/stock/doctype/delivery_note/delivery_note.js
index 84e9d8d..d4e7932 100644
--- a/erpnext/stock/doctype/delivery_note/delivery_note.js
+++ b/erpnext/stock/doctype/delivery_note/delivery_note.js
@@ -21,8 +21,11 @@
cur_frm.add_custom_button(__('Packing Slip'),
cur_frm.cscript['Make Packing Slip'], __("Make"));
}
- cur_frm.page.set_inner_btn_group_as_primary(__("Make"));
-
+
+ if (!doc.__islocal && doc.docstatus==1) {
+ cur_frm.page.set_inner_btn_group_as_primary(__("Make"));
+ }
+
if (this.frm.doc.docstatus===0) {
cur_frm.add_custom_button(__('Sales Order'),
function() {
@@ -38,7 +41,7 @@
company: cur_frm.doc.company
}
})
- }, __("From"));
+ }, __("Get items from"));
}
}
diff --git a/erpnext/stock/doctype/item/test_item.py b/erpnext/stock/doctype/item/test_item.py
index f8b6393..7538260 100644
--- a/erpnext/stock/doctype/item/test_item.py
+++ b/erpnext/stock/doctype/item/test_item.py
@@ -93,7 +93,6 @@
"price_list_currency": "_Test Currency",
"plc_conversion_rate": 1,
"order_type": "Sales",
- "transaction_type": "selling"
})
for key, value in to_check.iteritems():
diff --git a/erpnext/stock/doctype/material_request/material_request.js b/erpnext/stock/doctype/material_request/material_request.js
index d5df93f..0bb4815 100644
--- a/erpnext/stock/doctype/material_request/material_request.js
+++ b/erpnext/stock/doctype/material_request/material_request.js
@@ -34,23 +34,28 @@
}
if(doc.docstatus == 1 && doc.status != 'Stopped') {
- if(doc.material_request_type === "Purchase")
- cur_frm.add_custom_button(__("Make Supplier Quotation"),
- this.make_supplier_quotation, __("Make"));
-
- cur_frm.page.set_inner_btn_group_as_primary(__("Make"));
if(flt(doc.per_ordered, 2) < 100) {
+ // make
if(doc.material_request_type === "Material Transfer" && doc.status === "Submitted")
- cur_frm.add_custom_button(__("Transfer Material"), this.make_stock_entry, __("Make"));
+ cur_frm.add_custom_button(__("Transfer Material"),
+ this.make_stock_entry, __("Make"));
if(doc.material_request_type === "Material Issue" && doc.status === "Submitted")
- cur_frm.add_custom_button(__("Issue Material"), this.make_stock_entry, __("Make"));
+ cur_frm.add_custom_button(__("Issue Material"),
+ this.make_stock_entry, __("Make"));
if(doc.material_request_type === "Purchase")
- cur_frm.add_custom_button(__('Make Purchase Order'),
+ cur_frm.add_custom_button(__('Purchase Order'),
this.make_purchase_order, __("Make"));
+ if(doc.material_request_type === "Purchase")
+ cur_frm.add_custom_button(__("Supplier Quotation"),
+ this.make_supplier_quotation, __("Make"));
+
+ cur_frm.page.set_inner_btn_group_as_primary(__("Make"));
+
+ // stop
cur_frm.add_custom_button(__('Stop'),
cur_frm.cscript['Stop Material Request'], __("Status"));
@@ -70,7 +75,7 @@
company: cur_frm.doc.company
}
})
- }, __("From"));
+ }, __("Get items from"));
}
if(doc.docstatus == 1 && doc.status == 'Stopped')
diff --git a/erpnext/stock/doctype/material_request/material_request.py b/erpnext/stock/doctype/material_request/material_request.py
index 5462228..19c7415 100644
--- a/erpnext/stock/doctype/material_request/material_request.py
+++ b/erpnext/stock/doctype/material_request/material_request.py
@@ -11,7 +11,7 @@
from frappe import _
from frappe.model.mapper import get_mapped_doc
from erpnext.stock.stock_balance import update_bin_qty, get_indented_qty
-
+from erpnext.stock.get_item_details import apply_price_list
from erpnext.controllers.buying_controller import BuyingController
@@ -182,6 +182,10 @@
@frappe.whitelist()
def make_purchase_order(source_name, target_doc=None):
+ def postprocess(source, target_doc):
+ target_doc.update(apply_price_list(target_doc.as_dict(), as_doc = True))
+ set_missing_values(source, target_doc)
+
doclist = get_mapped_doc("Material Request", source_name, {
"Material Request": {
"doctype": "Purchase Order",
@@ -202,7 +206,7 @@
"postprocess": update_item,
"condition": lambda doc: doc.ordered_qty < doc.qty
}
- }, target_doc, set_missing_values)
+ }, target_doc, postprocess)
return doclist
@@ -218,11 +222,13 @@
def postprocess(source, target_doc):
target_doc.supplier = source_name
- set_missing_values(source, target_doc)
+
target_doc.set("items", [d for d in target_doc.get("items")
if d.get("item_code") in supplier_items and d.get("qty") > 0])
- return target_doc
+ target_doc.update(apply_price_list(target_doc.as_dict(), as_doc = True))
+
+ set_missing_values(source, target_doc)
for mr in material_requests:
target_doc = get_mapped_doc("Material Request", mr, {
@@ -264,6 +270,10 @@
@frappe.whitelist()
def make_supplier_quotation(source_name, target_doc=None):
+ def postprocess(source, target_doc):
+ target_doc.update(apply_price_list(target_doc.as_dict(), as_doc = True))
+ set_missing_values(source, target_doc)
+
doclist = get_mapped_doc("Material Request", source_name, {
"Material Request": {
"doctype": "Supplier Quotation",
@@ -280,7 +290,7 @@
"parenttype": "prevdoc_doctype"
}
}
- }, target_doc, set_missing_values)
+ }, target_doc, postprocess)
return doclist
diff --git a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.js b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.js
index bda14ff..d66f1a1 100644
--- a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.js
+++ b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.js
@@ -51,7 +51,7 @@
company: cur_frm.doc.company
}
})
- }, __("From"));
+ }, __("Get items from"));
}
if(this.frm.doc.docstatus == 1 && this.frm.doc.status!="Closed") {
diff --git a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.json b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.json
index f0eac39..47069ea 100755
--- a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.json
+++ b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.json
@@ -644,7 +644,7 @@
"ignore_user_permissions": 0,
"in_filter": 0,
"in_list_view": 0,
- "label": "Get Current Stock",
+ "label": "Get current stock",
"length": 0,
"no_copy": 0,
"oldfieldtype": "Button",
@@ -2302,7 +2302,7 @@
"istable": 0,
"max_attachments": 0,
"menu_index": 0,
- "modified": "2015-12-30 18:15:06.678001",
+ "modified": "2016-01-15 04:14:16.311445",
"modified_by": "Administrator",
"module": "Stock",
"name": "Purchase Receipt",
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 0032c89..ceff05a 100755
--- a/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json
+++ b/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json
@@ -1,1569 +1,1663 @@
{
- "allow_copy": 0,
- "allow_import": 0,
- "allow_rename": 0,
- "autoname": "hash",
- "creation": "2013-05-24 19:29:10",
- "custom": 0,
- "docstatus": 0,
- "doctype": "DocType",
+ "allow_copy": 0,
+ "allow_import": 0,
+ "allow_rename": 0,
+ "autoname": "hash",
+ "creation": "2013-05-24 19:29:10",
+ "custom": 0,
+ "docstatus": 0,
+ "doctype": "DocType",
+ "document_type": "Document",
"fields": [
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "barcode",
- "fieldtype": "Data",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Barcode",
- "length": 0,
- "no_copy": 0,
- "permlevel": 0,
- "precision": "",
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "barcode",
+ "fieldtype": "Data",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Barcode",
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "section_break_2",
- "fieldtype": "Section Break",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "length": 0,
- "no_copy": 0,
- "permlevel": 0,
- "precision": "",
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "section_break_2",
+ "fieldtype": "Section Break",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 1,
- "collapsible": 0,
- "fieldname": "item_code",
- "fieldtype": "Link",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 1,
- "in_list_view": 1,
- "label": "Item Code",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "item_code",
- "oldfieldtype": "Link",
- "options": "Item",
- "permlevel": 0,
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "print_width": "100px",
- "read_only": 0,
- "report_hide": 0,
- "reqd": 1,
- "search_index": 1,
- "set_only_once": 0,
- "unique": 0,
+ "allow_on_submit": 0,
+ "bold": 1,
+ "collapsible": 0,
+ "fieldname": "item_code",
+ "fieldtype": "Link",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 1,
+ "in_list_view": 1,
+ "label": "Item Code",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "item_code",
+ "oldfieldtype": "Link",
+ "options": "Item",
+ "permlevel": 0,
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "print_width": "100px",
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 1,
+ "search_index": 1,
+ "set_only_once": 0,
+ "unique": 0,
"width": "100px"
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "column_break_2",
- "fieldtype": "Column Break",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "length": 0,
- "no_copy": 0,
- "permlevel": 0,
- "precision": "",
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "column_break_2",
+ "fieldtype": "Column Break",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "item_name",
- "fieldtype": "Data",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 1,
- "label": "Item Name",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "item_name",
- "oldfieldtype": "Data",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 1,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "item_name",
+ "fieldtype": "Data",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 1,
+ "label": "Item Name",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "item_name",
+ "oldfieldtype": "Data",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 1,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 1,
- "fieldname": "section_break_4",
- "fieldtype": "Section Break",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Description",
- "length": 0,
- "no_copy": 0,
- "permlevel": 0,
- "precision": "",
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 1,
+ "fieldname": "section_break_4",
+ "fieldtype": "Section Break",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Description",
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "description",
- "fieldtype": "Text Editor",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Description",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "description",
- "oldfieldtype": "Text",
- "permlevel": 0,
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "print_width": "300px",
- "read_only": 0,
- "report_hide": 0,
- "reqd": 1,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "description",
+ "fieldtype": "Text Editor",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Description",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "description",
+ "oldfieldtype": "Text",
+ "permlevel": 0,
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "print_width": "300px",
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 1,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0,
"width": "300px"
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "col_break1",
- "fieldtype": "Column Break",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "length": 0,
- "no_copy": 0,
- "permlevel": 0,
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "col_break1",
+ "fieldtype": "Column Break",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "image",
- "fieldtype": "Attach",
- "hidden": 1,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Image",
- "length": 0,
- "no_copy": 0,
- "permlevel": 0,
- "precision": "",
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "image",
+ "fieldtype": "Attach",
+ "hidden": 1,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Image",
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "image_view",
- "fieldtype": "Image",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Image View",
- "length": 0,
- "no_copy": 0,
- "options": "image",
- "permlevel": 0,
- "precision": "",
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "image_view",
+ "fieldtype": "Image",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Image View",
+ "length": 0,
+ "no_copy": 0,
+ "options": "image",
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "received_and_accepted",
- "fieldtype": "Section Break",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Received and Accepted",
- "length": 0,
- "no_copy": 0,
- "permlevel": 0,
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "received_and_accepted",
+ "fieldtype": "Section Break",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Received and Accepted",
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 1,
- "collapsible": 0,
- "fieldname": "received_qty",
- "fieldtype": "Float",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Recd Quantity",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "received_qty",
- "oldfieldtype": "Currency",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "print_width": "100px",
- "read_only": 0,
- "report_hide": 0,
- "reqd": 1,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0,
+ "allow_on_submit": 0,
+ "bold": 1,
+ "collapsible": 0,
+ "fieldname": "received_qty",
+ "fieldtype": "Float",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Recd Quantity",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "received_qty",
+ "oldfieldtype": "Currency",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "print_width": "100px",
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 1,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0,
"width": "100px"
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "qty",
- "fieldtype": "Float",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 1,
- "label": "Accepted Quantity",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "qty",
- "oldfieldtype": "Currency",
- "permlevel": 0,
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "print_width": "100px",
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "qty",
+ "fieldtype": "Float",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 1,
+ "label": "Accepted Quantity",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "qty",
+ "oldfieldtype": "Currency",
+ "permlevel": 0,
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "print_width": "100px",
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0,
"width": "100px"
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "rejected_qty",
- "fieldtype": "Float",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Rejected Quantity",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "rejected_qty",
- "oldfieldtype": "Currency",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "print_width": "100px",
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "rejected_qty",
+ "fieldtype": "Float",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Rejected Quantity",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "rejected_qty",
+ "oldfieldtype": "Currency",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "print_width": "100px",
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0,
"width": "100px"
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "col_break2",
- "fieldtype": "Column Break",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "length": 0,
- "no_copy": 0,
- "permlevel": 0,
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "col_break2",
+ "fieldtype": "Column Break",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "uom",
- "fieldtype": "Link",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 1,
- "label": "UOM",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "uom",
- "oldfieldtype": "Link",
- "options": "UOM",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "print_width": "100px",
- "read_only": 0,
- "report_hide": 0,
- "reqd": 1,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "uom",
+ "fieldtype": "Link",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 1,
+ "label": "UOM",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "uom",
+ "oldfieldtype": "Link",
+ "options": "UOM",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "print_width": "100px",
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 1,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0,
"width": "100px"
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "stock_uom",
- "fieldtype": "Link",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 1,
- "label": "Stock UOM",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "stock_uom",
- "oldfieldtype": "Data",
- "options": "UOM",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "print_width": "100px",
- "read_only": 1,
- "report_hide": 0,
- "reqd": 1,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "stock_uom",
+ "fieldtype": "Link",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 1,
+ "label": "Stock UOM",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "stock_uom",
+ "oldfieldtype": "Data",
+ "options": "UOM",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "print_width": "100px",
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 1,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0,
"width": "100px"
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "conversion_factor",
- "fieldtype": "Float",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Conversion Factor",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "conversion_factor",
- "oldfieldtype": "Currency",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "print_width": "100px",
- "read_only": 0,
- "report_hide": 0,
- "reqd": 1,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "conversion_factor",
+ "fieldtype": "Float",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Conversion Factor",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "conversion_factor",
+ "oldfieldtype": "Currency",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "print_width": "100px",
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 1,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0,
"width": "100px"
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "rate_and_amount",
- "fieldtype": "Section Break",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Rate and Amount",
- "length": 0,
- "no_copy": 0,
- "permlevel": 0,
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "rate_and_amount",
+ "fieldtype": "Section Break",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Rate and Amount",
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "price_list_rate",
- "fieldtype": "Currency",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Price List Rate",
- "length": 0,
- "no_copy": 0,
- "options": "currency",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "price_list_rate",
+ "fieldtype": "Currency",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Price List Rate",
+ "length": 0,
+ "no_copy": 0,
+ "options": "currency",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "depends_on": "price_list_rate",
- "fieldname": "discount_percentage",
- "fieldtype": "Percent",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 1,
- "label": "Discount on Price List Rate (%)",
- "length": 0,
- "no_copy": 0,
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "depends_on": "price_list_rate",
+ "fieldname": "discount_percentage",
+ "fieldtype": "Percent",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 1,
+ "label": "Discount on Price List Rate (%)",
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "col_break3",
- "fieldtype": "Column Break",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "length": 0,
- "no_copy": 0,
- "permlevel": 0,
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "col_break3",
+ "fieldtype": "Column Break",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "base_price_list_rate",
- "fieldtype": "Currency",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Price List Rate (Company Currency)",
- "length": 0,
- "no_copy": 0,
- "options": "Company:company:default_currency",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "base_price_list_rate",
+ "fieldtype": "Currency",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Price List Rate (Company Currency)",
+ "length": 0,
+ "no_copy": 0,
+ "options": "Company:company:default_currency",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "sec_break1",
- "fieldtype": "Section Break",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "length": 0,
- "no_copy": 0,
- "permlevel": 0,
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "sec_break1",
+ "fieldtype": "Section Break",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 1,
- "collapsible": 0,
- "fieldname": "rate",
- "fieldtype": "Currency",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 1,
- "label": "Rate",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "import_rate",
- "oldfieldtype": "Currency",
- "options": "currency",
- "permlevel": 0,
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "print_width": "100px",
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0,
+ "allow_on_submit": 0,
+ "bold": 1,
+ "collapsible": 0,
+ "fieldname": "rate",
+ "fieldtype": "Currency",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 1,
+ "label": "Rate",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "import_rate",
+ "oldfieldtype": "Currency",
+ "options": "currency",
+ "permlevel": 0,
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "print_width": "100px",
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0,
"width": "100px"
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "amount",
- "fieldtype": "Currency",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 1,
- "label": "Amount",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "import_amount",
- "oldfieldtype": "Currency",
- "options": "currency",
- "permlevel": 0,
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "amount",
+ "fieldtype": "Currency",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 1,
+ "label": "Amount",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "import_amount",
+ "oldfieldtype": "Currency",
+ "options": "currency",
+ "permlevel": 0,
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "col_break4",
- "fieldtype": "Column Break",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "length": 0,
- "no_copy": 0,
- "permlevel": 0,
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "col_break4",
+ "fieldtype": "Column Break",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "base_rate",
- "fieldtype": "Currency",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Rate (Company Currency)",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "purchase_rate",
- "oldfieldtype": "Currency",
- "options": "Company:company:default_currency",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "print_width": "100px",
- "read_only": 1,
- "report_hide": 0,
- "reqd": 1,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "base_rate",
+ "fieldtype": "Currency",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Rate (Company Currency)",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "purchase_rate",
+ "oldfieldtype": "Currency",
+ "options": "Company:company:default_currency",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "print_width": "100px",
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 1,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0,
"width": "100px"
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "base_amount",
- "fieldtype": "Currency",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Amount (Company Currency)",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "amount",
- "oldfieldtype": "Currency",
- "options": "Company:company:default_currency",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "print_width": "100px",
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "base_amount",
+ "fieldtype": "Currency",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Amount (Company Currency)",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "amount",
+ "oldfieldtype": "Currency",
+ "options": "Company:company:default_currency",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "print_width": "100px",
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0,
"width": "100px"
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "pricing_rule",
- "fieldtype": "Link",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Pricing Rule",
- "length": 0,
- "no_copy": 0,
- "options": "Pricing Rule",
- "permlevel": 0,
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "pricing_rule",
+ "fieldtype": "Link",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Pricing Rule",
+ "length": 0,
+ "no_copy": 0,
+ "options": "Pricing Rule",
+ "permlevel": 0,
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "section_break_29",
- "fieldtype": "Section Break",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "length": 0,
- "no_copy": 0,
- "permlevel": 0,
- "precision": "",
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "section_break_29",
+ "fieldtype": "Section Break",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "net_rate",
- "fieldtype": "Currency",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Net Rate",
- "length": 0,
- "no_copy": 0,
- "options": "currency",
- "permlevel": 0,
- "precision": "",
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "net_rate",
+ "fieldtype": "Currency",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Net Rate",
+ "length": 0,
+ "no_copy": 0,
+ "options": "currency",
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "net_amount",
- "fieldtype": "Currency",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Net Amount",
- "length": 0,
- "no_copy": 0,
- "options": "currency",
- "permlevel": 0,
- "precision": "",
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "net_amount",
+ "fieldtype": "Currency",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Net Amount",
+ "length": 0,
+ "no_copy": 0,
+ "options": "currency",
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "column_break_32",
- "fieldtype": "Column Break",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "length": 0,
- "no_copy": 0,
- "permlevel": 0,
- "precision": "",
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "column_break_32",
+ "fieldtype": "Column Break",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "base_net_rate",
- "fieldtype": "Currency",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Net Rate (Company Currency)",
- "length": 0,
- "no_copy": 0,
- "options": "Company:company:default_currency",
- "permlevel": 0,
- "precision": "",
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "base_net_rate",
+ "fieldtype": "Currency",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Net Rate (Company Currency)",
+ "length": 0,
+ "no_copy": 0,
+ "options": "Company:company:default_currency",
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "base_net_amount",
- "fieldtype": "Currency",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Net Amount (Company Currency)",
- "length": 0,
- "no_copy": 0,
- "options": "Company:company:default_currency",
- "permlevel": 0,
- "precision": "",
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "base_net_amount",
+ "fieldtype": "Currency",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Net Amount (Company Currency)",
+ "length": 0,
+ "no_copy": 0,
+ "options": "Company:company:default_currency",
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "warehouse_and_reference",
- "fieldtype": "Section Break",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Warehouse and Reference",
- "length": 0,
- "no_copy": 0,
- "permlevel": 0,
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "warehouse_and_reference",
+ "fieldtype": "Section Break",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Warehouse and Reference",
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 1,
- "collapsible": 0,
- "fieldname": "warehouse",
- "fieldtype": "Link",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 1,
- "label": "Accepted Warehouse",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "warehouse",
- "oldfieldtype": "Link",
- "options": "Warehouse",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "print_width": "100px",
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0,
+ "allow_on_submit": 0,
+ "bold": 1,
+ "collapsible": 0,
+ "fieldname": "warehouse",
+ "fieldtype": "Link",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 1,
+ "label": "Accepted Warehouse",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "warehouse",
+ "oldfieldtype": "Link",
+ "options": "Warehouse",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "print_width": "100px",
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0,
"width": "100px"
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "rejected_warehouse",
- "fieldtype": "Link",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Rejected Warehouse",
- "length": 0,
- "no_copy": 1,
- "oldfieldname": "rejected_warehouse",
- "oldfieldtype": "Link",
- "options": "Warehouse",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "print_width": "100px",
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "rejected_warehouse",
+ "fieldtype": "Link",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Rejected Warehouse",
+ "length": 0,
+ "no_copy": 1,
+ "oldfieldname": "rejected_warehouse",
+ "oldfieldtype": "Link",
+ "options": "Warehouse",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "print_width": "100px",
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0,
"width": "100px"
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "project_name",
- "fieldtype": "Link",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 1,
- "in_list_view": 0,
- "label": "Project Name",
- "length": 0,
- "no_copy": 0,
- "options": "Project",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "qa_no",
+ "fieldtype": "Link",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Quality Inspection",
+ "length": 0,
+ "no_copy": 1,
+ "oldfieldname": "qa_no",
+ "oldfieldtype": "Link",
+ "options": "Quality Inspection",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "default": ":Company",
- "depends_on": "eval:cint(sys_defaults.auto_accounting_for_stock)",
- "fieldname": "cost_center",
- "fieldtype": "Link",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Cost Center",
- "length": 0,
- "no_copy": 0,
- "options": "Cost Center",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "column_break_40",
+ "fieldtype": "Column Break",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "qa_no",
- "fieldtype": "Link",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Quality Inspection",
- "length": 0,
- "no_copy": 1,
- "oldfieldname": "qa_no",
- "oldfieldtype": "Link",
- "options": "Quality Inspection",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0
- },
- {
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "schedule_date",
- "fieldtype": "Date",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Required By",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "schedule_date",
- "oldfieldtype": "Date",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0
- },
- {
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "stock_qty",
- "fieldtype": "Float",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Qty as per Stock UOM",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "stock_qty",
- "oldfieldtype": "Currency",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "print_width": "100px",
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0,
- "width": "100px"
- },
- {
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "prevdoc_doctype",
- "fieldtype": "Data",
- "hidden": 1,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Prevdoc Doctype",
- "length": 0,
- "no_copy": 1,
- "oldfieldname": "prevdoc_doctype",
- "oldfieldtype": "Data",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0
- },
- {
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "prevdoc_docname",
- "fieldtype": "Link",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 1,
- "in_list_view": 0,
- "label": "Purchase Order",
- "length": 0,
- "no_copy": 1,
- "oldfieldname": "prevdoc_docname",
- "oldfieldtype": "Link",
- "options": "Purchase Order",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "print_width": "150px",
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 1,
- "set_only_once": 0,
- "unique": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "prevdoc_docname",
+ "fieldtype": "Link",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 1,
+ "in_list_view": 0,
+ "label": "Purchase Order",
+ "length": 0,
+ "no_copy": 1,
+ "oldfieldname": "prevdoc_docname",
+ "oldfieldtype": "Link",
+ "options": "Purchase Order",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "print_width": "150px",
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 1,
+ "set_only_once": 0,
+ "unique": 0,
"width": "150px"
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "prevdoc_detail_docname",
- "fieldtype": "Data",
- "hidden": 1,
- "ignore_user_permissions": 0,
- "in_filter": 1,
- "in_list_view": 0,
- "label": "Purchase Order Item No",
- "length": 0,
- "no_copy": 1,
- "oldfieldname": "prevdoc_detail_docname",
- "oldfieldtype": "Data",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "print_width": "150px",
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 1,
- "set_only_once": 0,
- "unique": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "schedule_date",
+ "fieldtype": "Date",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Required By",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "schedule_date",
+ "oldfieldtype": "Date",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0
+ },
+ {
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "stock_qty",
+ "fieldtype": "Float",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Qty as per Stock UOM",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "stock_qty",
+ "oldfieldtype": "Currency",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "print_width": "100px",
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0,
+ "width": "100px"
+ },
+ {
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "section_break_45",
+ "fieldtype": "Section Break",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0
+ },
+ {
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "serial_no",
+ "fieldtype": "Text",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 1,
+ "in_list_view": 1,
+ "label": "Serial No",
+ "length": 0,
+ "no_copy": 1,
+ "oldfieldname": "serial_no",
+ "oldfieldtype": "Text",
+ "permlevel": 0,
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0
+ },
+ {
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "batch_no",
+ "fieldtype": "Link",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 1,
+ "label": "Batch No",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "batch_no",
+ "oldfieldtype": "Link",
+ "options": "Batch",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0
+ },
+ {
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "column_break_48",
+ "fieldtype": "Column Break",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "",
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0
+ },
+ {
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "rejected_serial_no",
+ "fieldtype": "Text",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Rejected Serial No",
+ "length": 0,
+ "no_copy": 1,
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0
+ },
+ {
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "section_break_50",
+ "fieldtype": "Section Break",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0
+ },
+ {
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "project_name",
+ "fieldtype": "Link",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 1,
+ "in_list_view": 0,
+ "label": "Project Name",
+ "length": 0,
+ "no_copy": 0,
+ "options": "Project",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0
+ },
+ {
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "default": ":Company",
+ "depends_on": "eval:cint(sys_defaults.auto_accounting_for_stock)",
+ "fieldname": "cost_center",
+ "fieldtype": "Link",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Cost Center",
+ "length": 0,
+ "no_copy": 0,
+ "options": "Cost Center",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0
+ },
+ {
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "prevdoc_doctype",
+ "fieldtype": "Data",
+ "hidden": 1,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Prevdoc Doctype",
+ "length": 0,
+ "no_copy": 1,
+ "oldfieldname": "prevdoc_doctype",
+ "oldfieldtype": "Data",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0
+ },
+ {
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "prevdoc_detail_docname",
+ "fieldtype": "Data",
+ "hidden": 1,
+ "ignore_user_permissions": 0,
+ "in_filter": 1,
+ "in_list_view": 0,
+ "label": "Purchase Order Item No",
+ "length": 0,
+ "no_copy": 1,
+ "oldfieldname": "prevdoc_detail_docname",
+ "oldfieldtype": "Data",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "print_width": "150px",
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 1,
+ "set_only_once": 0,
+ "unique": 0,
"width": "150px"
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "col_break5",
- "fieldtype": "Column Break",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "length": 0,
- "no_copy": 0,
- "permlevel": 0,
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "col_break5",
+ "fieldtype": "Column Break",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "length": 0,
+ "no_copy": 0,
+ "permlevel": 0,
+ "print_hide": 0,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "bom",
- "fieldtype": "Link",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "BOM",
- "length": 0,
- "no_copy": 1,
- "options": "BOM",
- "permlevel": 0,
- "precision": "",
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "bom",
+ "fieldtype": "Link",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "BOM",
+ "length": 0,
+ "no_copy": 1,
+ "options": "BOM",
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "serial_no",
- "fieldtype": "Text",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 1,
- "in_list_view": 1,
- "label": "Serial No",
- "length": 0,
- "no_copy": 1,
- "oldfieldname": "serial_no",
- "oldfieldtype": "Text",
- "permlevel": 0,
- "print_hide": 0,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "billed_amt",
+ "fieldtype": "Currency",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Billed Amt",
+ "length": 0,
+ "no_copy": 1,
+ "permlevel": 0,
+ "precision": "",
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "rejected_serial_no",
- "fieldtype": "Text",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Rejected Serial No",
- "length": 0,
- "no_copy": 1,
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 1,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "landed_cost_voucher_amount",
+ "fieldtype": "Currency",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Landed Cost Voucher Amount",
+ "length": 0,
+ "no_copy": 1,
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "batch_no",
- "fieldtype": "Link",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 1,
- "label": "Batch No",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "batch_no",
- "oldfieldtype": "Link",
- "options": "Batch",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "brand",
+ "fieldtype": "Link",
+ "hidden": 1,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Brand",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "brand",
+ "oldfieldtype": "Link",
+ "options": "Brand",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "billed_amt",
- "fieldtype": "Currency",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Billed Amt",
- "length": 0,
- "no_copy": 1,
- "permlevel": 0,
- "precision": "",
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "description": "",
+ "fieldname": "item_group",
+ "fieldtype": "Link",
+ "hidden": 1,
+ "ignore_user_permissions": 0,
+ "in_filter": 1,
+ "in_list_view": 0,
+ "label": "Item Group",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "item_group",
+ "oldfieldtype": "Link",
+ "options": "Item Group",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 1,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "brand",
- "fieldtype": "Link",
- "hidden": 1,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Brand",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "brand",
- "oldfieldtype": "Link",
- "options": "Brand",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0
- },
- {
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "description": "",
- "fieldname": "item_group",
- "fieldtype": "Link",
- "hidden": 1,
- "ignore_user_permissions": 0,
- "in_filter": 1,
- "in_list_view": 0,
- "label": "Item Group",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "item_group",
- "oldfieldtype": "Link",
- "options": "Item Group",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 1,
- "set_only_once": 0,
- "unique": 0
- },
- {
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "rm_supp_cost",
- "fieldtype": "Currency",
- "hidden": 1,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Raw Materials Supplied Cost",
- "length": 0,
- "no_copy": 1,
- "oldfieldname": "rm_supp_cost",
- "oldfieldtype": "Currency",
- "options": "Company:company:default_currency",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "print_width": "150px",
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "rm_supp_cost",
+ "fieldtype": "Currency",
+ "hidden": 1,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Raw Materials Supplied Cost",
+ "length": 0,
+ "no_copy": 1,
+ "oldfieldname": "rm_supp_cost",
+ "oldfieldtype": "Currency",
+ "options": "Company:company:default_currency",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "print_width": "150px",
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0,
"width": "150px"
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "item_tax_amount",
- "fieldtype": "Currency",
- "hidden": 1,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Item Tax Amount",
- "length": 0,
- "no_copy": 1,
- "oldfieldname": "item_tax_amount",
- "oldfieldtype": "Currency",
- "options": "Company:company:default_currency",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "print_width": "150px",
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "item_tax_amount",
+ "fieldtype": "Currency",
+ "hidden": 1,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Item Tax Amount",
+ "length": 0,
+ "no_copy": 1,
+ "oldfieldname": "item_tax_amount",
+ "oldfieldtype": "Currency",
+ "options": "Company:company:default_currency",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "print_width": "150px",
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0,
"width": "150px"
- },
+ },
{
- "allow_on_submit": 1,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "landed_cost_voucher_amount",
- "fieldtype": "Currency",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Landed Cost Voucher Amount",
- "length": 0,
- "no_copy": 1,
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0
- },
- {
- "allow_on_submit": 1,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "valuation_rate",
- "fieldtype": "Currency",
- "hidden": 1,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Valuation Rate",
- "length": 0,
- "no_copy": 1,
- "oldfieldname": "valuation_rate",
- "oldfieldtype": "Currency",
- "options": "Company:company:default_currency",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "print_width": "80px",
- "read_only": 1,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
- "unique": 0,
+ "allow_on_submit": 1,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "valuation_rate",
+ "fieldtype": "Currency",
+ "hidden": 1,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Valuation Rate",
+ "length": 0,
+ "no_copy": 1,
+ "oldfieldname": "valuation_rate",
+ "oldfieldtype": "Currency",
+ "options": "Company:company:default_currency",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "print_width": "80px",
+ "read_only": 1,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
+ "unique": 0,
"width": "80px"
- },
+ },
{
- "allow_on_submit": 0,
- "bold": 0,
- "collapsible": 0,
- "description": "Tax detail table fetched from item master as a string and stored in this field.\nUsed for Taxes and Charges",
- "fieldname": "item_tax_rate",
- "fieldtype": "Small Text",
- "hidden": 1,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Item Tax Rate",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "item_tax_rate",
- "oldfieldtype": "Small Text",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 1,
- "report_hide": 1,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 0,
+ "bold": 0,
+ "collapsible": 0,
+ "description": "Tax detail table fetched from item master as a string and stored in this field.\nUsed for Taxes and Charges",
+ "fieldname": "item_tax_rate",
+ "fieldtype": "Small Text",
+ "hidden": 1,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Item Tax Rate",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "item_tax_rate",
+ "oldfieldtype": "Small Text",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 1,
+ "report_hide": 1,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
- },
+ },
{
- "allow_on_submit": 1,
- "bold": 0,
- "collapsible": 0,
- "fieldname": "page_break",
- "fieldtype": "Check",
- "hidden": 0,
- "ignore_user_permissions": 0,
- "in_filter": 0,
- "in_list_view": 0,
- "label": "Page Break",
- "length": 0,
- "no_copy": 0,
- "oldfieldname": "page_break",
- "oldfieldtype": "Check",
- "permlevel": 0,
- "print_hide": 1,
- "print_hide_if_no_value": 0,
- "read_only": 0,
- "report_hide": 0,
- "reqd": 0,
- "search_index": 0,
- "set_only_once": 0,
+ "allow_on_submit": 1,
+ "bold": 0,
+ "collapsible": 0,
+ "fieldname": "page_break",
+ "fieldtype": "Check",
+ "hidden": 0,
+ "ignore_user_permissions": 0,
+ "in_filter": 0,
+ "in_list_view": 0,
+ "label": "Page Break",
+ "length": 0,
+ "no_copy": 0,
+ "oldfieldname": "page_break",
+ "oldfieldtype": "Check",
+ "permlevel": 0,
+ "print_hide": 1,
+ "print_hide_if_no_value": 0,
+ "read_only": 0,
+ "report_hide": 0,
+ "reqd": 0,
+ "search_index": 0,
+ "set_only_once": 0,
"unique": 0
}
- ],
- "hide_heading": 0,
- "hide_toolbar": 0,
- "idx": 1,
- "in_create": 0,
- "in_dialog": 0,
- "is_submittable": 0,
- "issingle": 0,
- "istable": 1,
- "max_attachments": 0,
- "modified": "2016-01-06 02:22:04.312514",
- "modified_by": "Administrator",
- "module": "Stock",
- "name": "Purchase Receipt Item",
- "owner": "Administrator",
- "permissions": [],
- "read_only": 0,
- "read_only_onload": 0,
- "sort_field": "modified",
+ ],
+ "hide_heading": 0,
+ "hide_toolbar": 0,
+ "idx": 1,
+ "in_create": 0,
+ "in_dialog": 0,
+ "is_submittable": 0,
+ "issingle": 0,
+ "istable": 1,
+ "max_attachments": 0,
+ "modified": "2016-01-15 04:20:38.803896",
+ "modified_by": "Administrator",
+ "module": "Stock",
+ "name": "Purchase Receipt Item",
+ "owner": "Administrator",
+ "permissions": [],
+ "read_only": 0,
+ "read_only_onload": 0,
+ "sort_field": "modified",
"sort_order": "DESC"
-}
+}
\ No newline at end of file
diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.js b/erpnext/stock/doctype/stock_entry/stock_entry.js
index 9d6f590..3437463 100644
--- a/erpnext/stock/doctype/stock_entry/stock_entry.js
+++ b/erpnext/stock/doctype/stock_entry/stock_entry.js
@@ -236,11 +236,11 @@
},
s_warehouse: function(doc, cdt, cdn) {
-
+ this.get_warehouse_details(doc, cdt, cdn)
},
t_warehouse: function(doc, cdt, cdn) {
- this.s_warehouse(doc, cdt, cdn);
+ this.get_warehouse_details(doc, cdt, cdn)
},
get_warehouse_details: function(doc, cdt, cdn) {
diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py
index fa51ab9..3819337 100644
--- a/erpnext/stock/get_item_details.py
+++ b/erpnext/stock/get_item_details.py
@@ -21,14 +21,13 @@
"selling_price_list": None,
"price_list_currency": None,
"plc_conversion_rate": 1.0,
- "parenttype": "",
- "parent": "",
+ "doctype": "",
+ "name": "",
"supplier": None,
"transaction_date": None,
"conversion_rate": 1.0,
"buying_price_list": None,
"is_subcontracted": "Yes" / "No",
- "transaction_type": "selling",
"ignore_pricing_rule": 0/1
"project_name": ""
}
@@ -49,7 +48,7 @@
get_price_list_rate(args, item_doc, out)
- if args.transaction_type == "selling" and cint(args.is_pos):
+ if args.customer and cint(args.is_pos):
out.update(get_pos_profile_item_details(args.company, args))
# update args with out, if key or value not exists
@@ -59,7 +58,7 @@
out.update(get_pricing_rule_for_item(args))
- if args.get("parenttype") in ("Sales Invoice", "Delivery Note"):
+ if args.get("doctype") in ("Sales Invoice", "Delivery Note"):
if item_doc.has_serial_no == 1 and not args.serial_no:
out.serial_no = get_serial_nos_by_fifo(args, item_doc)
@@ -78,13 +77,6 @@
args = frappe._dict(args)
- if not args.get("transaction_type"):
- if args.get("parenttype")=="Material Request" or \
- frappe.get_meta(args.get("parenttype")).get_field("supplier"):
- args.transaction_type = "buying"
- else:
- args.transaction_type = "selling"
-
if not args.get("price_list"):
args.price_list = args.get("selling_price_list") or args.get("buying_price_list")
@@ -115,7 +107,7 @@
from erpnext.stock.doctype.item.item import validate_end_of_life
validate_end_of_life(item.name, item.end_of_life, item.disabled)
- if args.transaction_type == "selling":
+ if args.customer or args.doctype=="Opportunity":
# validate if sales item or service item
if args.get("order_type") == "Maintenance":
if item.is_service_item != 1:
@@ -127,7 +119,7 @@
if cint(item.has_variants):
throw(_("Item {0} is a template, please select one of its variants").format(item.name))
- elif args.transaction_type == "buying" and args.parenttype != "Material Request":
+ elif args.supplier and args.doctype != "Material Request":
# validate if purchase item or subcontracted item
if item.is_purchase_item != 1:
throw(_("Item {0} must be a Purchase Item").format(item.name))
@@ -160,7 +152,7 @@
"item_tax_rate": json.dumps(dict(([d.tax_type, d.tax_rate] for d in
item.get("taxes")))),
"uom": item.stock_uom,
- "min_order_qty": flt(item.min_order_qty) if args.parenttype == "Material Request" else "",
+ "min_order_qty": flt(item.min_order_qty) if args.doctype == "Material Request" else "",
"conversion_factor": 1.0,
"qty": args.qty or 1.0,
"stock_qty": 1.0,
@@ -201,7 +193,7 @@
def get_default_cost_center(args, item):
return (frappe.db.get_value("Project", args.get("project_name"), "cost_center")
- or (item.selling_cost_center if args.get("transaction_type") == "selling" else item.buying_cost_center)
+ or (item.selling_cost_center if args.get("customer") else item.buying_cost_center)
or frappe.db.get_value("Item Group", item.item_group, "default_cost_center")
or args.get("cost_center"))
@@ -212,10 +204,13 @@
validate_price_list(args)
validate_conversion_rate(args, meta)
- price_list_rate = get_price_list_rate_for(args, item_doc.name)
- if not price_list_rate and item_doc.variant_of:
- price_list_rate = get_price_list_rate_for(args, item_doc.variant_of)
+ price_list_rate = get_price_list_rate_for(args.price_list, item_doc.name)
+ # variant
+ if not price_list_rate and item_doc.variant_of:
+ price_list_rate = get_price_list_rate_for(args.price_list, item_doc.variant_of)
+
+ # insert in database
if not price_list_rate:
if args.price_list and args.rate:
insert_item_price(args)
@@ -224,10 +219,10 @@
out.price_list_rate = flt(price_list_rate) * flt(args.plc_conversion_rate) \
/ flt(args.conversion_rate)
- if not out.price_list_rate and args.transaction_type == "buying":
+ if not out.price_list_rate and args.supplier:
from erpnext.stock.doctype.item.item import get_last_purchase_details
out.update(get_last_purchase_details(item_doc.name,
- args.parent, args.conversion_rate))
+ args.name, args.conversion_rate))
def insert_item_price(args):
"""Insert Item Price if Price List and Price List Rate are specified and currency is the same"""
@@ -249,14 +244,14 @@
frappe.msgprint(_("Item Price added for {0} in Price List {1}").format(args.item_code,
args.price_list))
-def get_price_list_rate_for(args, item_code):
+def get_price_list_rate_for(price_list, item_code):
return frappe.db.get_value("Item Price",
- {"price_list": args.price_list, "item_code": item_code}, "price_list_rate")
+ {"price_list": price_list, "item_code": item_code}, "price_list_rate")
def validate_price_list(args):
if args.get("price_list"):
if not frappe.db.get_value("Price List",
- {"name": args.price_list, args.transaction_type: 1, "enabled": 1}):
+ {"name": args.price_list, "selling" if (args.customer or args.lead) else "buying": 1, "enabled": 1}):
throw(_("Price List {0} is disabled").format(args.price_list))
else:
throw(_("Price List not selected"))
@@ -288,7 +283,7 @@
frappe._dict({"fields": args})))
def get_party_item_code(args, item_doc, out):
- if args.transaction_type == "selling":
+ if args.customer:
customer_item_code = item_doc.get("customer_items", {"customer_name": args.customer})
out.customer_item_code = customer_item_code[0].ref_code if customer_item_code else None
else:
@@ -369,21 +364,27 @@
return {'actual_batch_qty': actual_batch_qty}
@frappe.whitelist()
-def apply_price_list(args):
- """
+def apply_price_list(args, as_doc=False):
+ """Apply pricelist on a document-like dict object and return as
+ {'parent': dict, 'children': list}
+
+ :param args: See below
+ :param as_doc: Updates value in the passed dict
+
args = {
- "item_list": [{"doctype": "", "name": "", "item_code": "", "brand": "", "item_group": ""}, ...],
+ "doctype": "",
+ "name": "",
+ "items": [{"doctype": "", "name": "", "item_code": "", "brand": "", "item_group": ""}, ...],
"conversion_rate": 1.0,
"selling_price_list": None,
"price_list_currency": None,
"plc_conversion_rate": 1.0,
- "parenttype": "",
- "parent": "",
+ "doctype": "",
+ "name": "",
"supplier": None,
"transaction_date": None,
"conversion_rate": 1.0,
"buying_price_list": None,
- "transaction_type": "selling",
"ignore_pricing_rule": 0/1
}
"""
@@ -392,10 +393,8 @@
parent = get_price_list_currency_and_exchange_rate(args)
children = []
- if "item_list" in args:
- item_list = args.get("item_list")
- del args["item_list"]
-
+ if "items" in args:
+ item_list = args.get("items")
args.update(parent)
for item in item_list:
@@ -404,16 +403,31 @@
item_details = apply_price_list_on_item(args_copy)
children.append(item_details)
- return {
- "parent": parent,
- "children": children
- }
+ if as_doc:
+ args.price_list_currency = parent.price_list_currency
+ args.plc_conversion_rate = parent.plc_conversion_rate
+ if args.get('items'):
+ for i, item in enumerate(args.get('items')):
+ for fieldname in children[i]:
+ # if the field exists in the original doc
+ # update the value
+ if fieldname in item and fieldname not in ("name", "doctype"):
+ item[fieldname] = children[i][fieldname]
+
+ return args
+ else:
+ return {
+ "parent": parent,
+ "children": children
+ }
def apply_price_list_on_item(args):
item_details = frappe._dict()
item_doc = frappe.get_doc("Item", args.item_code)
get_price_list_rate(args, item_doc, item_details)
+
item_details.update(get_pricing_rule_for_item(args))
+
return item_details
def get_price_list_currency(price_list):
@@ -437,10 +451,10 @@
and price_list_currency != args.price_list_currency):
plc_conversion_rate = get_exchange_rate(price_list_currency, args.currency) or plc_conversion_rate
- return {
+ return frappe._dict({
"price_list_currency": price_list_currency,
"plc_conversion_rate": plc_conversion_rate
- }
+ })
@frappe.whitelist()
def get_default_bom(item_code=None):
diff --git a/erpnext/support/doctype/maintenance_schedule/maintenance_schedule.js b/erpnext/support/doctype/maintenance_schedule/maintenance_schedule.js
index b24ae48..91b1f67 100644
--- a/erpnext/support/doctype/maintenance_schedule/maintenance_schedule.js
+++ b/erpnext/support/doctype/maintenance_schedule/maintenance_schedule.js
@@ -28,7 +28,7 @@
company: me.frm.doc.company
}
});
- }, __("From"));
+ }, __("Get items from"));
} else if (this.frm.doc.docstatus === 1) {
this.frm.add_custom_button(__("Make Maintenance Visit"), function() {
frappe.model.open_mapped_doc({
diff --git a/erpnext/support/doctype/maintenance_visit/maintenance_visit.js b/erpnext/support/doctype/maintenance_visit/maintenance_visit.js
index 91f7fa2..52141a8 100644
--- a/erpnext/support/doctype/maintenance_visit/maintenance_visit.js
+++ b/erpnext/support/doctype/maintenance_visit/maintenance_visit.js
@@ -26,7 +26,7 @@
company: cur_frm.doc.company
}
})
- }, __("From"));
+ }, __("Get items from"));
cur_frm.add_custom_button(__('Warranty Claim'),
function() {
frappe.model.map_current_doc({
@@ -38,7 +38,7 @@
company: cur_frm.doc.company
}
})
- }, __("From"));
+ }, __("Get items from"));
cur_frm.add_custom_button(__('Sales Order'),
function() {
frappe.model.map_current_doc({
@@ -51,7 +51,7 @@
company: cur_frm.doc.company
}
})
- }, __("From"));
+ }, __("Get items from"));
}
},
});
diff --git a/erpnext/templates/pages/order.html b/erpnext/templates/pages/order.html
index 3bd6ad3..fae55f3 100644
--- a/erpnext/templates/pages/order.html
+++ b/erpnext/templates/pages/order.html
@@ -63,9 +63,8 @@
</div>
<div class="col-sm-2 col-xs-3 text-right">
{{ d.get_formatted("amount") }}
- {# output of get_formatted("rate") is unicode, to replace unicode use _("text {0}").decode("utf8").format(val) #}
<p class="text-muted small">{{
- _("Rate: {0}").decode("utf8").format(d.get_formatted("rate")) }}</p>
+ _("Rate: {0}").format(d.get_formatted("rate")) }}</p>
</div>
</div>
{% endfor %}
@@ -83,7 +82,7 @@
<div class="cart-taxes row small">
<div class="col-sm-8"><!-- empty --></div>
<div class="col-sm-4">
- {% if (doc.doctype=="Sales Order" and doc.per_billed <= 0)
+ {% if (doc.doctype=="Sales Order" and doc.per_billed <= 0)
or (doc.doctype=="Sales Invoice" and doc.outstanding_amount > 0) %}
<div class="page-header-actions-block" data-html-block="header-actions">
<p>