Oliver Walters
47cbf3071d
Add option to add a single-quantity price-break when creating a new SupplierPart object
...
- Add unit testing!
2020-11-12 21:36:32 +11:00
Oliver Walters
fd79f1ea0e
Fixes for 'single pricing' for SupplierPart
2020-11-12 19:46:19 +11:00
Oliver Walters
51d2d85c26
When creating a new price break for a supplier part, default to using the currency code specified for the supplier company
2020-11-12 11:14:50 +11:00
Oliver Walters
1532be9c1e
Add 'currency' option for company
...
- e.g. an external supplier might have a default currency
- Adds a form input which only allows selection of allowed currency codes
- Add unit testing for currency validation
2020-11-12 11:02:10 +11:00
Oliver Walters
ebac06ebee
Add 'single_pricing' form to the EditSupplierPartForm
...
- Idea here is to automatically create a unit-pricing price-break when a new SupplierPart is created
2020-11-11 13:55:25 +11:00
Oliver Walters
4dff18e4a6
Remove common_currency model entirely
...
- A lot of views / pages / etc needed to be updated too
- Now uses django-money fields entirely
- Create a manual rate exchange backend (needs more work!)
2020-11-11 00:21:06 +11:00
Oliver Walters
4cb97b1340
Add some more form candy
2020-05-16 11:55:10 +10:00
Oliver Walters
9c7813992d
Remove old 'manufacturer_name' field
2020-04-13 20:26:24 +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
906ed7f64d
Add "is_manufacturer" field to company model
...
(cherry picked from commit fd45db9e22
)
2020-04-13 20:19:03 +10:00
Oliver Walters
a306ad0bc3
Alter "URL" to "link" for Company models
2020-04-06 11:36:25 +10:00
Oliver Walters
6731bc1b06
Implement auto-rounding decimal field
...
Ref: https://stackoverflow.com/questions/37958130/automatically-round-djangos-decimalfield-according-to-the-max-digits-and-decima
2020-03-18 22:22:40 +11:00
Oliver Walters
51fab36074
Display / editing for Company notes field
...
- Also includes some translation updates
2020-02-01 23:45:28 +11:00
Oliver Walters
91453094aa
Remove lead-time field
2019-09-12 22:37:09 +10:00
Oliver Walters
af8a96e080
Add option to edit currency
2019-09-03 09:55:15 +10:00
Oliver Walters
6f73c379c2
Remove 'minimum' order from SupplierPart
...
- This can be handled using the 'PriceBreak' set
2019-05-21 13:51:43 +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
a03027ec9b
Add makefile option for quick backup
2019-05-07 07:46:29 +10:00
Oliver Walters
a499fd325e
Docstring for Stock app
2019-04-27 22:49:16 +10:00
Oliver Walters
c3f0570926
Add docstring to Company app
2019-04-27 20:43:27 +10:00
Oliver Walters
ac3a4e3de4
PEP fixes for /company
2019-04-14 09:30:45 +10:00
Oliver
17e6147c47
Click on company image to edit it
2018-05-03 23:57:00 +10:00
Oliver
bee760d184
Deleted extraneous form code
2018-04-30 00:59:36 +10:00
Oliver
bc597d7c21
Style fixes
2018-04-28 01:16:47 +10:00
Oliver
36cf946a78
Modal for company create
...
- Ajax modals now return the URL of the item they are operating on
- passing {follow: true} to the modal caller will go to that URL on success
- footable'd company list
2018-04-27 21:58:22 +10:00
Oliver
08ed128bea
PEP style fixes
2018-04-23 21:18:35 +10:00
Oliver
ee2f262e19
Company index / detail / edit pages working
2018-04-22 22:21:50 +10:00
Oliver
4bedf0ed4c
Finally got migrations working together
2018-04-22 21:54:12 +10:00
Oliver
cef3c664f9
Moving 'supplier' to 'company'
2018-04-19 09:01:25 +10:00