from django.contrib import admin
# Register your models here.
from .models import userTrade
from .models import userSupplier
from .models import item
from .models import orderItem
from .models import Account
class userTradeAdmin(admin.ModelAdmin):
list_display = ('name', 'remarks')
class userSupplierAdmin(admin.ModelAdmin):
list_display = ('name', 'remarks')
class itemAdmin(admin.ModelAdmin):
list_display = ('name', 'size', 'quantity')
class orderItemAdmin(admin.ModelAdmin):
list_display = ('createdDate', 'deliveryDate', 'deliveryDateSub', 'userTrade', 'supplier', 'item', 'size', 'quantity', 'purchasePrice', 'sellingPrice', 'profit', 'remarks')
admin.site.register(userTrade, userTradeAdmin)
admin.site.register(userSupplier, userSupplierAdmin)
admin.site.register(item, itemAdmin)
admin.site.register(orderItem, orderItemAdmin)
admin.site.register(Account)