mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 21:25:42 +00:00 
			
		
		
		
	Update purchase order table from part context
This commit is contained in:
		| @@ -905,6 +905,28 @@ function loadPartPurchaseOrderTable(table, part_id, options={}) { | ||||
|                 field: 'quantity', | ||||
|                 title: '{% trans "Quantity" %}', | ||||
|             }, | ||||
|             { | ||||
|                 field: 'target_date', | ||||
|                 title: '{% trans "Target Date" %}', | ||||
|                 switchable: true, | ||||
|                 sortable: true, | ||||
|                 formatter: function(value, row) { | ||||
|                     if (row.target_date) { | ||||
|                         var html = row.target_date; | ||||
|  | ||||
|                         if (row.overdue) { | ||||
|                             html += `<span class='fas fa-calendar-alt icon-red float-right' title='{% trans "This line item is overdue" %}'></span>`; | ||||
|                         } | ||||
|  | ||||
|                         return html; | ||||
|  | ||||
|                     } else if (row.order_detail && row.order_detail.target_date) { | ||||
|                         return `<em>${row.order_detail.target_date}</em>`; | ||||
|                     } else { | ||||
|                         return '-'; | ||||
|                     } | ||||
|                 } | ||||
|             }, | ||||
|             { | ||||
|                 field: 'received', | ||||
|                 title: '{% trans "Received" %}', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user