コード例 #1
0
    def _set_transit_subsidy(self):
        transit = TransitSubsidy()
        office = OfficeLocation.objects.order_by('city')[0]

        transit.user = self.user
        transit.signature = 'foo'
        transit.destination = office
        transit.date_enrolled = '2011-06-23'
        transit.date_withdrawn = None

        transit.origin_street = '123 Main Street'
        transit.origin_city = 'Anytown'
        transit.origin_state = 'VA'
        transit.origin_zip = '22222'
        transit.route_description = "Harbor bus to City Subway stop to Work Subway"

        transit.number_of_workdays = 20
        transit.daily_roundtrip_cost = 8
        transit.daily_parking_cost = 4
        transit.amount = 8
        transit.total_commute_cost = 160
        transit.dc_wmta_smartrip_id = '123-123-123'

        transit.save()
        return transit
コード例 #2
0
    def _set_transit_subsidy(self):
        transit = TransitSubsidy()
        office = OfficeLocation.objects.order_by('city')[0]

        transit.user = self.user
        transit.signature = 'foo'
        transit.destination = office
        transit.date_enrolled = '2011-06-23'
        transit.date_withdrawn = None

        transit.origin_street = '123 Main Street'
        transit.origin_city = 'Anytown'
        transit.origin_state = 'VA'
        transit.origin_zip = '22222'
        transit.route_description = "Harbor bus to City Subway stop to Work Subway"
        
        transit.number_of_workdays = 20
        transit.daily_roundtrip_cost = 8
        transit.daily_parking_cost = 4
        transit.amount = 8
        transit.total_commute_cost = 160
        transit.dc_wmta_smartrip_id = '123-123-123'
        
        transit.save()
        return transit
コード例 #3
0
    def _set_transit_subsidy(self):
        transit = TransitSubsidy()
        office = OfficeLocation.objects.order_by('city')[0]

        transit.user = self.user
        transit.last_four_ssn = 3333
        transit.destination = office
        transit.date_enrolled = '2011-06-23'

        transit.origin_street = '123 Main Street'
        transit.origin_city = 'Anytown'
        transit.origin_state = 'VA'
        transit.origin_zip = '22222'
       
        transit.number_of_workdays = 20
        transit.daily_roundtrip_cost = 8
        transit.daily_parking_cost = 4
        transit.amount = 125
        transit.total_commute_cost = 160
        transit.dc_wmta_smartrip_id = '123-123-123'
        transit.save()
        return transit