Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Legg til kassenavn i salgsvare. Ref. #9
Browse files Browse the repository at this point in the history
  • Loading branch information
ljodal committed Mar 1, 2015
1 parent ea11567 commit a926e96
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions varer/migrations/0017_salgsvare_kassenavn.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

dependencies = [
('varer', '0016_auto_20141227_0243'),
]

operations = [
migrations.AddField(
model_name='salgsvare',
name='kassenavn',
field=models.CharField(max_length=15, help_text='Navn i varekatalog i kassa', blank=True, null=True),
preserve_default=True,
),
]
1 change: 1 addition & 0 deletions varer/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class Salgsvare(models.Model):
salgskonto = models.ForeignKey(Konto, related_name='salgsvarer')
status = models.CharField(max_length=10, choices=Råvare.STATUS_CHOICES, default='OK')
kassenr = models.PositiveSmallIntegerField(help_text="Nr i varekatalog i kassa", null=True, blank=True)
kassenavn = models.CharField(max_length=15, help_text="Navn i varekatalog i kassa", null=True, blank=True)
raavarer = models.ManyToManyField(Råvare, through='varer.SalgsvareRåvare', related_name='salgsvarer')

class Meta:
Expand Down

0 comments on commit a926e96

Please sign in to comment.