parent
0acb3f8559
commit
92010fa685
27 changed files with 2364 additions and 149 deletions
@ -0,0 +1,324 @@ |
||||
# -*- coding: utf-8 -*- |
||||
import datetime |
||||
from south.db import db |
||||
from south.v2 import SchemaMigration |
||||
from django.db import models |
||||
|
||||
|
||||
class Migration(SchemaMigration): |
||||
|
||||
def forwards(self, orm): |
||||
# Deleting field 'Platejka.nds_type' |
||||
db.delete_column(u'docs_platejka', 'nds_type') |
||||
|
||||
|
||||
def backwards(self, orm): |
||||
# Adding field 'Platejka.nds_type' |
||||
db.add_column(u'docs_platejka', 'nds_type', |
||||
self.gf('django.db.models.fields.PositiveSmallIntegerField')(default=1), |
||||
keep_default=False) |
||||
|
||||
|
||||
models = { |
||||
u'auth.group': { |
||||
'Meta': {'object_name': 'Group'}, |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), |
||||
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) |
||||
}, |
||||
u'auth.permission': { |
||||
'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'}, |
||||
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
||||
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) |
||||
}, |
||||
u'auth.user': { |
||||
'Meta': {'object_name': 'User'}, |
||||
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
||||
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), |
||||
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), |
||||
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), |
||||
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
||||
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), |
||||
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), |
||||
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), |
||||
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) |
||||
}, |
||||
u'contenttypes.contenttype': { |
||||
'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, |
||||
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) |
||||
}, |
||||
u'customer.bankaccount': { |
||||
'Meta': {'ordering': "['-created_at']", 'object_name': 'BankAccount'}, |
||||
'account': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'address': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'bik': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'is_main': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'korr_account': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'bank_accounts'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
u'customer.client': { |
||||
'Meta': {'ordering': "['name', '-created_at']", 'object_name': 'Client'}, |
||||
'address': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'bank_account': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'bank_address': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'bank_bik': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '10', 'blank': 'True'}), |
||||
'bank_korr_account': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'bank_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'contact_email': ('django.db.models.fields.EmailField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'contact_icq': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'contact_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'contact_other': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'contact_phone': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'contact_skype': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'inn': ('django.db.models.fields.CharField', [], {'max_length': '12'}), |
||||
'kpp': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '9', 'blank': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256', 'db_index': 'True'}), |
||||
'okpo': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '10', 'blank': 'True'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'clients'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.aktrabot': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'AktRabot'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'invoice': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'blank': 'True', 'to': "orm['docs.Invoice']"}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.aktrabotitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'AktRabotItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'aktrabot_items'", 'to': "orm['docs.AktRabot']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.aktsverki': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'AktSverki'}, |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_mesto': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'end_date': ('django.db.models.fields.DateField', [], {}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'saldo_credit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'saldo_debit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'start_date': ('django.db.models.fields.DateField', [], {}), |
||||
'total_credit': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'total_debit': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'total_saldo': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.aktsverkiitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'AktSverkiItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'credit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'debit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'aktsverki_items'", 'to': "orm['docs.AktSverki']"}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.country': { |
||||
'Meta': {'object_name': 'Country'}, |
||||
'code': ('django.db.models.fields.CharField', [], {'max_length': '200'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '10'}) |
||||
}, |
||||
'docs.currency': { |
||||
'Meta': {'object_name': 'Currency'}, |
||||
'code': ('django.db.models.fields.CharField', [], {'max_length': '200'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '10'}) |
||||
}, |
||||
'docs.dover': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Dover'}, |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_expire_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'dover_doc': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'dover_doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'dover_name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'dover_passport_date': ('django.db.models.fields.DateField', [], {}), |
||||
'dover_passport_num': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'dover_passport_org': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'dover_passport_ser': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.doveritem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'DoverItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'dover_items'", 'to': "orm['docs.Dover']"}), |
||||
'qty': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.faktura': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Faktura'}, |
||||
'avance': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'currency': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['docs.Currency']", 'null': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_reason': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
'fixes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'invoice': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'blank': 'True', 'to': "orm['docs.Invoice']"}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'receiver': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'receiver_fakturas'", 'null': 'True', 'to': u"orm['customer.Client']"}), |
||||
'sender': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sender_fakturas'", 'null': 'True', 'to': u"orm['customer.Client']"}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}), |
||||
'user_is_sender': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) |
||||
}, |
||||
'docs.fakturaitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'FakturaItem'}, |
||||
'country_code': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'country_name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'gtd': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'faktura_items'", 'to': "orm['docs.Faktura']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'units_kod': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.invoice': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Invoice'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'closed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'paid_status': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.invoiceitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'InvoiceItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'invoice_items'", 'to': "orm['docs.Invoice']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.measure': { |
||||
'Meta': {'object_name': 'Measure'}, |
||||
'code': ('django.db.models.fields.CharField', [], {'max_length': '200'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '10'}) |
||||
}, |
||||
'docs.nakladn': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Nakladn'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_reason': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'invoice': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'blank': 'True', 'to': "orm['docs.Invoice']"}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.nakladnitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'NakladnItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nakladn_items'", 'to': "orm['docs.Nakladn']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.platdoc': { |
||||
'Meta': {'object_name': 'PlatDoc'}, |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'num': ('django.db.models.fields.CharField', [], {'max_length': '30'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'plat_docs'", 'to': "orm['docs.Faktura']"}) |
||||
}, |
||||
'docs.platejka': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Platejka'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_info': ('django.db.models.fields.TextField', [], {'max_length': '1000'}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_total': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'payment_order': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'payment_type': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}), |
||||
'platej_type': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}), |
||||
'tax_base': ('django.db.models.fields.CharField', [], {'default': "u'\\u0422\\u041f'", 'max_length': '10'}), |
||||
'tax_bk': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'tax_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), |
||||
'tax_num': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'tax_okato': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'tax_period': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'tax_status': ('django.db.models.fields.CharField', [], {'default': "u'01'", 'max_length': '10'}), |
||||
'tax_type': ('django.db.models.fields.CharField', [], {'default': "u'\\u041d\\u0421'", 'max_length': '10'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
} |
||||
} |
||||
|
||||
complete_apps = ['docs'] |
||||
@ -0,0 +1,325 @@ |
||||
# -*- coding: utf-8 -*- |
||||
import datetime |
||||
from south.db import db |
||||
from south.v2 import SchemaMigration |
||||
from django.db import models |
||||
|
||||
|
||||
class Migration(SchemaMigration): |
||||
|
||||
def forwards(self, orm): |
||||
# Adding field 'Faktura.ntd' |
||||
db.add_column(u'docs_faktura', 'ntd', |
||||
self.gf('django.db.models.fields.CharField')(default='', max_length=256, blank=True), |
||||
keep_default=False) |
||||
|
||||
|
||||
def backwards(self, orm): |
||||
# Deleting field 'Faktura.ntd' |
||||
db.delete_column(u'docs_faktura', 'ntd') |
||||
|
||||
|
||||
models = { |
||||
u'auth.group': { |
||||
'Meta': {'object_name': 'Group'}, |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), |
||||
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) |
||||
}, |
||||
u'auth.permission': { |
||||
'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'}, |
||||
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
||||
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) |
||||
}, |
||||
u'auth.user': { |
||||
'Meta': {'object_name': 'User'}, |
||||
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
||||
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), |
||||
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), |
||||
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), |
||||
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
||||
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), |
||||
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), |
||||
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), |
||||
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) |
||||
}, |
||||
u'contenttypes.contenttype': { |
||||
'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, |
||||
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) |
||||
}, |
||||
u'customer.bankaccount': { |
||||
'Meta': {'ordering': "['-created_at']", 'object_name': 'BankAccount'}, |
||||
'account': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'address': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'bik': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'is_main': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'korr_account': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'bank_accounts'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
u'customer.client': { |
||||
'Meta': {'ordering': "['name', '-created_at']", 'object_name': 'Client'}, |
||||
'address': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'bank_account': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'bank_address': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'bank_bik': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '10', 'blank': 'True'}), |
||||
'bank_korr_account': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'bank_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'contact_email': ('django.db.models.fields.EmailField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'contact_icq': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'contact_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'contact_other': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'contact_phone': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'contact_skype': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'inn': ('django.db.models.fields.CharField', [], {'max_length': '12'}), |
||||
'kpp': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '9', 'blank': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256', 'db_index': 'True'}), |
||||
'okpo': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '10', 'blank': 'True'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'clients'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.aktrabot': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'AktRabot'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'invoice': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'blank': 'True', 'to': "orm['docs.Invoice']"}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.aktrabotitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'AktRabotItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'aktrabot_items'", 'to': "orm['docs.AktRabot']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.aktsverki': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'AktSverki'}, |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_mesto': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'end_date': ('django.db.models.fields.DateField', [], {}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'saldo_credit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'saldo_debit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'start_date': ('django.db.models.fields.DateField', [], {}), |
||||
'total_credit': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'total_debit': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'total_saldo': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.aktsverkiitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'AktSverkiItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'credit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'debit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'aktsverki_items'", 'to': "orm['docs.AktSverki']"}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.country': { |
||||
'Meta': {'object_name': 'Country'}, |
||||
'code': ('django.db.models.fields.CharField', [], {'max_length': '200'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '10'}) |
||||
}, |
||||
'docs.currency': { |
||||
'Meta': {'object_name': 'Currency'}, |
||||
'code': ('django.db.models.fields.CharField', [], {'max_length': '200'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '10'}) |
||||
}, |
||||
'docs.dover': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Dover'}, |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_expire_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'dover_doc': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'dover_doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'dover_name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'dover_passport_date': ('django.db.models.fields.DateField', [], {}), |
||||
'dover_passport_num': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'dover_passport_org': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'dover_passport_ser': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.doveritem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'DoverItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'dover_items'", 'to': "orm['docs.Dover']"}), |
||||
'qty': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.faktura': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Faktura'}, |
||||
'avance': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'currency': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['docs.Currency']", 'null': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_reason': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
'fixes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'invoice': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'blank': 'True', 'to': "orm['docs.Invoice']"}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'ntd': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'receiver': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'receiver_fakturas'", 'null': 'True', 'to': u"orm['customer.Client']"}), |
||||
'sender': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sender_fakturas'", 'null': 'True', 'to': u"orm['customer.Client']"}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}), |
||||
'user_is_sender': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) |
||||
}, |
||||
'docs.fakturaitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'FakturaItem'}, |
||||
'country_code': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'country_name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'gtd': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'faktura_items'", 'to': "orm['docs.Faktura']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'units_kod': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.invoice': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Invoice'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'closed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'paid_status': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.invoiceitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'InvoiceItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'invoice_items'", 'to': "orm['docs.Invoice']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.measure': { |
||||
'Meta': {'object_name': 'Measure'}, |
||||
'code': ('django.db.models.fields.CharField', [], {'max_length': '200'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '10'}) |
||||
}, |
||||
'docs.nakladn': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Nakladn'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_reason': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'invoice': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'blank': 'True', 'to': "orm['docs.Invoice']"}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.nakladnitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'NakladnItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nakladn_items'", 'to': "orm['docs.Nakladn']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.platdoc': { |
||||
'Meta': {'object_name': 'PlatDoc'}, |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'num': ('django.db.models.fields.CharField', [], {'max_length': '30'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'plat_docs'", 'to': "orm['docs.Faktura']"}) |
||||
}, |
||||
'docs.platejka': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Platejka'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_info': ('django.db.models.fields.TextField', [], {'max_length': '1000'}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_total': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'payment_order': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'payment_type': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}), |
||||
'platej_type': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}), |
||||
'tax_base': ('django.db.models.fields.CharField', [], {'default': "u'\\u0422\\u041f'", 'max_length': '10'}), |
||||
'tax_bk': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'tax_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), |
||||
'tax_num': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'tax_okato': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'tax_period': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'tax_status': ('django.db.models.fields.CharField', [], {'default': "u'01'", 'max_length': '10'}), |
||||
'tax_type': ('django.db.models.fields.CharField', [], {'default': "u'\\u041d\\u0421'", 'max_length': '10'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
} |
||||
} |
||||
|
||||
complete_apps = ['docs'] |
||||
@ -0,0 +1,333 @@ |
||||
# -*- coding: utf-8 -*- |
||||
import datetime |
||||
from south.db import db |
||||
from south.v2 import SchemaMigration |
||||
from django.db import models |
||||
|
||||
|
||||
class Migration(SchemaMigration): |
||||
|
||||
def forwards(self, orm): |
||||
# Deleting field 'Faktura.ntd' |
||||
db.delete_column(u'docs_faktura', 'ntd') |
||||
|
||||
# Adding field 'FakturaItem.ntd' |
||||
db.add_column(u'docs_fakturaitem', 'ntd', |
||||
self.gf('django.db.models.fields.CharField')(default='', max_length=256, blank=True), |
||||
keep_default=False) |
||||
|
||||
|
||||
def backwards(self, orm): |
||||
# Adding field 'Faktura.ntd' |
||||
db.add_column(u'docs_faktura', 'ntd', |
||||
self.gf('django.db.models.fields.CharField')(default='', max_length=256, blank=True), |
||||
keep_default=False) |
||||
|
||||
# Deleting field 'FakturaItem.ntd' |
||||
db.delete_column(u'docs_fakturaitem', 'ntd') |
||||
|
||||
|
||||
models = { |
||||
u'auth.group': { |
||||
'Meta': {'object_name': 'Group'}, |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), |
||||
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) |
||||
}, |
||||
u'auth.permission': { |
||||
'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'}, |
||||
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
||||
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) |
||||
}, |
||||
u'auth.user': { |
||||
'Meta': {'object_name': 'User'}, |
||||
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
||||
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), |
||||
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), |
||||
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), |
||||
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
||||
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), |
||||
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), |
||||
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), |
||||
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) |
||||
}, |
||||
u'contenttypes.contenttype': { |
||||
'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, |
||||
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) |
||||
}, |
||||
u'customer.bankaccount': { |
||||
'Meta': {'ordering': "['-created_at']", 'object_name': 'BankAccount'}, |
||||
'account': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'address': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'bik': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'is_main': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'korr_account': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'bank_accounts'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
u'customer.client': { |
||||
'Meta': {'ordering': "['name', '-created_at']", 'object_name': 'Client'}, |
||||
'address': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'bank_account': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'bank_address': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'bank_bik': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '10', 'blank': 'True'}), |
||||
'bank_korr_account': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'bank_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'contact_email': ('django.db.models.fields.EmailField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'contact_icq': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'contact_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'contact_other': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'contact_phone': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'contact_skype': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'inn': ('django.db.models.fields.CharField', [], {'max_length': '12'}), |
||||
'kpp': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '9', 'blank': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256', 'db_index': 'True'}), |
||||
'okpo': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '10', 'blank': 'True'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'clients'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.aktrabot': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'AktRabot'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'invoice': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'blank': 'True', 'to': "orm['docs.Invoice']"}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.aktrabotitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'AktRabotItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'aktrabot_items'", 'to': "orm['docs.AktRabot']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.aktsverki': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'AktSverki'}, |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_mesto': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'end_date': ('django.db.models.fields.DateField', [], {}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'saldo_credit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'saldo_debit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'start_date': ('django.db.models.fields.DateField', [], {}), |
||||
'total_credit': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'total_debit': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'total_saldo': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.aktsverkiitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'AktSverkiItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'credit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'debit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'aktsverki_items'", 'to': "orm['docs.AktSverki']"}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.country': { |
||||
'Meta': {'object_name': 'Country'}, |
||||
'code': ('django.db.models.fields.CharField', [], {'max_length': '200'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '10'}) |
||||
}, |
||||
'docs.currency': { |
||||
'Meta': {'object_name': 'Currency'}, |
||||
'code': ('django.db.models.fields.CharField', [], {'max_length': '200'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '10'}) |
||||
}, |
||||
'docs.dover': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Dover'}, |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_expire_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'dover_doc': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'dover_doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'dover_name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'dover_passport_date': ('django.db.models.fields.DateField', [], {}), |
||||
'dover_passport_num': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'dover_passport_org': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'dover_passport_ser': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.doveritem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'DoverItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'dover_items'", 'to': "orm['docs.Dover']"}), |
||||
'qty': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.faktura': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Faktura'}, |
||||
'avance': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'currency': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['docs.Currency']", 'null': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_reason': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
'fixes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'invoice': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'blank': 'True', 'to': "orm['docs.Invoice']"}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'receiver': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'receiver_fakturas'", 'null': 'True', 'to': u"orm['customer.Client']"}), |
||||
'sender': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sender_fakturas'", 'null': 'True', 'to': u"orm['customer.Client']"}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}), |
||||
'user_is_sender': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) |
||||
}, |
||||
'docs.fakturaitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'FakturaItem'}, |
||||
'country_code': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'country_name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'gtd': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'ntd': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'faktura_items'", 'to': "orm['docs.Faktura']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'units_kod': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.invoice': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Invoice'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'closed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'paid_status': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.invoiceitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'InvoiceItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'invoice_items'", 'to': "orm['docs.Invoice']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.measure': { |
||||
'Meta': {'object_name': 'Measure'}, |
||||
'code': ('django.db.models.fields.CharField', [], {'max_length': '200'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '10'}) |
||||
}, |
||||
'docs.nakladn': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Nakladn'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_reason': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'invoice': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'blank': 'True', 'to': "orm['docs.Invoice']"}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.nakladnitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'NakladnItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nakladn_items'", 'to': "orm['docs.Nakladn']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.platdoc': { |
||||
'Meta': {'object_name': 'PlatDoc'}, |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'num': ('django.db.models.fields.CharField', [], {'max_length': '30'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'plat_docs'", 'to': "orm['docs.Faktura']"}) |
||||
}, |
||||
'docs.platejka': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Platejka'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_info': ('django.db.models.fields.TextField', [], {'max_length': '1000'}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_total': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'payment_order': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'payment_type': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}), |
||||
'platej_type': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}), |
||||
'tax_base': ('django.db.models.fields.CharField', [], {'default': "u'\\u0422\\u041f'", 'max_length': '10'}), |
||||
'tax_bk': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'tax_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), |
||||
'tax_num': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'tax_okato': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'tax_period': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'tax_status': ('django.db.models.fields.CharField', [], {'default': "u'01'", 'max_length': '10'}), |
||||
'tax_type': ('django.db.models.fields.CharField', [], {'default': "u'\\u041d\\u0421'", 'max_length': '10'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
} |
||||
} |
||||
|
||||
complete_apps = ['docs'] |
||||
@ -0,0 +1,340 @@ |
||||
# -*- coding: utf-8 -*- |
||||
import datetime |
||||
from south.db import db |
||||
from south.v2 import SchemaMigration |
||||
from django.db import models |
||||
|
||||
|
||||
class Migration(SchemaMigration): |
||||
|
||||
def forwards(self, orm): |
||||
# Deleting model 'PlatDoc' |
||||
db.delete_table(u'docs_platdoc') |
||||
|
||||
# Adding field 'Faktura.plat_doc_num' |
||||
db.add_column(u'docs_faktura', 'plat_doc_num', |
||||
self.gf('django.db.models.fields.CharField')(default='', max_length=30, blank=True), |
||||
keep_default=False) |
||||
|
||||
# Adding field 'Faktura.plat_doc_date' |
||||
db.add_column(u'docs_faktura', 'plat_doc_date', |
||||
self.gf('django.db.models.fields.DateField')(null=True, blank=True), |
||||
keep_default=False) |
||||
|
||||
|
||||
def backwards(self, orm): |
||||
# Adding model 'PlatDoc' |
||||
db.create_table(u'docs_platdoc', ( |
||||
('num', self.gf('django.db.models.fields.CharField')(max_length=30)), |
||||
('doc_date', self.gf('django.db.models.fields.DateField')()), |
||||
('parent', self.gf('django.db.models.fields.related.ForeignKey')(related_name='plat_docs', to=orm['docs.Faktura'])), |
||||
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
||||
)) |
||||
db.send_create_signal('docs', ['PlatDoc']) |
||||
|
||||
# Deleting field 'Faktura.plat_doc_num' |
||||
db.delete_column(u'docs_faktura', 'plat_doc_num') |
||||
|
||||
# Deleting field 'Faktura.plat_doc_date' |
||||
db.delete_column(u'docs_faktura', 'plat_doc_date') |
||||
|
||||
|
||||
models = { |
||||
u'auth.group': { |
||||
'Meta': {'object_name': 'Group'}, |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), |
||||
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) |
||||
}, |
||||
u'auth.permission': { |
||||
'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'}, |
||||
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
||||
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) |
||||
}, |
||||
u'auth.user': { |
||||
'Meta': {'object_name': 'User'}, |
||||
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
||||
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), |
||||
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), |
||||
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), |
||||
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
||||
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), |
||||
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), |
||||
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), |
||||
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) |
||||
}, |
||||
u'contenttypes.contenttype': { |
||||
'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, |
||||
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) |
||||
}, |
||||
u'customer.bankaccount': { |
||||
'Meta': {'ordering': "['-created_at']", 'object_name': 'BankAccount'}, |
||||
'account': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'address': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'bik': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'is_main': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'korr_account': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'bank_accounts'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
u'customer.client': { |
||||
'Meta': {'ordering': "['name', '-created_at']", 'object_name': 'Client'}, |
||||
'address': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'bank_account': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'bank_address': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'bank_bik': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '10', 'blank': 'True'}), |
||||
'bank_korr_account': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'bank_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'contact_email': ('django.db.models.fields.EmailField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'contact_icq': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'contact_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'contact_other': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'contact_phone': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'contact_skype': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'inn': ('django.db.models.fields.CharField', [], {'max_length': '12'}), |
||||
'kpp': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '9', 'blank': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256', 'db_index': 'True'}), |
||||
'okpo': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '10', 'blank': 'True'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'clients'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.aktrabot': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'AktRabot'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'invoice': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'blank': 'True', 'to': "orm['docs.Invoice']"}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.aktrabotitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'AktRabotItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'aktrabot_items'", 'to': "orm['docs.AktRabot']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.aktsverki': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'AktSverki'}, |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_mesto': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'end_date': ('django.db.models.fields.DateField', [], {}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'saldo_credit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'saldo_debit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'start_date': ('django.db.models.fields.DateField', [], {}), |
||||
'total_credit': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'total_debit': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'total_saldo': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.aktsverkiitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'AktSverkiItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'credit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'debit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'aktsverki_items'", 'to': "orm['docs.AktSverki']"}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.country': { |
||||
'Meta': {'object_name': 'Country'}, |
||||
'code': ('django.db.models.fields.CharField', [], {'max_length': '200'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '10'}) |
||||
}, |
||||
'docs.currency': { |
||||
'Meta': {'object_name': 'Currency'}, |
||||
'code': ('django.db.models.fields.CharField', [], {'max_length': '200'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '10'}) |
||||
}, |
||||
'docs.dover': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Dover'}, |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_expire_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'dover_doc': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'dover_doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'dover_name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'dover_passport_date': ('django.db.models.fields.DateField', [], {}), |
||||
'dover_passport_num': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'dover_passport_org': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'dover_passport_ser': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.doveritem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'DoverItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'dover_items'", 'to': "orm['docs.Dover']"}), |
||||
'qty': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.faktura': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Faktura'}, |
||||
'avance': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'currency': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['docs.Currency']", 'null': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_reason': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
'fixes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'invoice': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'blank': 'True', 'to': "orm['docs.Invoice']"}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'plat_doc_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), |
||||
'plat_doc_num': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '30', 'blank': 'True'}), |
||||
'receiver': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'receiver_fakturas'", 'null': 'True', 'to': u"orm['customer.Client']"}), |
||||
'sender': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sender_fakturas'", 'null': 'True', 'to': u"orm['customer.Client']"}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}), |
||||
'user_is_sender': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) |
||||
}, |
||||
'docs.fakturaitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'FakturaItem'}, |
||||
'country_code': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'country_name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'gtd': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'ntd': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'faktura_items'", 'to': "orm['docs.Faktura']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'units_kod': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.invoice': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Invoice'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'closed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'paid_status': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.invoiceitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'InvoiceItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'invoice_items'", 'to': "orm['docs.Invoice']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.measure': { |
||||
'Meta': {'object_name': 'Measure'}, |
||||
'code': ('django.db.models.fields.CharField', [], {'max_length': '200'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '10'}) |
||||
}, |
||||
'docs.nakladn': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Nakladn'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_reason': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'invoice': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'blank': 'True', 'to': "orm['docs.Invoice']"}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.nakladnitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'NakladnItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nakladn_items'", 'to': "orm['docs.Nakladn']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.platejka': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Platejka'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_info': ('django.db.models.fields.TextField', [], {'max_length': '1000'}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_total': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'payment_order': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'payment_type': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}), |
||||
'platej_type': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}), |
||||
'tax_base': ('django.db.models.fields.CharField', [], {'default': "u'\\u0422\\u041f'", 'max_length': '10'}), |
||||
'tax_bk': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'tax_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), |
||||
'tax_num': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'tax_okato': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'tax_period': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'tax_status': ('django.db.models.fields.CharField', [], {'default': "u'01'", 'max_length': '10'}), |
||||
'tax_type': ('django.db.models.fields.CharField', [], {'default': "u'\\u041d\\u0421'", 'max_length': '10'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
} |
||||
} |
||||
|
||||
complete_apps = ['docs'] |
||||
@ -0,0 +1,330 @@ |
||||
# -*- coding: utf-8 -*- |
||||
import datetime |
||||
from south.db import db |
||||
from south.v2 import SchemaMigration |
||||
from django.db import models |
||||
|
||||
|
||||
class Migration(SchemaMigration): |
||||
|
||||
def forwards(self, orm): |
||||
# Adding field 'Faktura.fix_doc_num' |
||||
db.add_column(u'docs_faktura', 'fix_doc_num', |
||||
self.gf('django.db.models.fields.PositiveIntegerField')(max_length=30, null=True), |
||||
keep_default=False) |
||||
|
||||
# Adding field 'Faktura.fix_doc_date' |
||||
db.add_column(u'docs_faktura', 'fix_doc_date', |
||||
self.gf('django.db.models.fields.DateField')(null=True, blank=True), |
||||
keep_default=False) |
||||
|
||||
|
||||
def backwards(self, orm): |
||||
# Deleting field 'Faktura.fix_doc_num' |
||||
db.delete_column(u'docs_faktura', 'fix_doc_num') |
||||
|
||||
# Deleting field 'Faktura.fix_doc_date' |
||||
db.delete_column(u'docs_faktura', 'fix_doc_date') |
||||
|
||||
|
||||
models = { |
||||
u'auth.group': { |
||||
'Meta': {'object_name': 'Group'}, |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), |
||||
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) |
||||
}, |
||||
u'auth.permission': { |
||||
'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'}, |
||||
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
||||
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) |
||||
}, |
||||
u'auth.user': { |
||||
'Meta': {'object_name': 'User'}, |
||||
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
||||
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), |
||||
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), |
||||
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), |
||||
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
||||
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), |
||||
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), |
||||
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), |
||||
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) |
||||
}, |
||||
u'contenttypes.contenttype': { |
||||
'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, |
||||
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) |
||||
}, |
||||
u'customer.bankaccount': { |
||||
'Meta': {'ordering': "['-created_at']", 'object_name': 'BankAccount'}, |
||||
'account': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'address': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'bik': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'is_main': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'korr_account': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'bank_accounts'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
u'customer.client': { |
||||
'Meta': {'ordering': "['name', '-created_at']", 'object_name': 'Client'}, |
||||
'address': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'bank_account': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'bank_address': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'bank_bik': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '10', 'blank': 'True'}), |
||||
'bank_korr_account': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'bank_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'contact_email': ('django.db.models.fields.EmailField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'contact_icq': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'contact_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'contact_other': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'contact_phone': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'contact_skype': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'inn': ('django.db.models.fields.CharField', [], {'max_length': '12'}), |
||||
'kpp': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '9', 'blank': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256', 'db_index': 'True'}), |
||||
'okpo': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '10', 'blank': 'True'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'clients'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.aktrabot': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'AktRabot'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'invoice': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'blank': 'True', 'to': "orm['docs.Invoice']"}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.aktrabotitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'AktRabotItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'aktrabot_items'", 'to': "orm['docs.AktRabot']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.aktsverki': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'AktSverki'}, |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_mesto': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'end_date': ('django.db.models.fields.DateField', [], {}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'saldo_credit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'saldo_debit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'start_date': ('django.db.models.fields.DateField', [], {}), |
||||
'total_credit': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'total_debit': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'total_saldo': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.aktsverkiitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'AktSverkiItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'credit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
'debit': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'aktsverki_items'", 'to': "orm['docs.AktSverki']"}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.country': { |
||||
'Meta': {'object_name': 'Country'}, |
||||
'code': ('django.db.models.fields.CharField', [], {'max_length': '200'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '10'}) |
||||
}, |
||||
'docs.currency': { |
||||
'Meta': {'object_name': 'Currency'}, |
||||
'code': ('django.db.models.fields.CharField', [], {'max_length': '200'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '10'}) |
||||
}, |
||||
'docs.dover': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Dover'}, |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_expire_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'dover_doc': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'dover_doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'dover_name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'dover_passport_date': ('django.db.models.fields.DateField', [], {}), |
||||
'dover_passport_num': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'dover_passport_org': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'dover_passport_ser': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.doveritem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'DoverItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'dover_items'", 'to': "orm['docs.Dover']"}), |
||||
'qty': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.faktura': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Faktura'}, |
||||
'avance': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'currency': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['docs.Currency']", 'null': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_reason': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
'fix_doc_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), |
||||
'fix_doc_num': ('django.db.models.fields.PositiveIntegerField', [], {'max_length': '30', 'null': 'True'}), |
||||
'fixes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'invoice': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'blank': 'True', 'to': "orm['docs.Invoice']"}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'plat_doc_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), |
||||
'plat_doc_num': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '30', 'blank': 'True'}), |
||||
'receiver': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'receiver_fakturas'", 'null': 'True', 'to': u"orm['customer.Client']"}), |
||||
'sender': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sender_fakturas'", 'null': 'True', 'to': u"orm['customer.Client']"}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}), |
||||
'user_is_sender': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) |
||||
}, |
||||
'docs.fakturaitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'FakturaItem'}, |
||||
'country_code': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'country_name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'gtd': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'ntd': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'faktura_items'", 'to': "orm['docs.Faktura']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'units_kod': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.invoice': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Invoice'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'closed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'paid_status': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.invoiceitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'InvoiceItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'invoice_items'", 'to': "orm['docs.Invoice']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.measure': { |
||||
'Meta': {'object_name': 'Measure'}, |
||||
'code': ('django.db.models.fields.CharField', [], {'max_length': '200'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '10'}) |
||||
}, |
||||
'docs.nakladn': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Nakladn'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_reason': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}), |
||||
'doc_text': ('django.db.models.fields.TextField', [], {'default': "''", 'max_length': '1000', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'invoice': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'blank': 'True', 'to': "orm['docs.Invoice']"}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'signed_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
}, |
||||
'docs.nakladnitem': { |
||||
'Meta': {'ordering': "('created_at',)", 'object_name': 'NakladnItem'}, |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nakladn_items'", 'to': "orm['docs.Nakladn']"}), |
||||
'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'qty': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '3'}), |
||||
'total_price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
'units': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
||||
}, |
||||
'docs.platejka': { |
||||
'Meta': {'ordering': "('-doc_date',)", 'object_name': 'Platejka'}, |
||||
'bank_account': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.BankAccount']"}), |
||||
'client': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['customer.Client']"}), |
||||
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
||||
'doc_date': ('django.db.models.fields.DateField', [], {}), |
||||
'doc_info': ('django.db.models.fields.TextField', [], {'max_length': '1000'}), |
||||
'doc_num': ('django.db.models.fields.PositiveIntegerField', [], {}), |
||||
'doc_total': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}), |
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
||||
'nds_value': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
||||
'payment_order': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
||||
'payment_type': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}), |
||||
'platej_type': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '1'}), |
||||
'tax_base': ('django.db.models.fields.CharField', [], {'default': "u'\\u0422\\u041f'", 'max_length': '10'}), |
||||
'tax_bk': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'tax_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), |
||||
'tax_num': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '50', 'blank': 'True'}), |
||||
'tax_okato': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'tax_period': ('django.db.models.fields.CharField', [], {'max_length': '256'}), |
||||
'tax_status': ('django.db.models.fields.CharField', [], {'default': "u'01'", 'max_length': '10'}), |
||||
'tax_type': ('django.db.models.fields.CharField', [], {'default': "u'\\u041d\\u0421'", 'max_length': '10'}), |
||||
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['auth.User']"}) |
||||
} |
||||
} |
||||
|
||||
complete_apps = ['docs'] |
||||
@ -0,0 +1,625 @@ |
||||
{% load my_tags pytils_numeral pytils_dt %} |
||||
|
||||
<html> |
||||
<head> |
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
||||
|
||||
<style type="text/css"> |
||||
@page { size: a4 landscape; margin-left: 1.5cm; margin-right: 0.6cm; margin-top: 1cm; margin-bottom: 1cm; } |
||||
@font-face { font-family: Arial; src: url("{% fonts_root %}arial.ttf"); } |
||||
@font-face { font-family: Arial; src: url("{% fonts_root %}arialbd.ttf"); font-weight: bold; } |
||||
|
||||
body { font-family: Arial; font-size: 9pt; line-height: 120%; } |
||||
|
||||
table { border-collapse: collapse; padding-top: 0.3ex; line-height: 120%; -pdf-keep-in-frame-mode: truncate; /*shrink*/ } |
||||
table tr th { font-weight: normal; } |
||||
table tr { padding-left: 0.3ex; padding-right: 0.3ex; } |
||||
table tr td { vertical-align: middle; } |
||||
table .row { text-align: right; } |
||||
|
||||
.center { text-align: center; } |
||||
.left { text-align: left; } |
||||
.right { text-align: right; } |
||||
.top { vertical-align: top; } |
||||
.bottom { vertical-align: bottom; } |
||||
.bold { font-weight: bold; } |
||||
|
||||
.font_6 { font-size: 6pt; } |
||||
.font_7 { font-size: 7pt; } |
||||
.font_8 { font-size: 8pt; } |
||||
.font_9 { font-size: 9pt; } |
||||
.font_10 { font-size: 10pt; } |
||||
.font_12 { font-size: 12pt; } |
||||
.font_14 { font-size: 14pt; } |
||||
|
||||
.borders { border-style: solid; border-width: 1px; border-color: black; } |
||||
.top_border { border-top-style: solid; border-top-width: 1px; border-top-color: black; } |
||||
.top_border_2 { border-top-style: solid; border-top-width: 2px; border-top-color: black; } |
||||
.bottom_border { border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: black; } |
||||
.bottom_border_2 { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: black; } |
||||
.left_border { border-left-style: solid; border-left-width: 1px; border-left-color: black; } |
||||
.left_border_2 { border-left-style: solid; border-left-width: 2px; border-left-color: black; } |
||||
.right_border { border-right-style: solid; border-right-width: 1px; border-right-color: black; } |
||||
.right_border_2 { border-right-style: solid; border-right-width: 2px; border-right-color: black; } |
||||
</style> |
||||
|
||||
<body> |
||||
|
||||
<div class="right font_7"> |
||||
Унифицированная форма № ТОРГ-12. Утверждена постановлением Госкомстата России от 25.12.98 № 132 |
||||
</div> |
||||
|
||||
{# шапка документа #} |
||||
<div style="margin-top:1ex;"> |
||||
<table width="100%" class="left font_8"> |
||||
{# строка 1 #} |
||||
<tr> |
||||
<td width="1%"></td> |
||||
<td width="8%"></td> |
||||
<td width="3%"></td> |
||||
<td width="25%"></td> |
||||
<td width="12%"></td> |
||||
<td width="12%"></td> |
||||
<td width="10%"></td> |
||||
<td width="10%"></td> |
||||
<td width="6%"></td> |
||||
<td width="13%" class="center top_border left_border right_border bottom_border_2">Код</td> |
||||
</tr> |
||||
{# строка 2 #} |
||||
<tr> |
||||
<td colspan="9" class="right">Форма по ОКУД</td> |
||||
<td class="center left_border_2 right_border_2 bottom_border">0330212</td> |
||||
</tr> |
||||
{# строка 3 #} |
||||
<tr> |
||||
<td colspan="8" class="bottom bottom_border"> |
||||
{{ profile.get_company_name|safe }} , {{ profile.address|safe }} , |
||||
ИНН {{ profile.get_inn_and_kpp }} , тел. {{ profile.get_full_phone }} , |
||||
р/с {{ obj.bank_account.account }} в {{ obj.bank_account.name|safe }} , |
||||
{{ obj.bank_account.address|safe }} , БИК {{ obj.bank_account.bik }} , |
||||
корр/с {{ obj.bank_account.korr_account }} |
||||
</td> |
||||
<td class="right bottom">по ОКПО</td> |
||||
<td class="center left_border_2 right_border_2 bottom_border">{{ profile.ip_kod_okpo }}</td> |
||||
</tr> |
||||
{# строка 4 #} |
||||
<tr> |
||||
<td colspan="7" class="center font_7 top"> |
||||
(организация-грузоотправитель, адрес, телефон, факс, банковские реквизиты) |
||||
</td> |
||||
<td colspan="2" class="right bottom"></td> |
||||
<td rowspan="2" class="center left_border_2 right_border_2 bottom_border"></td> |
||||
</tr> |
||||
{# строка 5 #} |
||||
<tr> |
||||
<td colspan="9" class="font_6 bottom_border"> </td> |
||||
</tr> |
||||
{# строка 6 #} |
||||
<tr> |
||||
<td colspan="7" class="center font_7 top">(структурное подразделение)</td> |
||||
<td colspan="2" class="right bottom">Вид деятельности по ОКДП</td> |
||||
<td class="center left_border_2 right_border_2 bottom_border"></td> |
||||
</tr> |
||||
{# строка 7 #} |
||||
<tr> |
||||
<td></td> |
||||
<td colspan="2" class="bottom">Грузополучатель</td> |
||||
<td colspan="5" class="bottom bottom_border"> |
||||
{{ obj.client.name|safe }} , {{ obj.client.address|safe }} , |
||||
ИНН {{ obj.client.get_inn_and_kpp }} , |
||||
тел. {{ obj.client.contact_phone }} , |
||||
р/с {{ obj.client.bank_account }} в {{ obj.client.bank_name|safe }} , |
||||
{{ obj.client.bank_address|safe }} , БИК {{ obj.client.bank_bik }} , |
||||
корр/с {{ obj.client.bank_korr_account }} |
||||
</td> |
||||
<td class="right bottom">по ОКПО</td> |
||||
<td class="center left_border_2 right_border_2 bottom_border">{{ obj.client.kod_okpo }}</td> |
||||
</tr> |
||||
{# строка 8 #} |
||||
<tr> |
||||
<td colspan="3"></td> |
||||
<td colspan="5" class="center font_7 top">(организация, адрес, телефон, факс, банковские реквизиты)</td> |
||||
<td></td> |
||||
<td rowspan="2" class="center left_border_2 right_border_2 bottom_border">{{ profile.ip_kod_okpo }}</td> |
||||
</tr> |
||||
{# строка 9 #} |
||||
<tr> |
||||
<td></td> |
||||
<td class="bottom">Поставщик</td> |
||||
<td colspan="6" class="bottom bottom_border"> |
||||
{{ profile.get_company_name|safe }} , {{ profile.address|safe }} , |
||||
ИНН {{ profile.get_inn_and_kpp }} , тел. {{ profile.get_full_phone }} , |
||||
р/с {{ obj.bank_account.account }} в {{ obj.bank_account.name|safe }} , |
||||
{{ obj.bank_account.address|safe }} , БИК {{ obj.bank_account.bik }} , |
||||
корр/с {{ obj.bank_account.korr_account }} |
||||
</td> |
||||
<td class="right bottom">по ОКПО</td> |
||||
</tr> |
||||
{# строка 10 #} |
||||
<tr> |
||||
<td colspan="3"></td> |
||||
<td colspan="5" class="center font_7 top">(организация, адрес, телефон, факс, банковские реквизиты)</td> |
||||
<td></td> |
||||
<td rowspan="2" class="center left_border_2 right_border_2 bottom_border">{{ obj.client.kod_okpo }}</td> |
||||
</tr> |
||||
{# строка 11 #} |
||||
<tr> |
||||
<td></td> |
||||
<td class="bottom">Плательщик</td> |
||||
<td colspan="6" class="bottom bottom_border"> |
||||
{{ obj.client.name|safe }} , {{ obj.client.address|safe }} , |
||||
ИНН {{ obj.client.get_inn_and_kpp }} , |
||||
тел. {{ obj.client.contact_phone }} , |
||||
р/с {{ obj.client.bank_account }} в {{ obj.client.bank_name|safe }} , |
||||
{{ obj.client.bank_address|safe }} , БИК {{ obj.client.bank_bik }} , |
||||
корр/с {{ obj.client.bank_korr_account }} |
||||
</td> |
||||
<td class="right bottom bottom_border">по ОКПО</td> |
||||
</tr> |
||||
{# строка 12 #} |
||||
<tr> |
||||
<td colspan="3"></td> |
||||
<td colspan="5" class="center font_7 top">(организация, адрес, телефон, факс, банковские реквизиты)</td> |
||||
<td rowspan="2" class="right bottom left_border bottom_border">номер</td> |
||||
<td rowspan="2" class="center left_border_2 right_border_2 bottom_border"></td> |
||||
</tr> |
||||
{# строка 13 #} |
||||
<tr> |
||||
<td></td> |
||||
<td class="bottom">Основание</td> |
||||
<td colspan="6" class="bottom bottom_border"></td> |
||||
</tr> |
||||
{# строка 14 #} |
||||
<tr> |
||||
<td colspan="3"></td> |
||||
<td colspan="5" class="center font_7 top">(договор, заказ-наряд)</td> |
||||
<td rowspan="2" class="right bottom left_border bottom_border">дата</td> |
||||
<td rowspan="2" class="center left_border_2 right_border_2 bottom_border"></td> |
||||
</tr> |
||||
{# строка 15 #} |
||||
<tr> |
||||
<td colspan="8" class="font_6"></td> |
||||
</tr> |
||||
{# строка 16 #} |
||||
<tr> |
||||
<td colspan="8" class="right bottom">Счёт-фактура</td> |
||||
<td class="right bottom left_border bottom_border">номер</td> |
||||
<td class="center left_border_2 right_border_2 bottom_border"></td> |
||||
</tr> |
||||
{# строка 17 #} |
||||
<tr> |
||||
<td colspan="4"></td> |
||||
<td class="font_9 center left_border top_border bottom_border_2">Номер документа</td> |
||||
<td class="font_9 center left_border top_border right_border bottom_border_2">Дата составления</td> |
||||
<td colspan="2"></td> |
||||
<td class="right bottom left_border bottom_border">дата</td> |
||||
<td class="center left_border_2 right_border_2 bottom_border"></td> |
||||
</tr> |
||||
{# строка 18 #} |
||||
<tr> |
||||
<td colspan="3"></td> |
||||
<td class="font_10 bold right">ТОВАРНАЯ НАКЛАДНАЯ</td> |
||||
<td class="font_9 center left_border_2 bottom_border_2">{{ obj.doc_num }}</td> |
||||
<td class="font_9 center left_border right_border_2 bottom_border_2">{{ obj.doc_date|date:"d.m.Y" }}</td> |
||||
<td colspan="3" class="right">Вид операции</td> |
||||
<td class="center left_border_2 right_border_2 bottom_border_2"></td> |
||||
</tr> |
||||
</table> |
||||
</div> |
||||
|
||||
<br /> |
||||
|
||||
<div> |
||||
|
||||
{% for item in obj_items %} |
||||
{% if forloop.first %} {# шапка табл., если первая запись #} |
||||
{% if item.pdf_pagebreak_before %} {# разрыв страницы перед таблицей #} |
||||
<pdf:nextpage /> |
||||
{% endif %} |
||||
<table repeat="3" width="100%" class="right font_8"> |
||||
{% include "docs/nakladn/as_pdf_items_tbl_header.html" %} |
||||
{% endif %} |
||||
|
||||
{# данные #} |
||||
<tr class="bottom_border left_border"> |
||||
<td class="center right_border">{{ forloop.counter }}</td>{# 1 #} |
||||
<td class="left right_border_2">{{ item.name|safe }}</td>{# 2 #} |
||||
<td class="right_border_2"></td>{# 3 #} |
||||
<td class="center right_border_2">{{ item.units|safe }}</td>{# 4 #} |
||||
<td class="right_border"></td>{# 5 #} |
||||
<td class="right_border"></td>{# 6 #} |
||||
<td class="right_border"></td>{# 7 #} |
||||
<td class="right_border"></td>{# 8 #} |
||||
<td class="right_border"></td>{# 9 #} |
||||
<td class="right_border">{{ item.qty }}</td>{# 10 #} |
||||
<td class="right_border">{{ item.clean_price}}</td>{# 11 #} |
||||
<td class="right_border_2">{{ item.clean_total_price|floatformat:2 }}</td>{# 12 #} |
||||
<td class="center right_border_2">{{ obj.get_nds_as_number }}</td>{# 13 #} |
||||
<td class="right_border">{{ item.total_nds|floatformat:2 }}</td>{# 14 #} |
||||
<td class="right_border_2">{{ item.full_total_price|floatformat:2 }}</td>{# 15 #} |
||||
</tr> |
||||
|
||||
{% if item.pdf_page_footer %} {# подитог #} |
||||
<tr> |
||||
<td colspan="2"></td>{# 1-2 #} |
||||
<td class="top_border_2"></td>{# 3 #} |
||||
<td></td>{# 4 #} |
||||
<td class="top_border_2"></td>{# 5 #} |
||||
<td class="top_border_2"></td>{# 6 #} |
||||
<td class="top_border_2">Итого</td>{# 7 #} |
||||
<td class="left_border right_border top_border_2 bottom_border"></td>{# 8 #} |
||||
<td class="center left_border right_border top_border_2 bottom_border"></td>{# 9 #} |
||||
<td class="left_border right_border top_border_2 bottom_border">{{ item.sum_qty|floatformat:3 }}</td>{# 10 #} |
||||
<td class="center left_border right_border top_border_2 bottom_border">X</td>{# 11 #} |
||||
<td class="left_border right_border top_border_2 bottom_border">{{ item.sum_clean_total_price|floatformat:2 }}</td>{# 12 #} |
||||
<td class="center left_border right_border bottom_border">X</td>{# 13 #} |
||||
<td class="left_border right_border top_border_2 bottom_border">{{ item.sum_total_nds|floatformat:2 }}</td>{# 14 #} |
||||
<td class="left_border right_border top_border_2 bottom_border">{{ item.sum_full_total_price|floatformat:2 }}</td>{# 15 #} |
||||
</tr> |
||||
{% endif %} |
||||
|
||||
{% if forloop.last %} {# всего по таблице, если последняя запись #} |
||||
<tr> |
||||
<td colspan="7">Всего по накладной</td>{# 1-7 #} |
||||
<td class="left_border right_border bottom_border"></td>{# 8 #} |
||||
<td class="center left_border right_border bottom_border"></td>{# 9 #} |
||||
<td class="left_border right_border bottom_border">{{ obj.sum_qty|floatformat:3 }}</td>{# 10 #} |
||||
<td class="center left_border right_border bottom_border">X</td>{# 11 #} |
||||
<td class="left_border right_border bottom_border">{{ obj.sum_clean_total_price|floatformat:2 }}</td>{# 12 #} |
||||
<td class="center left_border right_border bottom_border">X</td>{# 13 #} |
||||
<td class="left_border right_border bottom_border">{{ obj.sum_total_nds|floatformat:2 }}</td>{# 14 #} |
||||
<td class="left_border right_border bottom_border">{{ obj.sum_full_total_price|floatformat:2 }}</td>{# 15 #} |
||||
</tr> |
||||
</table> |
||||
{% if item.pdf_pagebreak_after %} {# разрыв страницы после всей таблицы #} |
||||
<pdf:nextpage /> |
||||
{% endif %} |
||||
{% endif %} |
||||
|
||||
{% if not forloop.last %} |
||||
{% if item.pdf_pagebreak_after %} {# разрыв страницы после записи #} |
||||
</table> |
||||
<pdf:nextpage /> |
||||
<table repeat="3" width="100%" class="right font_8"> {# перевывести шапку табл. #} |
||||
{% include "docs/nakladn/as_pdf_items_tbl_header.html" %} |
||||
{% endif %} |
||||
{% endif %} |
||||
{% endfor %} |
||||
|
||||
</div> |
||||
|
||||
{# подвал документа #} |
||||
|
||||
<br /> |
||||
|
||||
<div class="left bottom"> |
||||
<table width="100%" class="left font_8"> |
||||
<tr> |
||||
<td width="3%"></td> |
||||
<td width="7%"></td> |
||||
<td width="1%"></td> |
||||
<td width="14%"></td> |
||||
<td width="1%"></td> |
||||
<td width="44%"></td> |
||||
<td width="1%"></td> |
||||
<td width="29%"></td> |
||||
</tr> |
||||
<tr> |
||||
<td></td> |
||||
<td colspan="3">Товарная накладная имеет приложение на</td> |
||||
<td></td> |
||||
<td class="bottom_border"></td> |
||||
<td></td> |
||||
<td>листах</td> |
||||
</tr> |
||||
<tr> |
||||
<td></td> |
||||
<td>и содержит</td> |
||||
<td></td> |
||||
<td colspan="3" class="bottom_border">{{ obj_items|length|in_words }}</td> |
||||
<td></td> |
||||
<td>порядковых номеров записей</td> |
||||
</tr> |
||||
<tr> |
||||
<td colspan="3"></td> |
||||
<td colspan="3" class="center font_7 top">(прописью)</td> |
||||
<td colspan="2"></td> |
||||
</tr> |
||||
</table> |
||||
|
||||
<table width="100%" class="left font_8"> |
||||
<tr> |
||||
<td width="3%"></td> |
||||
<td width="6%"></td> |
||||
<td width="1%"></td> |
||||
<td width="25%"></td> |
||||
<td width="1%"></td> |
||||
<td width="11%"></td> |
||||
<td width="1%"></td> |
||||
<td width="33%"></td> |
||||
<td width="1%"></td> |
||||
<td width="17%" rowspan="2" class="left_border_2 right_border_2 top_border_2 bottom_border"><br /> </td> |
||||
</tr> |
||||
<tr> |
||||
<td></td> |
||||
<td></td> |
||||
<td></td> |
||||
<td></td> |
||||
<td></td> |
||||
<td>Масса груза (нетто)</td> |
||||
<td></td> |
||||
<td class="bottom_border"></td> |
||||
<td></td> |
||||
</tr> |
||||
<tr class="center font_7 top"> |
||||
<td></td> |
||||
<td></td> |
||||
<td></td> |
||||
<td></td> |
||||
<td></td> |
||||
<td></td> |
||||
<td></td> |
||||
<td>(прописью)</td> |
||||
<td></td> |
||||
<td rowspan="2" class="left_border_2 right_border_2 bottom_border_2"> </td> |
||||
</tr> |
||||
<tr> |
||||
<td></td> |
||||
<td>Всего мест</td> |
||||
<td></td> |
||||
<td class="bottom_border"></td> |
||||
<td></td> |
||||
<td>Масса груза (брутто)</td> |
||||
<td></td> |
||||
<td class="bottom_border"></td> |
||||
<td></td> |
||||
</tr> |
||||
<tr class="center font_7 top"> |
||||
<td></td> |
||||
<td></td> |
||||
<td></td> |
||||
<td>(прописью)</td> |
||||
<td></td> |
||||
<td></td> |
||||
<td></td> |
||||
<td>(прописью)</td> |
||||
<td></td> |
||||
<td></td> |
||||
</tr> |
||||
</table> |
||||
|
||||
<table width="100%" class="left font_8"> |
||||
<tr> |
||||
<td width="13%"> </td> |
||||
<td width="1%"></td> |
||||
<td width="9%"></td> |
||||
<td width="1%"></td> |
||||
<td width="12%"></td> |
||||
<td width="3%"></td> |
||||
<td width="5%"></td> |
||||
<td width="1%"></td> |
||||
<td width="1%"></td> |
||||
<td width="4%"></td> |
||||
{# правая половина #} |
||||
<td width="1%"></td> |
||||
<td width="6%"></td> |
||||
<td width="5%"></td> |
||||
<td width="15%"></td> |
||||
<td width="3%"></td> |
||||
<td width="2%"></td> |
||||
<td width="2%"></td> |
||||
<td width="8%"></td> |
||||
<td width="1%"></td> |
||||
<td width="3%"></td> |
||||
<td width="3%"></td> |
||||
</tr> |
||||
<tr> |
||||
<td colspan="3">Приложение (паспорта, сертификаты и т.п.) на</td> |
||||
<td></td> |
||||
<td colspan="3" class="bottom_border"></td> |
||||
<td></td> |
||||
<td colspan="2" class="right_border">листах</td> |
||||
{# правая половина #} |
||||
<td></td> |
||||
<td colspan="2">По доверенности №</td> |
||||
<td class="bottom_border"></td> |
||||
<td class="right">от «</td> |
||||
<td class="bottom_border"></td> |
||||
<td>»</td> |
||||
<td class="bottom_border"></td> |
||||
<td></td> |
||||
<td class="bottom_border"></td> |
||||
<td>года,</td> |
||||
</tr> |
||||
<tr> |
||||
<td colspan="4"></td> |
||||
<td colspan="3" class="center font_7 top">(прописью)</td> |
||||
<td colspan="3" class="right_border"></td> |
||||
{# правая половина #} |
||||
<td></td> |
||||
<td colspan="10"> </td> |
||||
</tr> |
||||
<tr> |
||||
<td>Всего отпущено на сумму</td> |
||||
<td></td> |
||||
<td colspan="7" class="bottom_border"></td> |
||||
<td class="right_border"></td> |
||||
{# правая половина #} |
||||
<td></td> |
||||
<td>выданной</td> |
||||
<td colspan="9" class="bottom_border"></td> |
||||
</tr> |
||||
<tr> |
||||
<td colspan="2"></td> |
||||
<td colspan="7" class="center font_7 top">(прописью)</td> |
||||
<td class="right_border"></td> |
||||
{# правая половина #} |
||||
<td></td> |
||||
<td></td> |
||||
<td colspan="9" class="center font_7 top">(кем, кому (организация, должность, фамилия, и., о.))</td> |
||||
</tr> |
||||
<tr> |
||||
<td colspan="5" class="bottom_border"></td> |
||||
<td>руб.</td> |
||||
<td colspan="3" class="bottom_border"></td> |
||||
<td class="right_border">коп.</td> |
||||
{# правая половина #} |
||||
<td></td> |
||||
<td colspan="10" class="bottom_border"> </td> |
||||
</tr> |
||||
<tr> |
||||
<td colspan="10" class="right_border"> </td> |
||||
{# правая половина #} |
||||
<td></td> |
||||
<td colspan="10"> </td> |
||||
</tr> |
||||
</table> |
||||
|
||||
<table width="100%" class="left font_8"> |
||||
<tr> |
||||
<td width="12%"> </td> |
||||
<td width="4%"></td> |
||||
<td width="5%"></td> |
||||
<td width="1%"></td> |
||||
<td width="11%"></td> |
||||
<td width="1%"></td> |
||||
<td width="15%"></td> |
||||
<td width="1%" class="right_border"></td> |
||||
{# правая половина #} |
||||
<td width="1%"> </td> |
||||
<td width="7%"></td> |
||||
<td width="9%"></td> |
||||
<td width="1%"></td> |
||||
<td width="9%"></td> |
||||
<td width="1%"></td> |
||||
<td width="6%"></td> |
||||
<td width="1%"></td> |
||||
<td width="14%"></td> |
||||
</tr> |
||||
<tr> |
||||
<td>Отпуск груза разрешил</td> |
||||
<td colspan="2" class="bottom_border"></td> |
||||
<td></td> |
||||
<td class="bottom_border"></td> |
||||
<td></td> |
||||
<td class="center bottom_border">{{ profile.get_boss_fio }}</td> |
||||
<td class="right_border"></td> |
||||
{# правая половина #} |
||||
<td></td> |
||||
<td colspan="8" class="bottom_border"> </td> |
||||
</tr> |
||||
<tr> |
||||
<td></td> |
||||
<td colspan="2" class="center font_7 top">(должность)</td> |
||||
<td></td> |
||||
<td class="center font_7 top">(подпись)</td> |
||||
<td></td> |
||||
<td class="center font_7 top">(расшифровка подписи)</td> |
||||
<td class="right_border"></td> |
||||
{# правая половина #} |
||||
<td></td> |
||||
<td colspan="8"> </td> |
||||
</tr> |
||||
<tr> |
||||
<td colspan="3">Главный (старший) бухгалтер</td> |
||||
<td></td> |
||||
<td class="bottom_border"></td> |
||||
<td></td> |
||||
<td class="center bottom_border">{{ profile.get_glavbuh_fio }}</td> |
||||
<td class="right_border"></td> |
||||
{# правая половина #} |
||||
<td></td> |
||||
<td>Груз принял</td> |
||||
<td class="bottom_border"></td> |
||||
<td></td> |
||||
<td class="bottom_border"></td> |
||||
<td></td> |
||||
<td colspan="3" class="bottom_border"></td> |
||||
</tr> |
||||
<tr> |
||||
<td colspan="3"></td> |
||||
<td></td> |
||||
<td class="center font_7 top">(подпись)</td> |
||||
<td></td> |
||||
<td class="center font_7 top">(расшифровка подписи)</td> |
||||
<td class="right_border"></td> |
||||
{# правая половина #} |
||||
<td></td> |
||||
<td></td> |
||||
<td class="center font_7 top">(должность)</td> |
||||
<td></td> |
||||
<td class="center font_7 top">(подпись)</td> |
||||
<td></td> |
||||
<td colspan="3" class="center font_7 top">(расшифровка подписи)</td> |
||||
</tr> |
||||
<tr> |
||||
<td>Отпуск груза произвел</td> |
||||
<td colspan="2" class="bottom_border"></td> |
||||
<td></td> |
||||
<td class="bottom_border"></td> |
||||
<td></td> |
||||
<td class="bottom_border"></td> |
||||
<td class="right_border"></td> |
||||
{# правая половина #} |
||||
<td></td> |
||||
<td colspan="2">Груз получил грузополучатель</td> |
||||
<td colspan="2" class="bottom_border"></td> |
||||
<td></td> |
||||
<td class="bottom_border"></td> |
||||
<td></td> |
||||
<td class="bottom_border"></td> |
||||
</tr> |
||||
<tr> |
||||
<td></td> |
||||
<td colspan="2" class="center font_7 top">(должность)</td> |
||||
<td></td> |
||||
<td class="center font_7 top">(подпись)</td> |
||||
<td></td> |
||||
<td class="center font_7 top">(расшифровка подписи)</td> |
||||
<td class="right_border"></td> |
||||
{# правая половина #} |
||||
<td></td> |
||||
<td colspan="2"></td> |
||||
<td colspan="2" class="center font_7 top">(должность)</td> |
||||
<td></td> |
||||
<td class="center font_7 top">(подпись)</td> |
||||
<td></td> |
||||
<td class="center font_7 top">(расшифровка подписи)</td> |
||||
</tr> |
||||
<tr> |
||||
<td colspan="8" class="right_border"> </td> |
||||
{# правая половина #} |
||||
<td colspan="9"> </td> |
||||
</tr> |
||||
</table> |
||||
|
||||
<table width="100%" class="left font_8"> |
||||
<tr> |
||||
<td width="10%" class="font_10 right">М.П.</td> |
||||
<td width="3%"></td> |
||||
<td width="1%" class="right">«</td> |
||||
<td width="2%" class="bottom_border"></td> |
||||
<td width="1%">»</td> |
||||
<td width="1%"></td> |
||||
<td width="13%" class="bottom_border"></td> |
||||
<td width="1%"></td> |
||||
<td width="5%" class="bottom_border"></td> |
||||
<td width="14%" class="right_border">года</td> |
||||
{# правая половина #} |
||||
<td width="1%"></td> |
||||
<td width="10%" class="font_10 right">М.П.</td> |
||||
<td width="3%"></td> |
||||
<td width="1%" class="right">«</td> |
||||
<td width="2%" class="bottom_border"></td> |
||||
<td width="1%">»</td> |
||||
<td width="1%"></td> |
||||
<td width="13%" class="bottom_border"></td> |
||||
<td width="1%"></td> |
||||
<td width="5%" class="bottom_border"></td> |
||||
<td width="13%">года</td> |
||||
</tr> |
||||
</table> |
||||
</div> |
||||
|
||||
</body> |
||||
</html> |
||||
@ -1,31 +0,0 @@ |
||||
{# табличная часть документа #} |
||||
|
||||
<table id="tbl_plat_items" class="list"> |
||||
<tbody> |
||||
<tr> |
||||
<th>К плат. документу</th> |
||||
<th style="width: 72px">От</th> |
||||
</tr> |
||||
|
||||
{% for pform in pformset.forms %} |
||||
<tr class="row {% cycle 'even' 'odd' %} plat_form" {% if pform.DELETE.value %}style='display:none;'{% endif %}> |
||||
<td class="name"> |
||||
{{ pform.num.errors }} |
||||
{{ pform.num }} |
||||
</td> |
||||
<td class="doc_date"> |
||||
{{ pform.doc_date.errors }} |
||||
{{ pform.doc_date }} |
||||
</td> |
||||
{{ pform.id }} |
||||
<td class="DELETE center"> |
||||
<span style='display:none;'>{{ pform.DELETE }}</span> |
||||
</td> |
||||
</tr> |
||||
{% endfor %} |
||||
</tbody> |
||||
</table> |
||||
|
||||
{{ pformset.management_form }} |
||||
|
||||
<div class="clear"></div> |
||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue