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
Matthias
0ebc45e834
replace i html tags
2021-09-02 00:18:47 +02:00
Matthias
6a420fd95c
replace bold tags
2021-09-02 00:17:12 +02:00
Oliver
610c05384b
Merge pull request #2020 from SchrodingersGat/mpn-sorting-fix
...
Mpn sorting fix
2021-08-26 22:06:06 +10:00
Oliver
ac8a0be74a
Enable sorting by total_price
2021-08-26 08:48:19 +10:00
Oliver
bad246bca6
Fixes for ordering of stock table
2021-08-26 08:24:31 +10:00
Oliver
212a7eeed1
Disable filtering for total_price (as this is not a database field!)
2021-08-26 07:59:47 +10:00
Oliver
8660f13ef5
Allow sorting by purchase price (unit price)
2021-08-26 07:50:19 +10:00
Oliver
51992a92c1
Change name of purchaseorder line item table
...
- Was conflicting with purchaseorder table
- Saved column selections were being overridden
2021-08-25 18:00:32 +10:00
Oliver
4b8ef2ad62
Implements custom filtering back end
2021-08-25 17:46:42 +10:00
Oliver
c9756d30bd
Add a custom OrderingFilter class
...
Needs further work
2021-08-25 12:04:15 +10:00
Oliver
2923589c4a
Fix sortName for purchase order line item table
2021-08-25 12:02:25 +10:00
Oliver Walters
f6b9d9e6d0
Revert "WIP"
...
This reverts commit 42af52ee51
.
2021-08-24 22:33:29 +10:00
Oliver Walters
42af52ee51
WIP
2021-08-24 22:31:13 +10:00
Oliver Walters
0d7eb6b72c
Style fixes
2021-08-24 22:25:25 +10:00
Oliver Walters
d5e58fd798
Fix for status code serializer
2021-08-24 22:03:52 +10:00
Oliver
86e3e26196
Merge remote-tracking branch 'inventree/master' into receive-via-api
2021-08-24 15:07:55 +10:00
Oliver
1b65fbad2c
Update unit tests
...
- Found some bugs too, thanks unit tests!
2021-08-24 11:42:08 +10:00
Oliver
d30173132a
Actually receive items
2021-08-24 08:49:23 +10:00
Oliver
2aa505b2cb
Fix unit tests to match new API format
2021-08-24 08:18:59 +10:00
eeintech
35738ce026
Updated all 'add' buttons to 'btn-success' CSS class
2021-08-23 14:52:35 -04:00
eeintech
6f742319e5
Corrected color of 'new' orders UI button
2021-08-23 12:48:47 -04:00
Oliver
6091f2ba33
Serializer improvements
...
- Pass the "order" down to the nested serializers for validation
2021-08-24 00:29:38 +10:00
Oliver
dc53a433a7
Fix serializer nesting
...
- Add new API endpoint to receive items
- Add unit testing
2021-08-23 23:35:22 +10:00
Oliver
28cc241354
Custom DRF serializers for receiving line items against a purchase order
2021-08-23 23:13:07 +10:00
Oliver
6141ddc3eb
SalesOrderAttachment and PurchaseOrderAttachment
2021-08-16 10:53:28 +10:00
eeintech
9205d6d67c
Improved creation of purchase order line items from file upload
2021-08-12 14:27:00 -04:00
Oliver
7756c766c3
Fix stock.js
2021-07-29 12:35:21 +10:00
Oliver
4381a16b0e
Template cleanup
2021-07-29 12:31:07 +10:00
eeintech
8ac3d42fd8
Improved handling of po items destination
2021-07-20 17:15:01 -04:00
eeintech
23db7a89a9
Updated PO upload template, moved call to button, improved cleaned_decimal method to handle comma separator
2021-07-19 14:20:54 -04:00
Oliver Walters
e17b92b126
Add 'destination' field to POLineItem API serializer
2021-07-18 21:25:59 +10:00
Oliver Walters
f4f7514b45
Similar fix for customer_reference field
2021-07-18 10:47:35 +10:00
Oliver Walters
9719a14587
Add supplier_reference field to form
2021-07-18 10:33:27 +10:00
Oliver
5ce6dd325d
Merge pull request #1824 from SchrodingersGat/po-currency
...
Use default curreny code
2021-07-16 13:54:41 +10:00
Oliver
733951883e
Use default curreny code
2021-07-16 13:35:51 +10:00
Oliver
0fcb4e3170
Link fixes
2021-07-16 13:30:11 +10:00