mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Improved creation of purchase order line items from file upload
This commit is contained in:
parent
1da004d30a
commit
9205d6d67c
@ -1037,6 +1037,11 @@ a.anchor {
|
|||||||
height: 30px;
|
height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Force minimum width of number input fields to show at least ~5 digits */
|
||||||
|
input[type='number']{
|
||||||
|
min-width: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
.search-menu {
|
.search-menu {
|
||||||
padding-top: 2rem;
|
padding-top: 2rem;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 3.2.4 on 2021-08-12 17:49
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('company', '0040_alter_company_currency'),
|
||||||
|
('order', '0048_auto_20210702_2321'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterUniqueTogether(
|
||||||
|
name='purchaseorderlineitem',
|
||||||
|
unique_together={('order', 'part', 'quantity', 'purchase_price')},
|
||||||
|
),
|
||||||
|
]
|
@ -729,7 +729,7 @@ class PurchaseOrderLineItem(OrderLineItem):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
unique_together = (
|
unique_together = (
|
||||||
('order', 'part')
|
('order', 'part', 'quantity', 'purchase_price')
|
||||||
)
|
)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
@ -115,7 +115,7 @@
|
|||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|
||||||
$('.bomselect').select2({
|
$('.bomselect').select2({
|
||||||
dropdownAutoWidth: true,
|
width: '100%',
|
||||||
matcher: partialMatcher,
|
matcher: partialMatcher,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -327,7 +327,7 @@ $("#po-table").inventreeTable({
|
|||||||
{
|
{
|
||||||
sortable: true,
|
sortable: true,
|
||||||
sortName: 'part__MPN',
|
sortName: 'part__MPN',
|
||||||
field: 'supplier_part_detail.MPN',
|
field: 'supplier_part_detail.manufacturer_part_detail.MPN',
|
||||||
title: '{% trans "MPN" %}',
|
title: '{% trans "MPN" %}',
|
||||||
formatter: function(value, row, index, field) {
|
formatter: function(value, row, index, field) {
|
||||||
if (row.supplier_part_detail && row.supplier_part_detail.manufacturer_part) {
|
if (row.supplier_part_detail && row.supplier_part_detail.manufacturer_part) {
|
||||||
|
Loading…
Reference in New Issue
Block a user