[fix] analytics reports + remove print item tables #2667
This commit is contained in:
parent
d2b762d760
commit
c567e8e960
@ -49,7 +49,7 @@ erpnext.FinancialAnalytics = erpnext.AccountTreeGrid.extend({
|
||||
],
|
||||
setup_columns: function() {
|
||||
var std_columns = [
|
||||
{id: "check", name: __("Plot"), field: "check", width: 30,
|
||||
{id: "_check", name: __("Plot"), field: "_check", width: 30,
|
||||
formatter: this.check_formatter},
|
||||
{id: "name", name: __("Account"), field: "name", width: 300,
|
||||
formatter: this.tree_formatter},
|
||||
|
@ -74,7 +74,7 @@ erpnext.PurchaseAnalytics = frappe.views.TreeGridReport.extend({
|
||||
this.tree_grid = this.tree_grids[this.tree_type];
|
||||
|
||||
var std_columns = [
|
||||
{id: "check", name: __("Plot"), field: "check", width: 30,
|
||||
{id: "_check", name: __("Plot"), field: "_check", width: 30,
|
||||
formatter: this.check_formatter},
|
||||
{id: "name", name: this.tree_grid.label, field: "name", width: 300,
|
||||
formatter: this.tree_formatter},
|
||||
|
@ -15,9 +15,8 @@ from erpnext.controllers.stock_controller import StockController
|
||||
class BuyingController(StockController):
|
||||
def __setup__(self):
|
||||
if hasattr(self, "items"):
|
||||
self.table_print_templates = {
|
||||
"items": "templates/print_formats/includes/item_grid.html",
|
||||
"taxes": "templates/print_formats/includes/taxes.html",
|
||||
self.print_templates = {
|
||||
"taxes": "templates/print_formats/includes/taxes.html"
|
||||
}
|
||||
|
||||
def get_feed(self):
|
||||
|
@ -13,9 +13,8 @@ from erpnext.controllers.stock_controller import StockController
|
||||
class SellingController(StockController):
|
||||
def __setup__(self):
|
||||
if hasattr(self, "items"):
|
||||
self.table_print_templates = {
|
||||
"items": "templates/print_formats/includes/item_grid.html",
|
||||
"taxes": "templates/print_formats/includes/taxes.html",
|
||||
self.print_templates = {
|
||||
"taxes": "templates/print_formats/includes/taxes.html"
|
||||
}
|
||||
|
||||
def get_feed(self):
|
||||
|
@ -36,7 +36,7 @@ erpnext.StockAnalytics = erpnext.StockGridReport.extend({
|
||||
},
|
||||
setup_columns: function() {
|
||||
var std_columns = [
|
||||
{id: "check", name: __("Plot"), field: "check", width: 30,
|
||||
{id: "_check", name: __("Plot"), field: "_check", width: 30,
|
||||
formatter: this.check_formatter},
|
||||
{id: "name", name: __("Item"), field: "name", width: 300,
|
||||
formatter: this.tree_formatter},
|
||||
|
@ -37,7 +37,7 @@ erpnext.SupportAnalytics = frappe.views.GridReportWithPlot.extend({
|
||||
|
||||
setup_columns: function() {
|
||||
var std_columns = [
|
||||
{id: "check", name: __("Plot"), field: "check", width: 30,
|
||||
{id: "_check", name: __("Plot"), field: "_check", width: 30,
|
||||
formatter: this.check_formatter},
|
||||
{id: "status", name: __("Status"), field: "status", width: 100},
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user