X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=templates%2Fwebpages%2Fpart%2F_basic_data.html;h=ba18da2661ee53e5b96c11c23564178116616523;hb=713de5ed35a8a1faea940354254c4e781631c495;hp=0fb2b3bf64dbb919dba3441cae043e00e9d1825b;hpb=13fb6d811d39a8af7144451ada59f2f7d4eb491a;p=kivitendo-erp.git
diff --git a/templates/webpages/part/_basic_data.html b/templates/webpages/part/_basic_data.html
index 0fb2b3bf6..ba18da266 100644
--- a/templates/webpages/part/_basic_data.html
+++ b/templates/webpages/part/_basic_data.html
@@ -19,18 +19,16 @@
[% 'Part Number' | $T8 %] |
- [% SET readonly = 1 %]
- [% UNLESS SELF.part.id %][% readonly = 0 %][% END %]
- [% L.input_tag("part.partnumber", SELF.part.partnumber, size=40, readonly=readonly class="initial_focus") %] |
+ [% L.input_tag("part.partnumber", SELF.part.partnumber, size=40, class="initial_focus") %] |
+
+
+ [% 'Part Classification' | $T8 %] |
+ [% P.part.select_classification('part.classification_id', default => SELF.part.classification_id, type => SELF.parts_classification_filter ) %] |
[% 'Part Description' | $T8 %] |
- [%- IF description_area %]
-
- [%- ELSE %]
- [% L.input_tag("part.description", SELF.part.description, size=40) %] |
- [%- END %]
+ [% L.areainput_tag("part.description", SELF.part.description, size=40) %]
@@ -39,7 +37,7 @@
[%- IF SELF.all_partsgroups.size %]
- [% 'Group' | $T8 %] |
+ [% 'Partsgroup' | $T8 %] |
[%- L.select_tag('part.partsgroup_id', SELF.all_partsgroups, default=SELF.part.partsgroup_id, title_key='partsgroup', value_key='id', with_empty=1 style='width: 200px') %] |
[% END %]
@@ -77,6 +75,18 @@
+ [% IF CUSTOM_VARIABLES_FIRST_TAB %]
+ [% 'Unchecked custom variables will not appear in orders and invoices.' | $T8 %] |
+ [%- FOREACH var = CUSTOM_VARIABLES_FIRST_TAB %]
+
+ [% var.VALID_BOX %]
+ [%- IF !var.partsgroup_filtered %]
+ [% HTML.escape(var.description) %]
+ [%- END %]
+ |
+ [% var.HTML_CODE %] |
+ [%- END %]
+ [% END %]
@@ -86,9 +96,9 @@
- [% 'Updated' | $T8 %] |
+ [% 'Price updated' | $T8 %] |
- [% SELF.part.priceupdate.to_kivitendo | html %]
+ [% SELF.part.last_price_update.valid_from.to_kivitendo | html %]
|
@@ -114,7 +124,7 @@
[% 'Price Factor' | $T8 %] |
- [%- L.select_tag('part.price_factor_id', SELF.all_price_factors, default=SELF.part.price_factor_id, title_key='description', value_key='id', with_empty=1) %] |
+ [%- L.select_tag('part.price_factor_id', SELF.all_price_factors, default=SELF.part.price_factor_id, title_key='description', value_key='id', with_empty=1) %]
[%- END %]
@@ -123,7 +133,7 @@
[% 'Unit' | $T8 %] |
[%- IF !SELF.part.id or SELF.part.orphaned # same logic as unit_changable %]
- [%- L.select_tag('part.unit', SELF.all_units, default=SELF.part.unit, title_key='name', value_key='name') %] |
+ [%- L.select_tag('part.unit', SELF.all_units, default=SELF.part.unit, title_key='name', value_key='name') %]
[%- ELSE %]
[% L.hidden_tag('part.unit', SELF.part.unit) %] [% HTML.escape(SELF.part.unit) %]
[%- END %]
@@ -135,7 +145,7 @@
[% 'Weight' | $T8 %] |
[%- IF SELF.part.is_assembly %]
- [% LxERP.format_amount(SELF.part.weight) %]
+ [% LxERP.format_amount(SELF.part.weight) %]
[% ELSE %]
[% L.input_tag('part.weight_as_number', SELF.part.weight_as_number, size=10, class='reformat_number numeric') %]
[% END %]
@@ -153,7 +163,7 @@
[% IF SELF.all_warehouses.size %]
|
[% 'Default Warehouse' | $T8 %] |
- [% L.select_tag('part.warehouse_id', SELF.all_warehouses, default=SELF.part.warehouse.id, title_key='description', with_empty=>1) %]
+ | [% L.select_tag('part.warehouse_id', SELF.all_warehouses, default=SELF.part.warehouse.id, title_key='description', with_empty=1) %]
|
[% END %]
@@ -221,18 +231,13 @@
-
[% PROCESS 'part/_pricegroup_prices.html' %]
-
-
+ [% PROCESS 'part/_customerprices.html' %]
[%- UNLESS SELF.part.is_assembly %]
-
[% PROCESS 'part/_makemodel.html' %]
-
[% END %]
|
-
|