Add "expiry_date" field to StockItem model

- Also adds "is_expired" function
This commit is contained in:
Oliver Walters committed 2021-01-03 23:56:35 +11:00
1 parent fe3d4a9867
commit 07cda765f0
3 files changed
+89 -27

No files matched your search

@@ -0,0 +1,18 @@
# Generated by Django 3.0.7 on 2021-01-03 12:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stock', '0055_auto_20201117_1453'),
]
operations = [
migrations.AddField(
model_name='stockitem',
name='expiry_date',
field=models.DateField(blank=True, help_text='Expiry date for stock item. Stock will be considered expired after this date', null=True, verbose_name='Expiry Date'),
),
]