Revision 71d40510
Von Martin Helmling martin.helmling@octosoft.eu vor fast 8 Jahren hinzugefügt
SL/DB/MetaSetup/Default.pm | ||
---|---|---|
34 | 34 |
co_ustid => { type => 'text' }, |
35 | 35 |
coa => { type => 'text' }, |
36 | 36 |
company => { type => 'text' }, |
37 |
create_part_if_not_found => { type => 'boolean', default => 'false' }, |
|
37 | 38 |
currency_id => { type => 'integer', not_null => 1 }, |
38 | 39 |
customer_hourly_rate => { type => 'numeric', precision => 8, scale => 2 }, |
39 | 40 |
customer_projects_only_in_sales => { type => 'boolean', default => 'false', not_null => 1 }, |
sql/Pg-upgrade2/create_part_if_not_found.sql | ||
---|---|---|
1 |
-- @tag: create_part_if_not_found |
|
2 |
-- @description: Falls Artikel nicht gefunden wird gleich in die Erfassung gehen |
|
3 |
-- @depends: release_3_2_0 |
|
4 |
ALTER TABLE defaults ADD COLUMN create_part_if_not_found BOOLEAN DEFAULT FALSE; |
|
5 |
UPDATE defaults SET create_part_if_not_found = TRUE; |
templates/webpages/client_config/_features.html | ||
---|---|---|
84 | 84 |
<td> [% L.input_tag('defaults.parts_image_css', SELF.defaults.parts_image_css, style=style) %]</td> |
85 | 85 |
<td>[% LxERP.t8('Style the picture with the following CSS code') %]</td> |
86 | 86 |
</tr> |
87 |
<tr> |
|
88 |
<td align="right">[% LxERP.t8('If item not found, allow creation of new item') %]</td> |
|
89 |
<td>[% L.yes_no_tag('defaults.create_part_if_not_found', SELF.defaults.create_part_if_not_found) %]</td> |
|
90 |
<td>[% LxERP.t8('If searching a part from a document and no part is found then offer to create a new part.') %]</td> |
|
91 |
</tr> |
|
87 | 92 |
<tr> |
88 | 93 |
<td align="right">[% LxERP.t8('Normalize part description and part notes') %]</td> |
89 | 94 |
<td> [% L.yes_no_tag('defaults.normalize_part_descriptions', SELF.defaults.normalize_part_descriptions) %]</td> |
templates/webpages/generic/new_item.html | ||
---|---|---|
7 | 7 |
<h4 class="error">[% 'searched part not for purchase' | $T8 %]</h4> |
8 | 8 |
[%- ELSE %] |
9 | 9 |
<h4 class="error">[% 'Item does not exists in the database' | $T8 %] |
10 |
[% IF INSTANCE_CONF.get_create_part_if_not_found %] |
|
11 |
<p>[% 'What type of item is this?' | $T8 %]</h4> |
|
12 |
|
|
13 |
<form method="post" action="controller.pl"> |
|
14 |
|
|
15 |
<p> |
|
16 |
|
|
17 |
<input class="radio" type="radio" name="part_type" value="part" checked> [% 'Part' | $T8 %]<br> |
|
18 |
<input class="radio" type="radio" name="part_type" value="assembly"> [% 'Assembly' | $T8 %]<br> |
|
19 |
<input class="radio" type="radio" name="part_type" value="service"> [% 'Service' | $T8 %]<br> |
|
20 |
<input class="radio" type="radio" name="part_type" value="assortment"> [% 'Assortment' | $T8 %] |
|
21 |
<p> |
|
22 |
|
|
23 |
[%- FOREACH var = HIDDENS %] |
|
24 |
<input type="hidden" name="[% HTML.escape(var.name) %]" value="[% HTML.escape(var.value) %]"> |
|
25 |
[%- END %] |
|
26 |
</p> |
|
27 |
|
|
28 |
<input type="hidden" name="action" value="Part/dispatch"> |
|
29 |
<input class="submit" type="submit" name="action_add" value="[% 'Continue' | $T8 %]"> |
|
30 |
[%- ELSE %] |
|
10 | 31 |
</h4> |
11 | 32 |
[%- END %] |
33 |
[%- END %] |
|
12 | 34 |
[%- END %] |
13 | 35 |
<input id='back_button' type='button' class="submit" value="[% 'Back' | $T8 %]"> |
14 | 36 |
</p> |
Auch abrufbar als: Unified diff
Falls ein Artikel nicht gefunden wird, kann gleich in die Erfassung gegangen werden
Dies ist in der Manantenkonfigurierung einstellbar.