Line # Revision Author
1 198 ahitrov package webshop::Address;
2
3 use Contenido::Globals;
4 use base "Contenido::Document";
5 sub extra_properties
6 {
7 return (
8 { 'attr' => 'status', 'type' => 'status', 'rusname' => 'Статус заказа',
9 'cases' => [
10 [0, 'Дополнительный адрес'],
11 [1, 'Основной адрес'],
12 ],
13 },
14 { 'attr' => 'delivery', 'type' => 'lookup', 'rusname' => 'Тип доставки',
15 'lookup_opts' => {
16 'class' => 'webshop::Delivery',
17 },
18 },
19 { 'attr' => 'name', 'type' => 'string', 'rusname' => 'Контактное лицо' },
20 { 'attr' => 'phone', 'type' => 'string', 'rusname' => 'Телефон для связи' },
21 { 'attr' => 'zipcode', 'type' => 'string', 'rusname' => 'Почтовый индекс' },
22 { 'attr' => 'town', 'type' => 'string', 'rusname' => 'Город' },
23 { 'attr' => 'metro', 'type' => 'string', 'rusname' => 'Ближайшее метро' },
24 { 'attr' => 'address', 'type' => 'text', 'rusname' => 'Адрес доставки', rows => 5 },
25 { 'attr' => 'timeline', 'type' => 'string', 'rusname' => 'Предпочтительное время' },
26 { 'attr' => 'description', 'type' => 'text', 'rusname' => 'Описание для курьера', rows => 5 },
27 )
28 }
29
30 sub class_name
31 {
32 return 'Заказ';
33 }
34
35 sub class_description
36 {
37 return 'Заказ';
38 }
39
40 sub class_table
41 {
42 return 'webshop::SQL::AddressTable';
43 }
44
45 1;