[%- USE T8 %][%- USE LxERP %][% USE L %] [% USE HTML %]

[% title %]

[% IF saved_message %]

[% saved_message %]


[% END %]

[% LxERP.t8('All units have either no or exactly one base unit of which they are multiples.') %] [% LxERP.t8('If you select a base unit then you also have to enter a factor.') %] [% LxERP.t8('You have to define a unit as a multiple of a smaller unit.') %] [% LxERP.t8('Therefore the definition of "kg" with the base unit "g" and a factor of 1000 is valid while defining "g" with a base unit of "kg" and a factor of "0.001" is not.') %]


[% 'Add unit' | $T8 %]

[% FOREACH language = LANGUAGES %] [% END %]
[% 'Unit' | $T8 %]
[% 'Base unit' | $T8 %]
[% 'Factor' | $T8 %]
[% language.description %] [% 'Plural' | $T8 %]

[% 'Edit units' | $T8 %]

[% 'Units that have already been used (e.g. for parts and services or in invoices or warehouse transactions) cannot be changed.' | $T8 %]

[% 'Units marked for deletion will be deleted upon saving.' | $T8 %]

[% 'You can declare different translations for singular and plural for each unit (e.g. "day" and "days).' | $T8 %]

[% FOREACH language = LANGUAGES %] [% END %] [% FOREACH row = UNITS %] [% IF row.in_use %] [% ELSE %] [% END %] [% FOREACH language = row.UNITLANGUAGES %] [% END %] [% END %]
[%- LxERP.t8('reorder item') %] [% 'Delete' | $T8 %] [% 'Unit' | $T8 %] [% 'Base unit' | $T8 %] [% 'Factor' | $T8 %][% language.description %]
[%- LxERP.t8('reorder item') %] [% HTML.escape(row.name) %] [% IF row.base_unit %][% HTML.escape(row.base_unit) %][% ELSE %]---[% END %] [% IF row.base_unit %][% HTML.escape(row.factor) %][% ELSE %]---[% END %] [% 'singular first char' | $T8 %]: [% 'plural first char' | $T8 %]:
[% L.sortable_element('#unit_list tbody', url => 'controller.pl?action=Unit/reorder', with => 'unit_id') %]