Oliver
baa6283d20
Fixes
2021-07-28 23:47:50 +10:00
Oliver
5744796506
Adds an API filter class for the ManufacturerPart list endpoint
2021-07-28 23:32:49 +10:00
eeintech
3d9ad24e27
Defined custom SupplierPart object manager and prefetch related models in all queries
2021-07-13 12:55:36 -04:00
Oliver
ae68463f46
API: Allow search of IPN field for ManufacturerPart and SupplierPart
2021-07-08 11:16:04 +10:00
Oliver
a92fc7cf2c
PEP fixes
2021-06-30 14:15:18 +10:00
Oliver
2b394174bc
Refactor update and delete forms for SupplierPriceBreak
2021-06-30 14:14:31 +10:00
Oliver
04374c71c2
Annotate models with their API list view
...
- It will make sense, trust me
2021-06-25 00:17:58 +10:00
Oliver
a00441a1c0
Adds API endpoints for ManufacturerPartParameter mdoel
2021-06-21 00:28:28 +10:00
Oliver
847d946fa4
Bug fixes
2021-06-20 17:39:00 +10:00
Oliver
3fb57abe66
Error catching
2021-06-18 19:39:06 +10:00
Matthias
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
eeintech
41962ca23a
API fixes related to ManufacturerPart
2021-04-30 13:54:56 -04:00
eeintech
52b2b9582d
More tests and improved coverage (hopefully)
2021-04-06 14:30:03 -04:00
eeintech
7b4d3a3c07
Added test units for migration and API
2021-04-06 13:16:01 -04:00
eeintech
45ca8d0e93
Fixes to the way ManufacturerPart is saved, manufacturer table filtering and test units
2021-04-02 11:13:57 -04:00
eeintech
94574b37ae
Added Manufacturer parts to search, fixed icons, added manufacturer view in supplier part detail page
2021-04-01 10:00:15 -04:00
eeintech
0b1f22c7fd
Almost there, needs some interface testing and tweaking
2021-03-30 18:08:33 -04:00
eeintech
9c8817d73b
Fixed serializers and started update of templates
2021-03-30 16:48:16 -04:00
eeintech
811f9333e8
SupplierPart manufacturer data is not serializing
2021-03-30 13:55:20 -04:00
eeintech
e6dfb7da52
Added global setting to enable manufacturer parts
...
Created SourceItem model
Updated templates
2021-03-29 13:22:15 -04:00
eeintech
afd2dacfc7
Can now create, view list of parts and view detail page
2021-03-24 11:44:51 -04:00
Oliver Walters
4a28fa7fa8
Fixes for company table
2021-03-03 08:36:16 +11:00
Oliver Walters
745188082b
Add more searchable fields to SupplierPart model
2021-02-21 21:06:44 +11:00
Oliver Walters
b3ac261746
Add filter for supplier part table:
...
Filter by "active" status
2020-10-29 12:50:17 +11:00
Oliver Walters
16d720b62c
Update permission requirements for API
...
- Automatically use model permissions by default!
-
2020-10-06 00:36:55 +11:00
Oliver Walters
3a75682878
Add "pretty" name to the SupplierPart API
...
- Quick way to ensure the supplier part objects are printed the same way
- Use the pythonic back-end to render the data
2020-08-26 23:23:57 +10:00
Oliver Walters
6ab34c3d0e
SupplierPart - Improve API
...
- The default DRF behaviour throws errors if the supplied query params do not conform to the limit_choices_to field
- This is non optimum! Don't want to have to handle these cases
- Do the filtering ourselves!
2020-08-26 22:44:22 +10:00
Oliver Walters
b0f4475a83
Fixes
2020-05-02 15:36:48 +10:00
Oliver Walters
a8e3a3f1ac
Reduce company list from 100 queries to 4 queries
2020-05-02 15:23:28 +10:00
Oliver Walters
80fa40694c
Unit testing fixes
...
- For some reason the builds were passing locally?
2020-04-13 20:36:51 +10:00
Oliver Walters
7c892263f8
More API fixes
...
- Allow searching supplier parts by manufacturer name
- Better rendering of supplier part table
(cherry picked from commit 62199aedf5
)
2020-04-13 20:20:55 +10:00
Oliver Walters
f88d03db88
Fix "supplier parts" tab for Company display
...
Also PEP fixes
(cherry picked from commit a50ecb24c1
)
2020-04-13 20:20:51 +10:00
Oliver Walters
2506aa110b
API changes
...
- Allow SupplierPart to be filtered by 'company' in addition to 'supplier' and 'manufacturer'
- Stock can now also be filtered by 'company'
(cherry picked from commit 1b1cd944be
)
2020-04-13 20:20:33 +10:00
Oliver Walters
0001b889f0
Update company API
...
- option to include manufacturer_detail
- improve company serializer
(cherry picked from commit 2ea1e72c44
)
2020-04-13 20:20:23 +10:00
Oliver Walters
00315aa855
Add 'manufacturer' field to SupplierPart object
...
- ForeignKey link to Company model
(cherry picked from commit acebe61ac5
)
2020-04-13 20:20:04 +10:00
Oliver Walters
8b366fc4a0
Rename "manufacturer" to "manufacturer_name"
...
(cherry picked from commit e9e734acce
)
2020-04-13 20:19:59 +10:00
Oliver Walters
094a0fe709
Improvements to company API
...
- Filter by is_manufacturer
- Better table display
(cherry picked from commit f427ee4754
)
2020-04-13 20:19:10 +10:00
Oliver Walters
25e5a64cee
Improve filtering / ordering / sorting for purchase-order API
2019-12-09 21:19:35 +11:00
Oliver Walters
20ec36d3ea
Enforce authentication for API access
2019-07-08 19:20:00 +10:00
Oliver Walters
b185abbb87
Catch case in which a request.GET is not available
...
(cherry picked from commit 9296c0ba0f8c4914cd04b820c6172f8c3a794750)
2019-07-08 09:41:20 +10:00
Oliver Walters
d5da93b9d0
Make supplier part list API searchable
2019-05-24 21:33:45 +10:00
Oliver Walters
9052ccc181
Make 'part_detail' field in SupplierPart serializer optional
2019-05-23 22:44:37 +10:00
Oliver Walters
4d35841233
Consolidate on 'pk' as the ID field in the API
2019-05-23 00:31:27 +10:00
Oliver Walters
cd7bc6cce5
Include pricing information in part supplier view
...
Also some CSS tweaks to secondary modal buttons
2019-05-22 22:11:27 +10:00
Oliver Walters
f19d4eec79
Improve query speed for supplierpart api
2019-05-21 08:19:16 +10:00
Oliver Walters
cdc55bb5d3
PEP fixes
2019-05-18 23:08:42 +10:00
Oliver Walters
0cfb243eb3
Move SupplierPart and SupplierPriceBreak to the 'Company' app
...
- https://docs.djangoproject.com/en/2.2/ref/models/options/#django.db.models.Options.db_table
- https://stackoverflow.com/questions/3519143/django-how-to-specify-a-database-for-a-model
- And others, presumably
2019-05-18 23:08:34 +10:00
Oliver Walters
c3f0570926
Add docstring to Company app
2019-04-27 20:43:27 +10:00
Oliver Walters
9ae5ea3876
Add RUD endpoint for Company
2019-04-26 21:44:38 +10:00
Oliver
08ed128bea
PEP style fixes
2018-04-23 21:18:35 +10:00