diff --git a/tailbone_corepos/views/corepos/customers.py b/tailbone_corepos/views/corepos/customers.py index 671cdf8..6477e90 100644 --- a/tailbone_corepos/views/corepos/customers.py +++ b/tailbone_corepos/views/corepos/customers.py @@ -40,52 +40,42 @@ class CustomerView(CoreOfficeMasterView): labels = { 'id': "ID", - 'CardNo': "Card No.", - 'personNum': "Person No.", - 'LastName': "Last Name", - 'FirstName': "First Name", - 'CashBack': "Cash Back", - 'MemDiscountLimit': "Member Discount Limit", - 'ChargeLimit': "Charge Limit", - 'ChargeOk': "Charge OK", - 'WriteChecks': "Write Checks", - 'StoreCoupons': "Store Coupons", - 'memType': "Member Type No.", - 'NumberOfChecks': "Number of Checks", - 'memCoupons': "Member Coupons", - 'blueLine': "Blue Line", - 'LastChange': "Last Change", + 'card_number': "Card No.", + 'person_number': "Person No.", + 'charge_ok': "Charge OK", + 'member_type_id': "Member Type No.", + 'number_of_checks': "Number of Checks", } grid_columns = [ - 'CardNo', - 'FirstName', - 'LastName', - 'ChargeOk', - 'ChargeLimit', - 'Balance', - 'WriteChecks', - 'Purchases', + 'card_number', + 'first_name', + 'last_name', + 'charge_ok', + 'charge_limit', + 'balance', + 'write_checks', + 'purchases', ] def configure_grid(self, g): super(CustomerView, self).configure_grid(g) - g.filters['FirstName'].default_active = True - g.filters['FirstName'].default_verb = 'contains' + g.filters['first_name'].default_active = True + g.filters['first_name'].default_verb = 'contains' - g.filters['LastName'].default_active = True - g.filters['LastName'].default_verb = 'contains' + g.filters['last_name'].default_active = True + g.filters['last_name'].default_verb = 'contains' - g.set_type('ChargeLimit', 'currency') - g.set_type('Balance', 'currency') - g.set_type('Purchases', 'currency') + g.set_type('charge_limit', 'currency') + g.set_type('balance', 'currency') + g.set_type('purchases', 'currency') - g.set_sort_defaults('CardNo') + g.set_sort_defaults('card_number') - g.set_link('CardNo') - g.set_link('FirstName') - g.set_link('LastName') + g.set_link('card_number') + g.set_link('first_name') + g.set_link('last_name') def includeme(config):