Oliver
421db61f21
Adding unit testing for new features
2022-02-28 23:09:57 +11:00
Oliver
73484192a5
Add "batch code" and "serial numbers" serializer fields when receiving stock items against a purchase order
2022-02-28 22:47:41 +11:00
Oliver Walters
9a2d47cd53
style fixes
2022-01-26 23:17:58 +11:00
Oliver Walters
681e007092
Add clean() function for PurchaseOrderLineItem
...
Also adds renderer for purchaseorder model
2022-01-26 22:56:00 +11:00
eeintech
391836689d
Allow decimal for quantity received on PO
2022-01-17 09:04:14 -05:00
Oliver
1243923944
Event refactoring
2022-01-10 17:28:44 +11:00
Oliver
886b1f1d72
Simplify event triggering
...
- add generic receivers for database actions
- exclude django_q tables, otherwise we get an infinite loop!
Ref: https://stackoverflow.com/questions/17507784/consolidating-multiple-post-save-signals-with-one-receiver/32230933#32230933
2022-01-10 17:24:53 +11:00
Oliver
13d8bf437a
PEP fixes
2022-01-10 09:02:11 +11:00
Oliver
2370e41961
Add multiple triggered events for the "order" app
2022-01-10 09:01:17 +11:00
Oliver
943b27e195
Adds "items" list to API endpoint
2021-12-20 19:29:08 +11:00
Oliver
9e35c52b1d
unit testing fixes
2021-12-04 17:30:13 +11:00
Oliver
31398b4c10
Sales order can now be completed via the API
2021-12-04 13:50:11 +11:00
Oliver
008c52ef39
Allocation by serial number now moved to the API
2021-12-04 13:08:00 +11:00
Oliver
9ba6ac423d
Add shipment status to sales order page
2021-12-04 10:16:51 +11:00
Oliver
88fce1e813
Unit test fixes
2021-12-03 18:42:36 +11:00
Oliver
3c3dd9368d
Do not auto-complete salesorder when shipment is done
...
- User might want to add more line items?
2021-12-03 00:45:44 +11:00
Oliver
ecf70b6d4d
Some PEP fixes
2021-12-02 23:58:02 +11:00
Oliver
e1668c8662
More stuffs:
...
- Allow filtering of salesorderlineitem by "completed" status
- Allow deletion of (empty) shipment
- Show which items are going to be shipped
2021-12-02 23:52:53 +11:00
Oliver
e74e7138a9
More stuff:
...
- Pass tracking number through when completing a shipment
- Reload tables automatically when certain actions are performed
- Limit stock items to only those with available stock
2021-12-02 21:59:59 +11:00
Oliver
bce69b7733
Removes ship_order function
2021-11-30 00:45:40 +11:00
Oliver
3f9b280e17
Allow shipment numbers to be non-unique for different sales orders
...
- must be unique for a given sales order
2021-11-30 00:42:30 +11:00
Oliver
f3f3030b37
Adds API endpoint to "ship" a sales order shipment
2021-11-30 00:02:03 +11:00
Oliver
c6b11b5e38
New logic for completing a SalesOrderShipment
2021-11-29 23:11:21 +11:00
Oliver
da6c723184
Merge branch 'master' into partial-shipment
...
# Conflicts:
# InvenTree/order/serializers.py
2021-11-29 22:59:36 +11:00
Oliver
8aed68a1d1
Adds "shipped" field to SalesOrderLineItem
...
- This is an internal tracker of quantity of items shipped
- Updated by the database logic (not by the user)
- Keeps track of how many items have been shipped against a lineitem
- Does not matter if the actual stock items are later removed from the database
2021-11-26 23:20:27 +11:00
Oliver
68e2b0850b
Merge branch 'master' into partial-shipment
...
# Conflicts:
# InvenTree/build/serializers.py
# InvenTree/order/templates/order/so_sidebar.html
2021-11-26 08:25:51 +11:00
Matthias
d884e62be1
[FR] Confirm to W293
...
Fixes #2335
2021-11-23 00:28:23 +01: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
b2ae346343
Provide model-level default function option
2021-11-08 13:30:59 +11:00
Oliver
2eb93b5a49
Add functionality to create a new sales order shipment
...
- From the "New Shipment" button
- As a secondary modal from the stock allocation dialgo
2021-10-27 00:57:47 +11:00
Oliver
bff9f0828a
Adds API endpoint to allocate stock items against a SalesOrder
...
- SalesOrderAllocations are no longer created manually
- API endpoint performs data validation
- Multiple line items can be allocated at once
- Adds unit testing for new API endpoint
2021-10-26 23:51:36 +11:00
Oliver
c90c224ed2
Update "reference" field for shipment model
...
- Must be unique
- Auto-incrementing default value
- Updated migrations
2021-10-26 22:13:55 +11:00
Oliver
e9e4d13541
Add list and detail API endpoints for SalesOrderShipment
...
- Filter by order
- Filter by "shipped" status
- SalesOrderShipment serializer includes information on items allocated to that shipment
2021-10-25 23:34:58 +11:00
Oliver
d31f2be955
Make "shipment" field required for a SalesOrderAllocation
...
- Deleting a "Shipment" will delete any "Allocation" objects which reference it
- Improve existing data migration for new shipment model
2021-10-25 22:47:41 +11:00
Oliver
ce5b47460a
Added data migration for existing SalesOrder instances
...
- If a SalesOrder is "PENDING" or there are allocations available, a shipment is created
2021-10-25 22:35:27 +11:00
Oliver
2f7e0974b7
Add 'shipment' foreign-key field to SalesOrderAllocation model
2021-10-25 17:42:56 +11:00
Oliver
f00ec26efd
Create SalesOrderShipment model
2021-10-25 13:09:06 +11:00
Oliver
d3d1d2f577
Auto-rebuild the reference field for the SalesOrder on save
2021-10-14 18:00:17 +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
336b05aa4e
Exclude sales order allocations when searching stock
2021-10-06 17:42:00 +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 Walters
f38bf6e20a
Adds unit testing for barcode field
2021-09-07 23:34:14 +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
Oliver
d30173132a
Actually receive items
2021-08-24 08:49:23 +10:00
eeintech
9205d6d67c
Improved creation of purchase order line items from file upload
2021-08-12 14:27:00 -04:00
Oliver
6a995042c9
Fix bug relating no PurchaseOrderLineItem with null Part reference
2021-07-09 12:10:17 +10:00
Oliver
004b36b1df
Refactor BuildOrderCreate form
2021-07-09 00:18:03 +10:00