Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- customer.each {
- |addr| if customer.pj = 'P'; addr.create (
- addr_type => 0
- addr_country => customer.r_oskm
- addr_post_index => customer.r_postal_code
- addr_reg_code => customer.r_region_number
- addr_reg_name => customer.r_region
- addr_area => customer.r_area
- addr_area_type => customer.r_area_type
- addr_city => customer.r_city
- addr_city_type => customer.r_city_type
- addr_house => customer.r_house
- if customer.r_block_type = "к"
- addr_block => customer.r_block
- #addr_str
- eslif customer.r_block_type = "стр"
- addr_str => customer.r_block
- #addr_block
- addr_apartment => customer.r_flat
- addr_local_name => customer.r_settlment
- addr_local_type => customer.r_settlement_type_full
- #addr_plan
- #addr_plan_type
- #addr_infr
- #addr_infr_type
- #addr_house
- #addr_porch
- #addr_office
- #addr_code
- #addr_addr_str
- #addr_address_lat
- )
- addr.create (
- addr_type => 1
- addr_country => customer.l_oskm
- addr_post_index => customer.l_postal_code
- addr_reg_code => customer.l_region_number
- addr_reg_name => customer.l_region
- addr_area => customer.l_area
- addr_area_type => customer.l_area_type
- addr_city => customer.l_city
- addr_city_type => customer.l_city_type
- addr_house => customer.l_house
- if customer.r_block_type = "к"
- addr_block => customer.r_block
- #addr_str
- eslif customer.r_block_type = "стр"
- addr_str => customer.r_block
- #addr_block
- addr_apartment => customer.l_flat
- addr_local_name => customer.l_settlment
- addr_local_type => customer.l_settlement_type_full
- #addr_plan
- #addr_plan_type
- #addr_infr
- #addr_infr_type
- #addr_house
- #addr_porch
- #addr_office
- #addr_code
- #addr_addr_str
- #addr_address_lat
- )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement