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
5f6e67086f
Add "reload" button for salesorderlineitem table
2021-10-24 19:35:23 +11:00
Oliver
6ebb956c8d
Fix generation of API documentation
...
- Can't use get_object_or_404 in API views!
2021-10-17 22:32:03 +11:00
Oliver
a97a918860
cut out the fat
...
(removing dead code for outdated form views)
2021-10-17 21:46:33 +11:00
Oliver
ccaa7d2683
Merge branch 'master' into build-output-complete
2021-10-16 13:18:35 +11:00
Oliver
b60296e494
Add some more unit tests
2021-10-16 13:16:19 +11:00
Oliver
bf47b57c82
working on updating build output tables
2021-10-14 23:46:21 +11:00
Oliver
be6f417dff
Random button cleanup
2021-10-14 23:13:12 +11:00
Oliver
54dd05a24d
Add an API serializer to complete build outputs
2021-10-14 23:13:01 +11:00
Oliver
2c9bbb051a
Add some unit tests
...
- Saving a model automatically updates the reference_int field
- Data migrations are correctly applied
2021-10-14 19:12:23 +11:00
Oliver
d0f60766e0
exclude new field from admin view
2021-10-14 18:57:02 +11:00
Oliver
d3d1d2f577
Auto-rebuild the reference field for the SalesOrder on save
2021-10-14 18:00:17 +11:00
Oliver
068b54f666
Data migration for PurchaseOrder and SalesOrder models
2021-10-14 17:58:09 +11:00
Oliver
7ce0f817aa
Add a 'reference_int' field to the models, to be used as a secondary index
2021-10-14 17:45:43 +11:00
Oliver
e46875b0a3
Apply same fix to PurchaseOrder and SalesOrder lists
2021-10-14 14:31:25 +11:00
Oliver
64cf916c50
Add a form to select export format
2021-10-07 13:33:10 +11:00
Oliver
d391c5059b
Adds button to sales order page to export to file
2021-10-07 13:21:30 +11:00
Oliver
996ccbe5bd
Adds view for exporting sales order
2021-10-07 13:16:25 +11:00
Oliver
535d45bce4
Remove outdated Views / Forms
2021-10-06 20:19:29 +11:00
Oliver
336b05aa4e
Exclude sales order allocations when searching stock
2021-10-06 17:42:00 +11:00
Oliver
4d13674452
Migrate views to use the API forms architecture:
...
- SalesOrderAllocationEdit
- SalesOrderAllocationDelete
2021-10-06 17:16:01 +11:00
Oliver
b8b4c60c43
Fix API endpoints for so-allocation detail
2021-10-06 17:02:03 +11:00
Oliver
0b7811b7e0
Add API endpoint for SalesOrderAllocation model
...
- Increment API version number
2021-10-06 16:54:40 +11:00
Oliver
4d8bec9663
Fix rendering of row sub tables
2021-10-06 16:38:13 +11:00
Oliver
4d2cf233b3
Move the "loadSalesOrderLineItemTable" code to order.js
2021-10-06 16:14:39 +11:00
Oliver
93c53315cc
Unit test fixes
2021-10-05 17:35:10 +11:00
Oliver
dd760bfecd
Add filtering by "completed" status for purchase order line items
2021-10-05 17:15:41 +11:00
Oliver
5e951ef64b
Add 'filtering' for purchase order line item table
2021-10-05 16:57:33 +11:00
Oliver
87f1bd87e7
Add button to receive selected items
2021-10-05 16:52:24 +11:00
Oliver
8684b55582
PEP fixes
2021-10-05 16:39:18 +11:00
Oliver
05d8f2b216
Remove outdated unit test case
2021-10-05 16:35:11 +11:00
Oliver
1ea9b6f4cf
PEP fixes
2021-10-05 16:10:00 +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
b75e817447
Construct bare-bones API form
2021-10-05 14:57:50 +11:00
Oliver
e39f1c320c
Merge remote-tracking branch 'inventree/master' into auto-allocation-improvements
2021-10-05 12:53:47 +11:00
Oliver
99503a60d3
Fix for "barcode" field in purchase order receive serializer
...
- Allow blank values!
2021-10-05 12:16:41 +11:00
Oliver
ddcfc8996c
Further fixes for API / serializer classes
...
- Correctly catch and re-throw errors
- Provide request to serializer context
2021-10-05 12:12:37 +11:00
Oliver
29588ff2c5
Refactor the POReceive API endpoint
...
- Lessons learned from the build allocate
- Use serializer.save() directly
2021-10-05 11:20:43 +11:00
Oliver
dd4db6442e
PEP fixes
2021-10-05 00:45:49 +11:00
Oliver
5ded23fd99
Fixes for serializer validation
...
- Note: use the validate() function!
- Ref: https://www.django-rest-framework.org/api-guide/serializers/
- override serializer.save() functionality for simpler operation
2021-10-04 23:44:23 +11:00
Oliver
8c78d3b8ea
Add unit test
2021-10-03 01:03:40 +10:00
Oliver
6d448d8475
Handle internal django errors when receiving purchase order items via the API
...
(cherry picked from commit 9355c68024
)
2021-10-03 00:24:09 +10:00
Oliver
b9b23a3853
bug fix
2021-09-08 14:14:14 +10:00
Oliver
1a21576f28
Adds separate option for "prevent_new_stock" to stock_table
2021-09-08 12:57:42 +10:00
Oliver
8368798280
Move po-line-item-table into javascript file
...
- for better linting
2021-09-08 12:51:49 +10:00
Oliver Walters
f38bf6e20a
Adds unit testing for barcode field
2021-09-07 23:34:14 +10:00
Oliver Walters
bf05c9cfae
Adds "barcode" field to POLineItem receive serializer
2021-09-07 23:06:36 +10:00
Oliver Walters
125554c53f
Merge remote-tracking branch 'upstream/master' into receive-via-api
...
# Conflicts:
# InvenTree/templates/js/dynamic/inventree.js
# InvenTree/templates/js/translated/forms.js
# InvenTree/templates/js/translated/tables.js
2021-09-07 22:34:00 +10:00
Oliver
5d703af932
Add migration file
2021-09-02 11:11:25 +10:00
Oliver
43c4e936a7
Fix on_delete for PurchaseOrderLineItem.destination
...
- Currently set to DO_NOTHING
- However when deleting a StockLocation which has a PurchaseOrderLineItem.destionation point to it, this will cause an IntegrityError
2021-09-02 10:41:23 +10:00