Commit Graph

9685 Commits

Author SHA1 Message Date
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
dd5eeb7c61 Add breadcrumbs to purchase order and sales order pages 2021-10-26 22:46:30 +11:00
Oliver
87154c0240 Bump API version 2021-10-26 22:17:31 +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
e7c25126a4 Construct table of "shipments" 2021-10-26 00:17:17 +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
9fcc55d71d Admin page for new model 2021-10-25 22:50:10 +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
e7bd91096c
Merge pull request #2195 from SchrodingersGat/sales-order-pricing-fix
Sales order pricing fix
2021-10-25 07:14:16 +11:00
Oliver
65b673b2bb Improve pricing rendering for purchase order table 2021-10-24 19:43:05 +11:00
Oliver
bc596c1f20 Improve rendering of pricing in sale order table 2021-10-24 19:40:32 +11:00
Oliver
5f6e67086f Add "reload" button for salesorderlineitem table 2021-10-24 19:35:23 +11:00
Oliver
a0140dc9a2 bug fix: enable "table reload" for tables without any filters
- setupFilterList function was returning too early
2021-10-24 19:35:15 +11:00
Oliver
367b80c17a
Merge pull request #2194 from matmair/reduce-vertical-space
Move part detail toggle button
2021-10-24 19:08:07 +11:00
Matthias
7f6f22fb03
move part toggle button
under action buttons to save vertical space when closed
2021-10-24 00:40:23 +02:00
Oliver
5392011130
Merge pull request #2192 from matmair/fix-sso-signup
Fix sso signup
2021-10-24 08:32:08 +11:00
Matthias Mair
edd2e16dfc
Merge branch 'inventree:master' into fix-sso-signup 2021-10-20 23:52:47 +02:00
Oliver
5571cfdbdb
Merge pull request #2184 from SchrodingersGat/allocation-fixes
Sales order allocation fix
2021-10-20 23:53:59 +11:00
Oliver
50a79770e5 Un-comment lines in build.serializers 2021-10-20 23:37:26 +11:00
Oliver
f83dc134ef linting 2021-10-20 23:20:43 +11:00
Oliver
8805b0a553 Add similar auto field capabilities to build order 2021-10-20 23:14:52 +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
f7b6c68237 Pre-fill the form with the remaining allocation quantity 2021-10-20 22:37:54 +11:00
Oliver
9fe1dd7be4
Merge pull request #2180 from SchrodingersGat/build-fix
Fix for rendering of build order page
2021-10-19 22:00:09 +11:00
Oliver
c75586bd9a Fix for rendering of build order page 2021-10-19 21:36:51 +11:00
Oliver
f31b8a6e99
Merge pull request #2179 from SchrodingersGat/settings-page-candy
Settings page candy
2021-10-19 12:17:32 +11:00
Oliver
60771a74a4 "InvenTree Settings" > "Global Settings" 2021-10-19 11:00:32 +11:00
Oliver
a3b3bdc88b Add some more icons to the settings page 2021-10-19 10:59:52 +11:00
Oliver
049f5c7fe1
Merge pull request #2178 from SchrodingersGat/home-page-improvements
UI tweaks
2021-10-19 09:08:45 +11:00
Oliver
4de3bed342 UI tweaks 2021-10-18 22:19:54 +11:00
Oliver
860cf46cb0
Merge pull request #2177 from SchrodingersGat/quick-search
Add a per-user setting to enable display of stock in search results
2021-10-18 16:57:34 +11:00
Oliver
5802a27fe7 Add a per-user setting to enable display of stock in search results 2021-10-18 16:23:42 +11:00
Oliver
ddeab64072
Merge pull request #2176 from SchrodingersGat/quick-search
Display stock level in quick search bar
2021-10-18 16:13:48 +11:00
Oliver
4bb0b725da JS cleanup 2021-10-18 15:51:50 +11:00
Oliver
ce921a6774 Display stock level in quick search bar 2021-10-18 15:40:00 +11:00
Oliver
03726911e1
Merge pull request #2175 from SchrodingersGat/grid-view
Improvements to "grid view" for parts list
2021-10-18 13:00:28 +11:00
Oliver
4b344cd7bb CSS tweaks 2021-10-18 12:36:42 +11:00
Oliver
68cfd8615e Improvements to "grid view" for parts list
- Display 5 tiles per line
- Reduce padding
- Add border
2021-10-18 12:19:16 +11:00
Oliver
addb265984
Merge pull request #2159 from SchrodingersGat/build-output-complete
Build output improvements
2021-10-18 09:16:21 +11:00
Oliver
e04dfa0681 Unit test fix 2021-10-18 08:58:04 +11:00
Matthias
faa620b8f0
remove commit from super call 2021-10-17 18:52:59 +02:00
Oliver
fb6f15f462 Delete a bunch of old template files 2021-10-17 22:57:15 +11:00
Oliver
83faaa2da3 unit test fixes 2021-10-17 22:57:07 +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
7c5c1b6696 typo fix 2021-10-17 21:55:33 +11:00
Oliver
02f4f0fd15 js linting fixes 2021-10-17 21:50:18 +11:00
Oliver
a97a918860 cut out the fat
(removing dead code for outdated form views)
2021-10-17 21:46:33 +11:00