Commit Graph

81 Commits

Author SHA1 Message Date
Oliver 0963602bea Add optional part lookup by "part" field 2022-02-07 08:37:39 +11:00
Oliver 81271bf6b9 Add "clear input" callback function 2022-02-05 10:01:07 +11:00
Oliver bdf0b5b446 Construct required form fields
- required some additional functionality in forms.js
2022-02-05 09:53:35 +11:00
Oliver 8a86932c7b Initialize related field for "part" selection 2022-02-05 01:36:46 +11:00
Oliver 8a8d718534 Basic javascript function to construct BOM table from extracted data 2022-02-05 01:26:34 +11:00
Oliver Walters 681e007092 Add clean() function for PurchaseOrderLineItem
Also adds renderer for purchaseorder model
2022-01-26 22:56:00 +11:00
Oliver Walters 9ffcdbc417 Fix issues when re-opening a secondary modal 2022-01-19 19:18:20 +11:00
Oliver Walters 3c328feb65 Donate keyboard focus when creating a secondary modal 2022-01-19 19:03:47 +11:00
Oliver Walters 21f2dd5896 Use modal "depth" to construct form fields
- Top level modals are not changed
2022-01-19 18:57:53 +11:00
Oliver 88fc0393b7 Logic fix for boolean fields in JS forms
(cherry picked from commit 10dec7743e)
2021-12-13 23:11:56 +11:00
Oliver e9796676c0 Add a progress spinner to modal forms 2021-12-04 10:44:48 +11:00
Oliver da6c723184 Merge branch 'master' into partial-shipment
# Conflicts:
#	InvenTree/order/serializers.py
2021-11-29 22:59:36 +11:00
Oliver ad6e34953b Update placeholders for serial numbers when creating a new stock item 2021-11-27 00:17:31 +11:00
Oliver 192cfb80b0 Merge remote-tracking branch 'inventree/master' into partial-shipment
# Conflicts:
#	InvenTree/InvenTree/version.py
2021-11-16 17:06:38 +11:00
Oliver ca3c3685fe Tweaks 2021-11-15 23:51:21 +11:00
Oliver d5cf2b08ac Merge remote-tracking branch 'inventree/master' into partial-shipment
# Conflicts:
#	InvenTree/InvenTree/version.py
#	InvenTree/order/models.py
2021-11-11 12:35:59 +11:00
Oliver 5df4374607 javascript for editing settings via API 2021-11-09 21:16:37 +11:00
Oliver ac97edd18b JS linting 2021-11-08 09:58:55 +11:00
Oliver c9924470ad Replace dialog messages with alerts 2021-11-08 09:44:45 +11:00
Oliver f27acde934 More fixes
- Allow stock item creation for inactive parts
- Better handling of successful stock item creation
- Disable fields rather than hiding them
2021-11-05 00:02:55 +11:00
Oliver b41dbba2b0 Correctly handle serialization of newly created stock 2021-11-04 23:18:59 +11:00
Oliver 3be4acf3ef More refactoring for notifications
- Adds default behaviour for successful stock item creation
2021-11-04 23:09:49 +11:00
Oliver be543ca3da Merge remote-tracking branch 'inventree/master' into stock-item-forms 2021-11-04 10:57:40 +11:00
Oliver b6d48cab2a Make further use of notification messages 2021-11-04 10:14:01 +11:00
Oliver df30a85c03 More fixes:
- Add "back to site" button on logout screen
- Add favicon to account pages
- Refactor notifications / alerts / caching
2021-11-04 09:59:56 +11:00
Oliver d8e3c40f78 Implementing more complex behaviour for StockItem creation form 2021-11-02 23:04:10 +11:00
Oliver ad0277a8c3 Merge branch 'master' into stock-item-forms
# Conflicts:
#	InvenTree/stock/serializers.py
#	InvenTree/stock/templates/stock/item_base.html
2021-11-01 12:00:40 +11:00
Oliver eaa315e726 Merge branch 'master' into partial-shipment
# Conflicts:
#	InvenTree/build/templates/build/build_base.html
#	InvenTree/order/templates/order/order_base.html
#	InvenTree/order/templates/order/sales_order_base.html
#	InvenTree/order/templates/order/sales_order_detail.html
#	InvenTree/order/templates/order/so_navbar.html
2021-10-30 23:44:06 +11:00
Oliver 638c9d4007 Enable bootstrap-5 theme for select2 2021-10-30 22:16:40 +11:00
Oliver a15cc1f3ba linting fixes 2021-10-30 00:07:51 +11:00
Oliver 2778ff55da Remove btn-default 2021-10-28 19:57:17 +11:00
Oliver b1cdcdf0b8 More fixes
- About modal
- Server-side modals
- icon badges
- checkboxes in API forms
2021-10-28 19:41:46 +11:00
Oliver 0ef0c539a7 Update bootstrap-table 2021-10-28 13:03:47 +11:00
Oliver a004f293ff Replace all instances of data-toggle with data-bs-toggle 2021-10-27 22:06:30 +11:00
Oliver 9df9aaa18f breadcrumbs 2021-10-27 20:17:37 +11:00
Oliver 219191eb6a Updates for modal forms:
- Fix css classes
2021-10-27 16:48:45 +11:00
Oliver 827ff0f58b Modal forms fixes
- Update bootstrap classes and terminology
- Visual tweaks to modal form title block
2021-10-27 16:26:28 +11:00
Oliver c6ceea4d45 Remove reliance on "bootstrap-toggle" library
- Still needs fixing in modal forms
2021-10-27 09:37:07 +11:00
Oliver 75845ce1ca Merge branch 'master' into partial-shipment 2021-10-27 01:05:55 +11:00
Oliver 7252b299f7 Add modal API form to allocate stock items against a SalesOrder
- Added model renderer for SalesOrderShipment
- Some refactorin'
2021-10-27 00:41:12 +11:00
Oliver b35ce79d6a js linting fix 2021-10-26 08:00:28 +11:00
Oliver cbbad98fea Improve client-side validation of numerical inputs 2021-10-26 07:52:29 +11:00
Oliver 2d910022ac Fix for supplier price breaks
- Make "price" field an InvenTreeMoneySerializer instance
- Add client-side validation for number inputs
2021-10-26 01:55:41 +11:00
Oliver 92568748cf Further improvements
- Add callback for when a select2 form field is updated
- Adjust selected quantity based on returned data
- auto_fill the stock_item field
2021-10-20 23:03:03 +11:00
Oliver 4a0ed4b2a1 Start of API forms for stock item 2021-10-20 10:53:21 +11:00
Oliver 542b4113a1 Improvements for build output completion
- Check if the output is fully allocated (throw error if not)
- Reload tables after actions performed
2021-10-17 21:37:10 +11:00
Oliver 0c60387626 Extract a list of existing substitute parts from the form 2021-10-14 16:50:56 +11:00
Oliver 31665e3b8d Enable editing of "sales order" from build order
- Add a renderer for the sales order model
2021-10-07 10:45:14 +11:00
Oliver dd4428464d Receiving items against a purchase order now makes use of the API forms
- Delete old unused code
- Improve serializer validation
2021-10-05 16:05:18 +11:00
Oliver 7ecd4c70e7 JS linting 2021-10-05 11:02:57 +11:00