diff --git a/InvenTree/InvenTree/version.py b/InvenTree/InvenTree/version.py index 457ad3bd28..4aba826044 100644 --- a/InvenTree/InvenTree/version.py +++ b/InvenTree/InvenTree/version.py @@ -4,7 +4,7 @@ Provides information on the current InvenTree version import subprocess -INVENTREE_SW_VERSION = "0.0.2" +INVENTREE_SW_VERSION = "0.0.3" def inventreeVersion(): diff --git a/InvenTree/order/templates/order/order_wizard/select_parts.html b/InvenTree/order/templates/order/order_wizard/select_parts.html index b872e5aa71..c25def7054 100644 --- a/InvenTree/order/templates/order/order_wizard/select_parts.html +++ b/InvenTree/order/templates/order/order_wizard/select_parts.html @@ -36,8 +36,8 @@ {{ part.full_name }} {{ part.description }} - @@ -63,8 +63,8 @@ - diff --git a/InvenTree/order/templates/order/order_wizard/select_pos.html b/InvenTree/order/templates/order/order_wizard/select_pos.html index 4ae0a89c95..4988530419 100644 --- a/InvenTree/order/templates/order/order_wizard/select_pos.html +++ b/InvenTree/order/templates/order/order_wizard/select_pos.html @@ -41,8 +41,9 @@ class='btn btn-default btn-create' id='new_po_{{ supplier.id }}' title='Create new purchase order for {{ supplier.name }}' - type='button'> - + type='button' + onclick='newPurchaseOrderFromOrderWizard()'> + diff --git a/InvenTree/order/templates/order/receive_parts.html b/InvenTree/order/templates/order/receive_parts.html index 68a6533b2e..9f773cd411 100644 --- a/InvenTree/order/templates/order/receive_parts.html +++ b/InvenTree/order/templates/order/receive_parts.html @@ -57,8 +57,8 @@ Receive outstanding parts for {{ order }} - {{ order.description }} - diff --git a/InvenTree/part/bom.py b/InvenTree/part/bom.py index 1a37aa92d0..baf46e8618 100644 --- a/InvenTree/part/bom.py +++ b/InvenTree/part/bom.py @@ -149,9 +149,7 @@ class BomUploadManager: return len(self.data.headers) def row_count(self): - """ Return the number of rows in the file. - Ignored the top rows as indicated by 'starting row' - """ + """ Return the number of rows in the file. """ if self.data is None: return 0 diff --git a/InvenTree/part/forms.py b/InvenTree/part/forms.py index 38280bbc1c..0d82183a93 100644 --- a/InvenTree/part/forms.py +++ b/InvenTree/part/forms.py @@ -8,7 +8,6 @@ from __future__ import unicode_literals from InvenTree.forms import HelperForm from django import forms -from django.core.validators import MinValueValidator from .models import Part, PartCategory, PartAttachment from .models import BomItem @@ -51,18 +50,6 @@ class BomUploadSelectFile(HelperForm): ] -class BomUploadSelectFields(HelperForm): - """ Form for selecting BOM fields """ - - starting_row = forms.IntegerField(required=True, initial=2, help_text='Index of starting row', validators=[MinValueValidator(1)]) - - class Meta: - model = Part - fields = [ - 'starting_row', - ] - - class EditPartAttachmentForm(HelperForm): """ Form for editing a PartAttachment object """ diff --git a/InvenTree/part/templates/part/bom_upload/select_fields.html b/InvenTree/part/templates/part/bom_upload/select_fields.html index 50e55f40da..21849f31f8 100644 --- a/InvenTree/part/templates/part/bom_upload/select_fields.html +++ b/InvenTree/part/templates/part/bom_upload/select_fields.html @@ -24,9 +24,6 @@
{% csrf_token %} - {% load crispy_forms_tags %} - - {% crispy form %} @@ -40,8 +37,8 @@
{{ col.name }} -
@@ -69,8 +66,8 @@ {% for row in bom_rows %} - {{ forloop.counter }} diff --git a/InvenTree/part/templates/part/bom_upload/select_parts.html b/InvenTree/part/templates/part/bom_upload/select_parts.html index 7cc9cd8364..9faeacc3ea 100644 --- a/InvenTree/part/templates/part/bom_upload/select_parts.html +++ b/InvenTree/part/templates/part/bom_upload/select_parts.html @@ -47,8 +47,8 @@ {% for row in bom_rows %} - @@ -57,8 +57,8 @@ {% for item in row.data %} {% if item.column.guess == 'Part' %} -