mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-30 02:14:48 +00:00
[fix] [minor] allowed territory group in all transactions
This commit is contained in:
@@ -60,17 +60,6 @@ cur_frm.fields_dict['cost_center'].get_query = function(doc,cdt,cdn) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//get query select Territory
|
|
||||||
//=================================================================
|
|
||||||
cur_frm.fields_dict['territory'].get_query = function(doc,cdt,cdn) {
|
|
||||||
return{
|
|
||||||
filters:{
|
|
||||||
'is_group': "No"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ------------------ Get Print Heading ------------------------------------
|
// ------------------ Get Print Heading ------------------------------------
|
||||||
cur_frm.fields_dict['select_print_heading'].get_query = function(doc, cdt, cdn) {
|
cur_frm.fields_dict['select_print_heading'].get_query = function(doc, cdt, cdn) {
|
||||||
return{
|
return{
|
||||||
|
|||||||
@@ -283,14 +283,6 @@ cur_frm.fields_dict['project_name'].get_query = function(doc, cdt, cdn) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Territory
|
|
||||||
//-----------------------------
|
|
||||||
cur_frm.fields_dict['territory'].get_query = function(doc,cdt,cdn) {
|
|
||||||
return{
|
|
||||||
filters: {'is_group': 'NO'}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Income Account in Details Table
|
// Income Account in Details Table
|
||||||
// --------------------------------
|
// --------------------------------
|
||||||
cur_frm.set_query("income_account", "entries", function(doc) {
|
cur_frm.set_query("income_account", "entries", function(doc) {
|
||||||
|
|||||||
@@ -48,12 +48,6 @@ erpnext.selling.InstallationNote = wn.ui.form.Controller.extend({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.frm.set_query("territory", function() {
|
|
||||||
return {
|
|
||||||
filters: {'is_group': "No" }
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
this.frm.set_query("customer", function() {
|
this.frm.set_query("customer", function() {
|
||||||
return {
|
return {
|
||||||
query: "controllers.queries.customer_query"
|
query: "controllers.queries.customer_query"
|
||||||
|
|||||||
@@ -197,12 +197,6 @@ cur_frm.cscript['Unstop Sales Order'] = function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cur_frm.fields_dict['territory'].get_query = function(doc,cdt,cdn) {
|
|
||||||
return{
|
|
||||||
filters:{ 'is_group': "No"}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
cur_frm.cscript.on_submit = function(doc, cdt, cdn) {
|
cur_frm.cscript.on_submit = function(doc, cdt, cdn) {
|
||||||
if(cint(wn.boot.notification_settings.sales_order)) {
|
if(cint(wn.boot.notification_settings.sales_order)) {
|
||||||
cur_frm.email_doc(wn.boot.notification_settings.sales_order_message);
|
cur_frm.email_doc(wn.boot.notification_settings.sales_order_message);
|
||||||
|
|||||||
@@ -130,14 +130,6 @@ cur_frm.cscript['Make Packing Slip'] = function() {
|
|||||||
loaddoc('Packing Slip', n);
|
loaddoc('Packing Slip', n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//get query select Territory
|
|
||||||
cur_frm.fields_dict['territory'].get_query = function(doc,cdt,cdn) {
|
|
||||||
return{
|
|
||||||
filters: { 'is_group': "No" }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var set_print_hide= function(doc, cdt, cdn){
|
var set_print_hide= function(doc, cdt, cdn){
|
||||||
var dn_fields = wn.meta.docfield_map['Delivery Note'];
|
var dn_fields = wn.meta.docfield_map['Delivery Note'];
|
||||||
var dn_item_fields = wn.meta.docfield_map['Delivery Note Item'];
|
var dn_item_fields = wn.meta.docfield_map['Delivery Note Item'];
|
||||||
|
|||||||
@@ -117,11 +117,6 @@ cur_frm.fields_dict['item_code'].get_query = function(doc, cdt, cdn) {
|
|||||||
cur_frm.add_fetch('item_code', 'item_name', 'item_name');
|
cur_frm.add_fetch('item_code', 'item_name', 'item_name');
|
||||||
cur_frm.add_fetch('item_code', 'description', 'description');
|
cur_frm.add_fetch('item_code', 'description', 'description');
|
||||||
|
|
||||||
cur_frm.fields_dict['territory'].get_query = function(doc,cdt,cdn) {
|
|
||||||
return{
|
|
||||||
filters:{ 'is_group': "No"}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
cur_frm.fields_dict.customer.get_query = function(doc,cdt,cdn) {
|
cur_frm.fields_dict.customer.get_query = function(doc,cdt,cdn) {
|
||||||
return{ query:"controllers.queries.customer_query" } }
|
return{ query:"controllers.queries.customer_query" } }
|
||||||
|
|||||||
@@ -123,11 +123,5 @@ cur_frm.cscript.generate_schedule = function(doc, cdt, cdn) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cur_frm.fields_dict['territory'].get_query = function(doc,cdt,cdn) {
|
|
||||||
return{
|
|
||||||
filters:{ 'is_group': "No"}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
cur_frm.fields_dict.customer.get_query = function(doc,cdt,cdn) {
|
cur_frm.fields_dict.customer.get_query = function(doc,cdt,cdn) {
|
||||||
return{ query:"controllers.queries.customer_query" } }
|
return{ query:"controllers.queries.customer_query" } }
|
||||||
|
|||||||
@@ -118,14 +118,6 @@ cur_frm.cscript.item_code = function(doc, cdt, cdn) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//get query select Territory
|
|
||||||
cur_frm.fields_dict['territory'].get_query = function(doc,cdt,cdn) {
|
|
||||||
return{
|
|
||||||
filters:{
|
|
||||||
'is_group': "No"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
cur_frm.fields_dict.customer.get_query = function(doc,cdt,cdn) {
|
cur_frm.fields_dict.customer.get_query = function(doc,cdt,cdn) {
|
||||||
return {query: "controllers.queries.customer_query" }
|
return {query: "controllers.queries.customer_query" }
|
||||||
|
|||||||
Reference in New Issue
Block a user