Changeset 7628 for main/waeup.sirp/trunk


Ignore:
Timestamp:
10 Feb 2012, 20:45:33 (13 years ago)
Author:
Henrik Bettermann
Message:

Add converters for payment files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/tools/fix_import_file.py

    r7610 r7628  
    5959    'application_category': 'application_category',
    6060    'lga': 'lga',
     61    'order_id': 'no_int',
    6162    }
    6263
     
    7475    # course ticket
    7576    'level_id': 'level',
     77    # payment ticket
     78    'order_id': 'p_id',
     79    'status': 'p_state',
     80    'category': 'p_category',
     81    'resp_pay_reference': 'r_pay_reference',
     82    'resp_desc': 'r_desc',
     83    'resp_approved_amount': 'r_amount_approved',
     84    'item': 'p_item',
     85    'amount': 'amount_auth',
     86    'resp_card_num': 'r_card_num',
     87    'resp_code': 'r_code',
     88    'date': 'creation_date',
     89    'surcharge': 'surcharge_1',
     90    'session_id': 'p_session',
    7691    }
    7792
     
    216231            value += '#'
    217232        return value
     233
     234    @classmethod
     235    def no_int(self, value):
     236        """ Add hash.
     237        """
     238        # We add the hash symbol to avoid automatic number transformation
     239        # in Excel and Calc for further processing
     240        value += '#'
     241        return value
     242
    218243
    219244    @classmethod
Note: See TracChangeset for help on using the changeset viewer.