2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-03 13:58:47 +00:00

Merge pull request #1391 from SchrodingersGat/order-parts-fix

Hacky fix for ordering parts form
This commit is contained in:
Oliver 2021-03-06 20:20:30 +11:00 committed by GitHub
commit 9ea3193ffb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -44,8 +44,9 @@
id='new_po_{{ supplier.id }}' id='new_po_{{ supplier.id }}'
title='Create new purchase order for {{ supplier.name }}' title='Create new purchase order for {{ supplier.name }}'
type='button' type='button'
supplierid='{{ supplier.id }}'
onclick='newPurchaseOrderFromOrderWizard()'> onclick='newPurchaseOrderFromOrderWizard()'>
<span supplier-id='{{ supplier.id }}' class='fas fa-plus-circle'></span> <span supplierid='{{ supplier.id }}' class='fas fa-plus-circle'></span>
</button> </button>
</td> </td>
<td> <td>

View File

@ -59,7 +59,7 @@ function newPurchaseOrderFromOrderWizard(e) {
var src = e.target || e.srcElement; var src = e.target || e.srcElement;
var supplier = $(src).attr('supplier-id'); var supplier = $(src).attr('supplierid');
launchModalForm("/order/purchase-order/new/", { launchModalForm("/order/purchase-order/new/", {
modal: '#modal-form-secondary', modal: '#modal-form-secondary',