Commit Graph

2906 Commits

Author SHA1 Message Date
Oliver
44a820e74f
Merge pull request #719 from SchrodingersGat/migration-fix
Fix buggy migration
2020-04-13 22:57:16 +10:00
Oliver Walters
fb8c0e5180 Fix buggy migration
- Need to use raw SQL queries as the database model does not match the python model
2020-04-13 22:53:14 +10:00
Oliver
2cbf7d578b
Merge pull request #718 from SchrodingersGat/starred-filter
Starred filter
2020-04-13 22:41:35 +10:00
Oliver Walters
47530b7d2a Improvements for "SupplierPartCreate" form 2020-04-13 22:21:20 +10:00
Oliver Walters
0e55911a6b Index page rendering is now a lot faster
- Hide some elements which are currently very expensive to compute
-
2020-04-13 22:07:14 +10:00
Oliver Walters
90ac3a5a8a Add custom user filter for 'starred' status 2020-04-13 21:30:34 +10:00
Oliver Walters
124fab3eee Display a part as 'starred' in the part table 2020-04-13 21:30:17 +10:00
Oliver Walters
b850beb687 Add ability to filter by 'starred' status 2020-04-13 21:24:36 +10:00
Oliver
c76c93237e
Merge pull request #716 from SchrodingersGat/manufacturer-link
Manufacturer link
2020-04-13 20:40:51 +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
9c7813992d Remove old 'manufacturer_name' field 2020-04-13 20:26:24 +10:00
Oliver Walters
c17c014b33 More cleanup
- Allow user filtering for purchase-order table in part view
- Remove some debug strings

(cherry picked from commit ea466c3588)
2020-04-13 20:21:13 +10:00
Oliver Walters
307dd25f87 Fixes for unit testing
(cherry picked from commit eb3b5308ab)
2020-04-13 20:21:08 +10:00
Oliver Walters
8fa3d77416 Short-circuit the custom migration if there are no SupplierPart objects
- This allows the unit testing to run!

(cherry picked from commit f243b567fd)
2020-04-13 20:21:04 +10:00
Oliver Walters
8c55831321 Fix supplier-part-table for Part view
(cherry picked from commit 2839f94773)
2020-04-13 20:21:00 +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
bced189c64 Cleanup display of "SupplierPart" page
(cherry picked from commit f067eae7d2)
2020-04-13 20:20:43 +10:00
Oliver Walters
14d18e9d95 "Part" column in Stock table links to supplier part
(cherry picked from commit 5f0080cc54)
2020-04-13 20:20:38 +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
696c101628 Change related name for SuppleirPart.supplier
(cherry picked from commit 635c4339e0)
2020-04-13 20:20:28 +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
4e3825682a Doc fix for mgiration
(cherry picked from commit 6ef32dfa2d)
2020-04-13 20:20:18 +10:00
Oliver Walters
04097791bb Custom migration for walking user through the process of mapping supplierpart to manufacturer
(cherry picked from commit 290002fe9d)
2020-04-13 20:20:13 +10:00
Oliver Walters
2695368651 Add migration to create a 'manufacturer' field to the SupplierPart model
(cherry picked from commit 890e938662)
2020-04-13 20:20:08 +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
2a4e8cd062 Improve company search results page
(cherry picked from commit 34abf34c0f)
2020-04-13 20:19:53 +10:00
Oliver Walters
d05ba9ee1a Customize "CompanyCreate" form based on calling url
(cherry picked from commit 8adc83b650)
2020-04-13 20:19:48 +10:00
Oliver Walters
67d9d2bb04 Separate views for customer / supplier / manufacturer
(cherry picked from commit 9e9e29679d)
2020-04-13 20:19:21 +10:00
Oliver Walters
edfb19db13 Company table now in separate javascript file
(cherry picked from commit 95354f09da)
2020-04-13 20:19:16 +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
906ed7f64d Add "is_manufacturer" field to company model
(cherry picked from commit fd45db9e22)
2020-04-13 20:19:03 +10:00
Oliver
a921b3fcee
Merge pull request #711 from SchrodingersGat/tweakers
Table Filtering
2020-04-12 01:05:03 +10:00
Oliver Walters
5e2ed06c2d Add some more translations 2020-04-12 01:00:49 +10:00
Oliver Walters
3c46e12839 Further work on decimal rounding
- Prevent numbers from being represented in scientific notation
2020-04-12 00:56:15 +10:00
Oliver Walters
04cee99791 Update for supplier part list table rendering 2020-04-12 00:46:29 +10:00
Oliver Walters
f1f27f08cb Add icons to part base 2020-04-12 00:40:48 +10:00
Oliver Walters
f248b20ba4 Fix 2020-04-12 00:33:43 +10:00
Oliver Walters
6ed482d9eb Update translations 2020-04-12 00:33:10 +10:00
Oliver Walters
fd8273e3e2 Improve build base rendering
- Consolidate style
- Fix rendering of part pricing
2020-04-12 00:31:59 +10:00
Oliver Walters
a65c80dbf3 Small fixes here and there 2020-04-12 00:20:29 +10:00
Oliver Walters
7503596ea4 More fixes
- Add a set of template tags for rendering status codes
- Improve build API filtering
- Remove some outdated files
- Fix unit testing
2020-04-12 00:10:33 +10:00
Oliver Walters
59778130cd Revert display of "INACTIVE" parts 2020-04-11 23:09:21 +10:00
Oliver Walters
de6f2d37e5 Coalesce baby, yeah! 2020-04-11 23:05:07 +10:00
Oliver Walters
2560613e36 Update API docstring 2020-04-11 23:03:03 +10:00
Oliver Walters
f5a8b110b5 Filter part table by 'is_component' status 2020-04-11 23:02:18 +10:00
Oliver Walters
0f90e8f522 Filter parts by 'is_assembly'
Also greatly improve rendering of the Part table
2020-04-11 22:57:40 +10:00
Oliver Walters
e1c6ad7761 Logic fix for part filtering 2020-04-11 22:57:16 +10:00
Oliver Walters
e86bc4fa6d Add ability to filter parts by "low_stock"
- Huzzah for the "Coalesce" function, eh?
2020-04-11 22:43:51 +10:00