mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Style fixes
This commit is contained in:
parent
5275d3943b
commit
0d7eb6b72c
@ -31,7 +31,7 @@ from .models import SalesOrder, SalesOrderLineItem, SalesOrderAllocation
|
|||||||
from .models import SalesOrderAttachment
|
from .models import SalesOrderAttachment
|
||||||
from .serializers import SalesOrderSerializer, SOLineItemSerializer, SOAttachmentSerializer
|
from .serializers import SalesOrderSerializer, SOLineItemSerializer, SOAttachmentSerializer
|
||||||
from .serializers import SalesOrderAllocationSerializer
|
from .serializers import SalesOrderAllocationSerializer
|
||||||
from .serializers import POReceiveSerializer, POLineItemReceiveSerializer
|
from .serializers import POReceiveSerializer
|
||||||
|
|
||||||
|
|
||||||
class POList(generics.ListCreateAPIView):
|
class POList(generics.ListCreateAPIView):
|
||||||
|
@ -22,7 +22,6 @@ from InvenTree.serializers import InvenTreeAttachmentSerializerField
|
|||||||
|
|
||||||
from InvenTree.status_codes import StockStatus
|
from InvenTree.status_codes import StockStatus
|
||||||
|
|
||||||
import company.models
|
|
||||||
from company.serializers import CompanyBriefSerializer, SupplierPartSerializer
|
from company.serializers import CompanyBriefSerializer, SupplierPartSerializer
|
||||||
|
|
||||||
from part.serializers import PartBriefSerializer
|
from part.serializers import PartBriefSerializer
|
||||||
|
@ -258,7 +258,7 @@ class PurchaseOrderReceiveTest(OrderTest):
|
|||||||
|
|
||||||
def test_invalid_items(self):
|
def test_invalid_items(self):
|
||||||
"""
|
"""
|
||||||
Test than errors are returned as expected for invalid data
|
Test than errors are returned as expected for invalid data
|
||||||
"""
|
"""
|
||||||
|
|
||||||
data = self.post(
|
data = self.post(
|
||||||
@ -347,7 +347,7 @@ class PurchaseOrderReceiveTest(OrderTest):
|
|||||||
self.assertEqual(line_2.received, 50)
|
self.assertEqual(line_2.received, 50)
|
||||||
|
|
||||||
# Receive two separate line items against this order
|
# Receive two separate line items against this order
|
||||||
data = self.post(
|
self.post(
|
||||||
self.url,
|
self.url,
|
||||||
{
|
{
|
||||||
'items': [
|
'items': [
|
||||||
@ -363,7 +363,8 @@ class PurchaseOrderReceiveTest(OrderTest):
|
|||||||
],
|
],
|
||||||
'location': 1, # Default location
|
'location': 1, # Default location
|
||||||
},
|
},
|
||||||
).data
|
expected_code=201,
|
||||||
|
)
|
||||||
|
|
||||||
# There should be two newly created stock items
|
# There should be two newly created stock items
|
||||||
self.assertEqual(self.n + 2, StockItem.objects.count())
|
self.assertEqual(self.n + 2, StockItem.objects.count())
|
||||||
|
@ -1570,7 +1570,6 @@ function constructField(name, parameters, options) {
|
|||||||
// Div for error messages
|
// Div for error messages
|
||||||
html += `<div id='errors-${name}'></div>`;
|
html += `<div id='errors-${name}'></div>`;
|
||||||
|
|
||||||
|
|
||||||
html += `</div>`; // controls
|
html += `</div>`; // controls
|
||||||
html += `</div>`; // form-group
|
html += `</div>`; // form-group
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user