2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-11 07:24:15 +00:00
Commit Graph

78 Commits

Author SHA1 Message Date
30684685f9 Add unit test to check an "empty" (null) barcode can be supplied 2021-11-09 12:07:57 +11:00
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
0b7811b7e0 Add API endpoint for SalesOrderAllocation model
- Increment API version number
2021-10-06 16:54:40 +11:00
4d8bec9663 Fix rendering of row sub tables 2021-10-06 16:38:13 +11:00
1ea9b6f4cf PEP fixes 2021-10-05 16:10:00 +11:00
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
e39f1c320c Merge remote-tracking branch 'inventree/master' into auto-allocation-improvements 2021-10-05 12:53:47 +11:00
99503a60d3 Fix for "barcode" field in purchase order receive serializer
- Allow blank values!
2021-10-05 12:16:41 +11:00
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
29588ff2c5 Refactor the POReceive API endpoint
- Lessons learned from the build allocate
- Use serializer.save() directly
2021-10-05 11:20:43 +11:00
dd4db6442e PEP fixes 2021-10-05 00:45:49 +11:00
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
f38bf6e20a Adds unit testing for barcode field 2021-09-07 23:34:14 +10:00
bf05c9cfae Adds "barcode" field to POLineItem receive serializer 2021-09-07 23:06:36 +10:00
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
ac8a0be74a Enable sorting by total_price 2021-08-26 08:48:19 +10:00
0d7eb6b72c Style fixes 2021-08-24 22:25:25 +10:00
d5e58fd798 Fix for status code serializer 2021-08-24 22:03:52 +10:00
1b65fbad2c Update unit tests
- Found some bugs too, thanks unit tests!
2021-08-24 11:42:08 +10:00
d30173132a Actually receive items 2021-08-24 08:49:23 +10:00
6091f2ba33 Serializer improvements
- Pass the "order" down to the nested serializers for validation
2021-08-24 00:29:38 +10:00
dc53a433a7 Fix serializer nesting
- Add new API endpoint to receive items
- Add unit testing
2021-08-23 23:35:22 +10:00
28cc241354 Custom DRF serializers for receiving line items against a purchase order 2021-08-23 23:13:07 +10:00
6141ddc3eb SalesOrderAttachment and PurchaseOrderAttachment 2021-08-16 10:53:28 +10:00
e17b92b126 Add 'destination' field to POLineItem API serializer 2021-07-18 21:25:59 +10:00
889834b693 Refactor POLineItemCreate form 2021-07-03 21:43:22 +10:00
c524f754e9 Allow null values for purchase_price and sale_price 2021-07-03 21:27:03 +10:00
77c3aa5379 Use custom currency choices 2021-07-03 12:45:59 +10:00
8c3a4b60ab Refactoring forms for order line items
- Required some fixes for money serializer
-
2021-07-03 01:17:29 +10:00
1cdf03ef49 Added MinMoneyValidator to InvenTreeModelMoneyField
- Refactor edit and delete forms for PurchaseOrderLineItem
2021-07-03 00:34:41 +10:00
993abd9d91 Refactor forms for sales orders 2021-07-03 00:14:36 +10:00
984828f3bb Specify 'default' functions for 'reference' field in SalesOrder and PurchaseOrder
- Refactor CreatePurchaseOrder form
- Some migrations
2021-07-02 23:59:02 +10:00
5e9372f2d6 Add API endpoints for Owner model
- Will be necessary for PurchaseOrder, SalesOrder and BuildOrder forms
2021-07-02 22:45:42 +10:00
30ac5dba55 Display attachment upload date 2021-06-30 17:44:23 +10:00
e760aa172a Merge branch 'master' into part-import 2021-06-26 23:58:41 +02:00
1456868d03 Add default values for line item serializers
- Once https://github.com/inventree/InvenTree/issues/1687 is fixed, remove default values
2021-06-22 17:03:21 +10:00
26dd9c10a4 Fixes for SalesOrder API 2021-06-22 16:43:38 +10:00
3fa3ce06a1 Fixes for PurchaseOrder API interface
- Allow DELETE endpoint for PurchaseOrder
- Remove 'read_only' attribute for 'reference' field
- Add extra functionality to API test class
- Add unit testing
2021-06-22 16:28:42 +10:00
7d5aa8189d Merge branch 'master' of https://github.com/inventree/InvenTree into part-import 2021-06-18 23:30:54 +02:00
b86793703e Merge branch 'part-import' of https://github.com/matmair/InvenTree into part-import 2021-06-18 23:14:48 +02:00
59e6cc1a10 Merge branch 'master' of https://github.com/inventree/InvenTree into part-import 2021-06-18 23:10:59 +02:00
10ecddf9b4 Fixes after rebase 2021-06-18 17:25:24 +10:00
0b8a50cd92 Add 'location_detail' filter 2021-06-18 16:51:34 +10:00
caf52c6ce5 Add optional detail elements to SOAllocation API 2021-06-18 16:49:56 +10:00
ad8dbb5900 Add API LIST endpoint for SalesOrderAllocations 2021-06-18 16:48:32 +10:00
cd07ea835d feat(purchase orders): show the preferred location for each PO Line
Adds the ability for the Purchaser to specify where the item is
intentended to go when received.  If the Purchaser does not set a
preferred location, then the default location for the part is displayed.
If the item is received them where it was actually placed is shown.

NOTE: if an item is split when received only one of the resulting
StockItem location is used.

Fixes #1467
Addresses some of the requests in #551
2021-06-09 09:06:03 -06:00
bca2f4a07b feat(sales_order): Stock Items show the PO number
Stock items show the PO number that they were purchased on when being
viewed in the sales order allocation modal and when viewing the sales
order details.
2021-05-13 14:18:25 -06:00
e59f467c79 Merge branch 'master' into spaces! 2021-05-08 12:27:19 +02:00
f2b0717d10 removes all lines consisting only of spaces
this really bothers me for some reason - nothing technical
2021-05-06 12:11:38 +02:00
294e86cc38 Add in sale price model 2021-05-04 21:56:25 +02:00