mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Merge pull request #2464 from SchrodingersGat/po-receive-fix
Hide "receive parts" button for orders which have been cancelled
This commit is contained in:
		| @@ -871,7 +871,7 @@ function loadPartPurchaseOrderTable(table, part_id, options={}) { | |||||||
|                     if (row.received >= row.quantity) { |                     if (row.received >= row.quantity) { | ||||||
|                         // Already recevied |                         // Already recevied | ||||||
|                         return `<span class='badge bg-success rounded-pill'>{% trans "Received" %}</span>`; |                         return `<span class='badge bg-success rounded-pill'>{% trans "Received" %}</span>`; | ||||||
|                     } else { |                     } else if (row.order_detail && row.order_detail.status == {{ PurchaseOrderStatus.PLACED }}) { | ||||||
|                         var html = `<div class='btn-group' role='group'>`; |                         var html = `<div class='btn-group' role='group'>`; | ||||||
|                         var pk = row.pk; |                         var pk = row.pk; | ||||||
|  |  | ||||||
| @@ -879,6 +879,8 @@ function loadPartPurchaseOrderTable(table, part_id, options={}) { | |||||||
|  |  | ||||||
|                         html += `</div>`; |                         html += `</div>`; | ||||||
|                         return html; |                         return html; | ||||||
|  |                     } else { | ||||||
|  |                         return ''; | ||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user