mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	Order table improvements (#5151)
- prevent "double loading" of order tables
This commit is contained in:
		@@ -2173,9 +2173,6 @@ function loadBuildTable(table, options) {
 | 
				
			|||||||
        customView: function(data) {
 | 
					        customView: function(data) {
 | 
				
			||||||
            return `<div id='build-order-calendar'></div>`;
 | 
					            return `<div id='build-order-calendar'></div>`;
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        onRefresh: function() {
 | 
					 | 
				
			||||||
            loadBuildTable(table, options);
 | 
					 | 
				
			||||||
        },
 | 
					 | 
				
			||||||
        onLoadSuccess: function() {
 | 
					        onLoadSuccess: function() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (tree_enable) {
 | 
					            if (tree_enable) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1759,9 +1759,6 @@ function loadPurchaseOrderTable(table, options) {
 | 
				
			|||||||
        customView: function(data) {
 | 
					        customView: function(data) {
 | 
				
			||||||
            return `<div id='purchase-order-calendar'></div>`;
 | 
					            return `<div id='purchase-order-calendar'></div>`;
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        onRefresh: function() {
 | 
					 | 
				
			||||||
            loadPurchaseOrderTable(table, options);
 | 
					 | 
				
			||||||
        },
 | 
					 | 
				
			||||||
        onLoadSuccess: function() {
 | 
					        onLoadSuccess: function() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (display_mode == 'calendar') {
 | 
					            if (display_mode == 'calendar') {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -262,9 +262,6 @@ function loadReturnOrderTable(table, options={}) {
 | 
				
			|||||||
        formatNoMatches: function() {
 | 
					        formatNoMatches: function() {
 | 
				
			||||||
            return '{% trans "No return orders found" %}';
 | 
					            return '{% trans "No return orders found" %}';
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        onRefresh: function() {
 | 
					 | 
				
			||||||
            loadReturnOrderTable(table, options);
 | 
					 | 
				
			||||||
        },
 | 
					 | 
				
			||||||
        onLoadSuccess: function() {
 | 
					        onLoadSuccess: function() {
 | 
				
			||||||
            // TODO
 | 
					            // TODO
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -735,9 +735,6 @@ function loadSalesOrderTable(table, options) {
 | 
				
			|||||||
        customView: function(data) {
 | 
					        customView: function(data) {
 | 
				
			||||||
            return `<div id='purchase-order-calendar'></div>`;
 | 
					            return `<div id='purchase-order-calendar'></div>`;
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        onRefresh: function() {
 | 
					 | 
				
			||||||
            loadSalesOrderTable(table, options);
 | 
					 | 
				
			||||||
        },
 | 
					 | 
				
			||||||
        onLoadSuccess: function() {
 | 
					        onLoadSuccess: function() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (display_mode == 'calendar') {
 | 
					            if (display_mode == 'calendar') {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user