mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 21:25:42 +00:00 
			
		
		
		
	Assign multiple stock items to a customer at one
This commit is contained in:
		| @@ -651,7 +651,7 @@ function assignStockToCustomer(items, options={}) { | ||||
|                 // Does the row exist in the form? | ||||
|                 var row = $(opts.modal).find(`#stock_item_${pk}`); | ||||
|  | ||||
|                 if (row) { | ||||
|                 if (row.exists()) { | ||||
|                     item_pk_values.push(pk); | ||||
|  | ||||
|                     data.items.push({ | ||||
| @@ -931,7 +931,7 @@ function adjustStock(action, items, options={}) { | ||||
|                 // Does the row exist in the form? | ||||
|                 var row = $(opts.modal).find(`#stock_item_${pk}`); | ||||
|  | ||||
|                 if (row) { | ||||
|                 if (row.exists()) { | ||||
|  | ||||
|                     item_pk_values.push(pk); | ||||
|                      | ||||
| @@ -1875,6 +1875,17 @@ function loadStockTable(table, options) { | ||||
|         stockAdjustment('move'); | ||||
|     }); | ||||
|  | ||||
|     $('#multi-item-assign').click(function() { | ||||
|  | ||||
|         var items = $(table).bootstrapTable('getSelections'); | ||||
|  | ||||
|         assignStockToCustomer(items, { | ||||
|             success: function() { | ||||
|                 $(table).bootstrapTable('refresh'); | ||||
|             } | ||||
|         }); | ||||
|     }); | ||||
|  | ||||
|     $('#multi-item-order').click(function() { | ||||
|         var selections = $(table).bootstrapTable('getSelections'); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user