# -*- coding: utf-8 -*-
# DjRece es una interfase web para utilizar PyRece desde una app de Django
""" DjRece: Copyright 2010 Alan Etkin, hexa662@gmail.com.
Este programa se distribuye bajo los términos de la licencia AGPLv3.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, version 3 of the License, or any later
version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
"""
PyRece - PyAfipWS es copyright de M. Reingart y M. Alániz
http://code.google.com/p/pyafipws/
"""
from models import *
from django.contrib import admin
class OperacionAdmin(admin.ModelAdmin):
date_hierarchy = 'fecha'
list_display = ('id', 'fecha', 'punto_de_venta_numero', 'id_consultado')
class ErrorAdmin(admin.ModelAdmin):
date_hierarchy = 'fecha'
list_display = ('id', 'fecha')
class TraceAdmin(admin.ModelAdmin):
date_hierarchy = 'fecha'
list_display = ('id', 'fecha')
class CompraAdmin(admin.ModelAdmin):
date_hierarchy = 'fecha'
list_display = ('id', 'fecha', 'punto_de_venta_numero', 'proveedor_nombre')
admin.site.register(Operacion, OperacionAdmin)
admin.site.register(Error, ErrorAdmin)
admin.site.register(Trace, TraceAdmin)
admin.site.register(Compra, CompraAdmin)
admin.site.register(Provincia)
admin.site.register(Localidad)
admin.site.register(Proveedor)
admin.site.register(Punto_de_Compra)
admin.site.register(Producto)
admin.site.register(Item_de_Operacion)
admin.site.register(Item_de_Compra)
admin.site.register(Pago)
admin.site.register(Cliente)
admin.site.register(Punto_de_Venta)