mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fill out supplier_part details when receiving a line for a purchase order
This commit is contained in:
parent
9212d6047f
commit
fa8056f4b9
@ -247,6 +247,7 @@ class PurchaseOrder(Order):
|
|||||||
if line.part:
|
if line.part:
|
||||||
stock = StockItem(
|
stock = StockItem(
|
||||||
part=line.part.part,
|
part=line.part.part,
|
||||||
|
supplier_part=line.part,
|
||||||
location=location,
|
location=location,
|
||||||
quantity=quantity,
|
quantity=quantity,
|
||||||
purchase_order=self)
|
purchase_order=self)
|
||||||
|
@ -27,7 +27,7 @@ InvenTree | Purchase Orders
|
|||||||
$("#po-create").click(function() {
|
$("#po-create").click(function() {
|
||||||
launchModalForm("{% url 'purchase-order-create' %}",
|
launchModalForm("{% url 'purchase-order-create' %}",
|
||||||
{
|
{
|
||||||
reload: true,
|
follow: true,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user