Revision 1f238cdd
Von Bernd Bleßmann vor mehr als 1 Jahr hinzugefügt
SL/DB/DeliveryOrder/TypeData.pm | ||
---|---|---|
56 | 56 |
view => "sales_delivery_order_edit | sales_delivery_order_view", |
57 | 57 |
}, |
58 | 58 |
features => { |
59 |
price_tax => 0, |
|
60 |
stock => 1, |
|
59 |
price_tax => 0, |
|
60 |
stock => 1, |
|
61 |
subversions => 0, |
|
61 | 62 |
}, |
62 | 63 |
}, |
63 | 64 |
PURCHASE_DELIVERY_ORDER_TYPE() => { |
... | ... | |
97 | 98 |
view => "purchase_delivery_order_edit | purchase_delivery_order_view", |
98 | 99 |
}, |
99 | 100 |
features => { |
100 |
price_tax => 0, |
|
101 |
stock => 1, |
|
101 |
price_tax => 0, |
|
102 |
stock => 1, |
|
103 |
subversions => 0, |
|
102 | 104 |
}, |
103 | 105 |
}, |
104 | 106 |
SUPPLIER_DELIVERY_ORDER_TYPE() => { |
... | ... | |
138 | 140 |
view => "purchase_delivery_order_edit | purchase_delivery_order_view", |
139 | 141 |
}, |
140 | 142 |
features => { |
141 |
price_tax => 0, |
|
142 |
stock => 1, |
|
143 |
price_tax => 0, |
|
144 |
stock => 1, |
|
145 |
subversions => 0, |
|
143 | 146 |
}, |
144 | 147 |
}, |
145 | 148 |
RMA_DELIVERY_ORDER_TYPE() => { |
... | ... | |
179 | 182 |
view => "sales_delivery_order_edit | sales_delivery_order_view", |
180 | 183 |
}, |
181 | 184 |
features => { |
182 |
price_tax => 0, |
|
183 |
stock => 1, |
|
185 |
price_tax => 0, |
|
186 |
stock => 1, |
|
187 |
subversions => 0, |
|
184 | 188 |
}, |
185 | 189 |
}, |
186 | 190 |
); |
SL/DB/Order/TypeData.pm | ||
---|---|---|
63 | 63 |
view => "sales_order_edit | sales_order_view", |
64 | 64 |
}, |
65 | 65 |
features => { |
66 |
price_tax => 1, |
|
67 |
stock => 0, |
|
66 |
price_tax => 1, |
|
67 |
stock => 0, |
|
68 |
subversions => 1, |
|
68 | 69 |
}, |
69 | 70 |
}, |
70 | 71 |
PURCHASE_ORDER_TYPE() => { |
... | ... | |
104 | 105 |
view => "purchase_order_edit | purchase_order_view", |
105 | 106 |
}, |
106 | 107 |
features => { |
107 |
price_tax => 1, |
|
108 |
stock => 0, |
|
108 |
price_tax => 1, |
|
109 |
stock => 0, |
|
110 |
subversions => 1, |
|
109 | 111 |
}, |
110 | 112 |
}, |
111 | 113 |
SALES_QUOTATION_TYPE() => { |
... | ... | |
152 | 154 |
view => "sales_quotation_edit | sales_quotation_view", |
153 | 155 |
}, |
154 | 156 |
features => { |
155 |
price_tax => 1, |
|
156 |
stock => 0, |
|
157 |
price_tax => 1, |
|
158 |
stock => 0, |
|
159 |
subversions => 1, |
|
157 | 160 |
}, |
158 | 161 |
}, |
159 | 162 |
REQUEST_QUOTATION_TYPE() => { |
... | ... | |
193 | 196 |
view => "purchase_quotation_edit | purchase_quotation_view", |
194 | 197 |
}, |
195 | 198 |
features => { |
196 |
price_tax => 1, |
|
197 |
stock => 0, |
|
199 |
price_tax => 1, |
|
200 |
stock => 0, |
|
201 |
subversions => 1, |
|
198 | 202 |
}, |
199 | 203 |
}, |
200 | 204 |
); |
SL/DB/Reclamation/TypeData.pm | ||
---|---|---|
45 | 45 |
edit => "sales_reclamation_edit", |
46 | 46 |
}, |
47 | 47 |
features => { |
48 |
price_tax => 1, |
|
49 |
stock => 0, |
|
48 |
price_tax => 1, |
|
49 |
stock => 0, |
|
50 |
subversions => 0, |
|
50 | 51 |
}, |
51 | 52 |
}, |
52 | 53 |
PURCHASE_RECLAMATION_TYPE() => { |
... | ... | |
77 | 78 |
edit => "purchase_reclamation_edit", |
78 | 79 |
}, |
79 | 80 |
features => { |
80 |
price_tax => 1, |
|
81 |
stock => 0, |
|
81 |
price_tax => 1, |
|
82 |
stock => 0, |
|
83 |
subversions => 0, |
|
82 | 84 |
}, |
83 | 85 |
}, |
84 | 86 |
); |
SL/Model/Record.pm | ||
---|---|---|
129 | 129 |
# return - nichts |
130 | 130 |
# fehlerfall: exception |
131 | 131 |
|
132 |
# Todo: check type data if this is allowed/supported for this record |
|
133 |
|
|
134 |
$record->increment_version_number; |
|
132 |
$record->increment_version_number if $record->type_data->features('subversions'); |
|
135 | 133 |
|
136 | 134 |
return; |
137 | 135 |
} |
Auch abrufbar als: Unified diff
Model::Record: TypeData-Feature Unterversionen