X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/9589ecd776677cdeb2fbaf8de211963d24cf5aa1..c0ed7d2fa:/templates/webpages/price_rule/form.html
diff --git a/templates/webpages/price_rule/form.html b/templates/webpages/price_rule/form.html
index fbe15c558..51f6066d3 100644
--- a/templates/webpages/price_rule/form.html
+++ b/templates/webpages/price_rule/form.html
@@ -15,20 +15,14 @@
[% 'Name' | $T8 %] |
[% L.input_tag("price_rule.name", SELF.price_rule.name, size=60, class='initial_focus') %] |
-[%- IF 0 %]
-
- | [% 'Type' | $T8 %] |
- [% L.select_tag("price_rule.type", [ [ 'sales', LxERP.t8('Sales')], [ 'purchase', LxERP.t8('Purchase') ] ], default=SELF.price_rule.type) %] |
-
-[%- END %]
| [% 'Priority' | $T8 %] |
- [% L.select_tag('price_rule.priority', [1,2,3,4,5], default=SELF.price_rule.priority, style='width: 300px') %] |
+ [% L.select_tag('price_rule.priority', [ [3, LxERP.t8('Normal') ], [ 4, LxERP.t8('Override') ] ], default=SELF.price_rule.priority, style='width: 300px') %] |
| [% 'Valid' | $T8 %] |
- [% L.select_tag('project.project_type_id', [ [ 0, LxERP.t8('Valid') ], [ 1 , LxERP.t8('Obsolete')]], default=SELF.price_rule.obsolete, title_key='description', style='width: 300px') %] |
+ [% L.select_tag('price_rule.obsolete', [ [ 0, LxERP.t8('Valid') ], [ 1 , LxERP.t8('Obsolete')]], default=SELF.price_rule.obsolete, title_key='description', style='width: 300px') %] |
@@ -46,7 +40,7 @@
[% 'Then' | $T8 %]:
-[% 'Set (set to)' | $T8 %] [% L.select_tag('price_rule.price_or_discount', [ [0, LxERP.t8('Price') ], [1, LxERP.t8('Discount') ]], default=SELF.price_rule.price_or_discount) %] [% 'to (set to)' | $T8 %] [% L.input_tag('price_rule.price_or_discount_as_number', SELF.price_rule.price_or_discount_as_number) %]
+
[% 'Set (set to)' | $T8 %] [% L.select_tag('price_rule.price_type', SELF.all_price_types, default=SELF.price_rule.price_type) %] [% 'to (set to)' | $T8 %] [% L.input_tag('price_rule.price_or_discount_as_number', SELF.price_rule.price_or_discount_as_number) %]
[?]
@@ -57,6 +51,6 @@
[% L.submit_tag("action_create", LxERP.t8('Save as new')) %]
[% L.submit_tag("action_destroy", LxERP.t8('Delete'), confirm=LxERP.t8('Do you really want to delete this object?')) IF !SELF.price_rule.in_use %]
[%- END %]
- [%- LxERP.t8('Abort') %]
+ [%- LxERP.t8('Abort') %]