Commit Graph

3092 Commits

Author SHA1 Message Date
Oliver Walters
2bb9fd9955 Add some unit testing for the new model 2020-05-16 20:27:01 +10:00
Oliver Walters
f39f5e5825 Add StockItemTestResult model 2020-05-16 19:56:18 +10:00
Oliver
e550831efa
Merge pull request #810 from SchrodingersGat/serial-auto-fill
Serial auto fill
2020-05-16 19:30:18 +10:00
Oliver Walters
8a99062704 PEP fixes 2020-05-16 17:52:25 +10:00
Oliver Walters
a6ad263ee7 Fix clean functions so unit tests pass 2020-05-16 17:43:32 +10:00
Oliver Walters
40735d66a1 Translation tweaks 2020-05-16 17:32:20 +10:00
Oliver Walters
7190a8ef69 Serial number placeholder text for BuildComplete form 2020-05-16 17:29:41 +10:00
Oliver Walters
6552d011a4 Better calculatation of placeholder text for serial number 2020-05-16 16:42:34 +10:00
Oliver Walters
3df8f33080 Logic fixes for CreateStockItem form
- Improved data validation
- Fix bug where form was not checked for validity
2020-05-16 12:04:53 +10:00
Oliver Walters
3d0bea15ae Refactor function naming 2020-05-16 12:03:18 +10:00
Oliver Walters
4cb97b1340 Add some more form candy 2020-05-16 11:55:10 +10:00
Oliver Walters
498ad4162c Bugfix: Turns out 'prefix' and 'suffix' were protected fields! 2020-05-16 11:05:45 +10:00
Oliver Walters
08d177e55f Update refactor for editing PO and SO forms 2020-05-16 09:36:43 +10:00
Oliver Walters
8fae32e3c7 Refactor HelperForm to easily allow setting prepended text / placeholder / etc 2020-05-16 09:33:34 +10:00
Oliver Walters
0ccac09962 Auto-fill serial numbers for the SerializeStock form 2020-05-16 09:06:39 +10:00
Oliver Walters
10762fc1cf Refactor tractor 2020-05-16 08:55:19 +10:00
Oliver Walters
ea88a03b5a More serial number validation and unit testing
-
2020-05-16 08:43:57 +10:00
Oliver Walters
2d6c531fda Unit testing for part variant MPTT 2020-05-15 22:01:21 +10:00
Oliver Walters
0652579312 Update fixture for part model to match MPTT requirements 2020-05-15 21:44:25 +10:00
Oliver Walters
0a78432a0f Convert 'part" to MPTT model - based on the 'variant_of' field
- Now recursive variants can be implemented properly
2020-05-15 21:35:53 +10:00
Oliver Walters
72cfaccac5 Pass StockItem object through to the SerializeStock form 2020-05-15 21:16:00 +10:00
Oliver
5b5b848a98
Merge pull request #805 from SchrodingersGat/form-candy
Form candy
2020-05-14 21:56:55 +10:00
Oliver Walters
0f00205256 PEP fix 2020-05-14 21:52:39 +10:00
Oliver Walters
007d2d4054 Add prepended text to order references for forms 2020-05-14 21:51:44 +10:00
Oliver Walters
16aa18429a Use bootstrap3 styling for django crispy forms 2020-05-14 16:55:33 +10:00
Oliver
cf9891398a
Merge pull request #804 from SchrodingersGat/order-auto-increment
Order auto increment
2020-05-14 15:36:05 +10:00
Oliver Walters
5167f54268 Fix unit tests 2020-05-14 15:20:40 +10:00
Oliver Walters
6175c5408c Javascript indent cleanup 2020-05-14 15:10:48 +10:00
Oliver Walters
d3758981b4 Fix "New Sales Order" button in Customer detail view 2020-05-14 15:09:31 +10:00
Oliver Walters
b619f26074 Auto-increment sales order reference number 2020-05-14 15:05:55 +10:00
Oliver Walters
08903f357e Auto-increment the purchase-order number when creating a new one 2020-05-14 15:02:46 +10:00
Oliver Walters
cebfe9a30f Function to predict the next purchase order number 2020-05-14 15:00:00 +10:00
Oliver Walters
41eff97c7c Add function to "increment" a number or a number-like string
- Observe string width
- Keep prefix if one exists
2020-05-14 14:59:49 +10:00
Oliver
65f081d252
Merge pull request #803 from SchrodingersGat/attachment-drag-and-drop
Attachment drag and drop
2020-05-13 11:38:18 +10:00
Oliver Walters
30b5f7d507 Drag and drop for order attachments 2020-05-13 11:28:45 +10:00
Oliver Walters
7143c32fc9 Drag-and-drop attachments for stock item 2020-05-13 11:22:57 +10:00
Oliver Walters
db01f3646a Enable drag-and-drop attachment upload for Part 2020-05-13 11:13:26 +10:00
Oliver Walters
cedf9a9108 Attachment comment field is optional 2020-05-13 10:16:26 +10:00
Oliver
a0e1645ca1
Update README.md 2020-05-12 22:13:50 +10:00
Oliver
c26d22e599
Merge pull request #802 from SchrodingersGat/attachment-user
Attachment Improvements
2020-05-12 22:10:44 +10:00
Oliver Walters
f5b97da5d2 Refactor "attachment" table into template 2020-05-12 22:05:38 +10:00
Oliver Walters
366d4b2143 Add new attechment functionality to new models
- Giving the ol' refactor tractor a fresh coat of paint
2020-05-12 21:40:42 +10:00
Oliver Walters
2369b40bbf Ensure user gets saved when uploading attachment via API 2020-05-12 21:11:38 +10:00
Oliver Walters
5d716d0cdd Add "upload date" field to fileattachment base class 2020-05-12 20:57:41 +10:00
Oliver Walters
d4fa7d936e Add 'user' field to attachment 2020-05-12 20:50:03 +10:00
Oliver
2948dad831
Merge pull request #800 from SchrodingersGat/stock-api
Stock api
2020-05-12 20:26:30 +10:00
Oliver Walters
0851a925fb Add ability to filter by whether the part is serialized or not 2020-05-12 20:18:28 +10:00
Oliver Walters
4615fbc0d8 Abillty to filter stock list by serial number 2020-05-12 20:15:37 +10:00
Oliver
c371a9a8e8
Merge pull request #799 from SchrodingersGat/stock-track-api
Stock track api
2020-05-12 08:49:18 +10:00
Oliver Walters
b9d0c60189 Pepper 2020-05-12 08:12:42 +10:00