Commit Graph

2621 Commits

Author SHA1 Message Date
Oliver Walters
41b3f1d39c API cleanup
Add / Remove / Count endpoints now work
2020-04-10 00:03:43 +10:00
Oliver Walters
3e5dc65c49 Bugfix for notes field 2020-04-10 00:03:21 +10:00
Oliver Walters
58a0f40889 Simplifiy stock adjustment APIs
- Separate API endpoints for count / add / remove / transfer
- Unit testing
2020-04-09 22:24:05 +10:00
Oliver Walters
1b3f8a9309 Unit testing for the stocktake API 2020-04-09 21:19:13 +10:00
Oliver Walters
f6a1ddf8e7 Re-enable stocktake API 2020-04-09 21:18:55 +10:00
Oliver
5447bc4356
Merge pull request #703 from SchrodingersGat/fixes
Check for missing part thumbnails
2020-04-07 14:38:44 +10:00
Oliver Walters
5aec63d9e4 Remove unused includes 2020-04-07 14:20:43 +10:00
Oliver Walters
1a0a4622a2 Revert makefile change 2020-04-07 13:16:23 +10:00
Oliver Walters
8786776fd6 Remove some tests
- CI complications
2020-04-07 13:08:30 +10:00
Oliver Walters
e94592e42d Moar unit testing plz 2020-04-07 12:09:25 +10:00
Oliver Walters
623a0844d3 Coverage tests for new functions 2020-04-07 11:50:46 +10:00
Oliver Walters
d06018cbbe PEP fixes 2020-04-07 11:40:10 +10:00
Oliver Walters
95032141ce Toot toot! It's the refactor tractor.
- Create helper functions to qualify media and static files
2020-04-07 11:38:57 +10:00
Oliver Walters
ae9ef04013 Use the company thumbnail in the Company API 2020-04-07 11:27:56 +10:00
Oliver Walters
e0655f61d8 Check if Company thumbnails are created on Company app start 2020-04-07 11:23:30 +10:00
Oliver Walters
1a233e7949 Create thumbnails for Company model 2020-04-07 11:17:00 +10:00
Oliver Walters
16d3a87e78 Delete old code 2020-04-07 08:12:10 +10:00
Oliver Walters
7fb89e4dbe Check for missing part thumbnails when the server first runs 2020-04-07 08:08:54 +10:00
Oliver Walters
97f605ef55 Remove some weird trailing zeros 2020-04-07 00:19:51 +10:00
Oliver Walters
1356718bb7 Improver company website icon 2020-04-07 00:19:43 +10:00
Oliver
b319041dfa
Merge pull request #701 from SchrodingersGat/and-yet-more-improvements
And yet more improvements
2020-04-06 22:50:33 +10:00
Oliver Walters
b8bbd15c88 Icon cleanup 2020-04-06 22:02:27 +10:00
Oliver Walters
96547b885e Include supplier-part information in Stock API 2020-04-06 22:02:23 +10:00
Oliver
5956b8cdee
Merge pull request #700 from SchrodingersGat/instance-name
Instance name
2020-04-06 21:09:08 +10:00
Oliver Walters
3eb585df27 fixes for unit testing 2020-04-06 21:01:24 +10:00
Oliver Walters
0840cebd57 Rearrange purchase order table 2020-04-06 20:56:07 +10:00
Oliver Walters
44c10c45cd visual consolidation 2020-04-06 20:50:33 +10:00
Oliver Walters
e6f6a936e0 Can haz moar icons? 2020-04-06 20:24:45 +10:00
Oliver Walters
751937e0c2 Use InstanceName around the place
- Report in /api/ endpoint
- Display in About window
- Include in any generated barcode
2020-04-06 20:11:36 +10:00
Oliver Walters
071c317bae Add 'InstanceName' setting
- Will be auto-generated if it does not already exist
2020-04-06 19:28:08 +10:00
Oliver
7c2af32b38
Merge pull request #698 from SchrodingersGat/stock-api
Further API work
2020-04-06 16:25:04 +10:00
Oliver Walters
92cb7211ce Rename 'image_url' to 'thumbnail' in PartBrief API 2020-04-06 12:57:04 +10:00
Oliver Walters
535f1994b1 Fix order API reference 2020-04-06 12:02:23 +10:00
Oliver Walters
87a09a7220 Rename Order.URL to Order.link 2020-04-06 11:56:52 +10:00
Oliver Walters
a306ad0bc3 Alter "URL" to "link" for Company models 2020-04-06 11:36:25 +10:00
Oliver Walters
789712acbe Rename Build.URL -> Build.link 2020-04-06 11:28:35 +10:00
Oliver Walters
bbe714c8f7 Bugs!
Thanks, unit testing
2020-04-06 11:21:34 +10:00
Oliver Walters
b28487760a Rename Part.URL -> part.link
- Previous migration needed some tweaking to get it to run... because.. why?
- It seems to pass when running manage.py migrate but fails when running manage.py test
- Stumped on this one
2020-04-06 11:16:39 +10:00
Oliver Walters
bd407cd226 Rename "URL" to "link" for StockItem and StockItemTracking models 2020-04-06 10:43:06 +10:00
Oliver Walters
2530313e68 Add part_detail and location_detail to the StockItem detail class 2020-04-06 08:38:10 +10:00
Oliver
fce26c80b7
Merge pull request #697 from SchrodingersGat/stock-api-fix
Stock api fix
2020-04-05 23:09:03 +10:00
Oliver Walters
791eb63f35 Same fix for Part API 2020-04-05 22:59:45 +10:00
Oliver Walters
94b9878c8d Bug fix for stock api
- If a part had an empty image, the thumbnail was improperly encoded
2020-04-05 22:57:42 +10:00
Oliver
3559e81d5f
Merge pull request #696 from SchrodingersGat/new-icons
New icons
2020-04-05 22:07:16 +10:00
Oliver Walters
7ecd843ca4 More translations 2020-04-05 20:56:16 +10:00
Oliver Walters
d1a27d2f7e Search icon rather than text 2020-04-05 20:51:07 +10:00
Oliver Walters
84b1960c7b Moar icons plz 2020-04-05 20:49:05 +10:00
Oliver Walters
7b494c08ec Translations 2020-04-05 20:40:46 +10:00
Oliver Walters
c170d3f87a More icons 2020-04-05 20:40:41 +10:00
Oliver Walters
bb844ab94b New icons for home page 2020-04-05 20:04:21 +10:00