Skip to content

Commit

Permalink
added SuspenseOrder table
Browse files Browse the repository at this point in the history
  • Loading branch information
GunpreetAhuja committed Jul 9, 2014
1 parent e9f4151 commit 3dda3f0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/librehatti/suspense/models.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
from django.db import models
from librehatti.catalog.models import PurchaseOrder


class SuspenseOrder(models.Model):
purchase_order_id = models.ForeignKey(PurchaseOrder)
transportation = models.IntegerField()

# Create your models here.
class SuspenseClearance(models.Model):

class SuspenseClearance(models.Model):
#suspense_id = models.ForeignKey('SuspenseOrder')
work_charge =models.IntegerField(blank=True, null=True)
labour_charge = models.IntegerField(blank=True, null=True)
Expand All @@ -14,6 +19,7 @@ class SuspenseClearance(models.Model):
Test_date = models.DateTimeField(auto_now_add=True)
Clear_date = models.DateTimeField(auto_now_add=True)


class Department(models.Model):
title = models.CharField(max_length=50)
address = models.CharField(max_length=150)
Expand All @@ -22,6 +28,7 @@ class Department(models.Model):
def __unicode__(self):
return self.title


class Staff(models.Model):
department = models.ForeignKey(Department)
code = models.CharField(max_length=5)
Expand Down

0 comments on commit 3dda3f0

Please sign in to comment.