X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/5981dd661e770fe22d4bf2298846097c8096327f..d59c544786c8f76756e2ec10dc3b8f803355efdc:/templates/webpages/order/tabs/basic_data.html diff --git a/templates/webpages/order/tabs/basic_data.html b/templates/webpages/order/tabs/basic_data.html index 52bb065d7..2c9598d52 100644 --- a/templates/webpages/order/tabs/basic_data.html +++ b/templates/webpages/order/tabs/basic_data.html @@ -76,6 +76,16 @@ title_key='safe_name') %] + [% IF SELF.cv == 'customer' %] + + [% 'Salesman' | $T8 %] + [% L.select_tag('order.employee_id', + SELF.all_employees, + default=(SELF.order.salesman_id ? SELF.order.salesman_id : SELF.current_employee_id), + title_key='safe_name') %] + + [% END %] + [% 'Order Number' | $T8 %] [% L.input_tag('order.ordnumber', SELF.order.ordnumber, size = 11) %] @@ -102,56 +112,37 @@ -
- - - - - - - - - - - - - - - - - - - -
[%- 'Part' | $T8 %] [%- 'Qty' | $T8 %] [%- 'Price' | $T8 %] [%- 'Discount' | $T8 %]
[% L.part_picker('add_item.parts_id', '', style='width: 300px') %][% L.input_tag('add_item.qty_as_number', '', size = 5, style='text-align:right') %][% L.input_tag('add_item.sellprice_as_number', '', size = 10, style='text-align:right') %][% L.input_tag('add_item.discount_as_percent', '', size = 5, style='text-align:right') %][% L.button_tag('add_item()', LxERP.t8('Add part')) %]
- -
+ [%- PROCESS order/tabs/_item_input.html %]
- - - - - - - - - - - - - - - - - + +
+
[%- LxERP.t8('reorder item') %][%- LxERP.t8('delete item') %][%- 'Part' | $T8 %] [%- 'Qty' | $T8 %] [%- 'Price Factor' | $T8 %] [%- 'Unit' | $T8 %] [%- 'Price' | $T8 %] [%- 'Discount' | $T8 %] [%- 'Extended' | $T8 %]
+ + + + + + + + + + + + + + + + [%- FOREACH item = SELF.order.items_sorted %] [%- PROCESS order/tabs/_row.html ITEM=item %] [%- END %] - -
[%- LxERP.t8('reorder item') %][%- LxERP.t8('delete item') %][%- 'Partnumber' | $T8 %] [%- 'Description' | $T8 %] [%- 'Qty' | $T8 %] [%- 'Price Factor' | $T8 %] [%- 'Unit' | $T8 %] [%- 'Price' | $T8 %] [%- 'Discount' | $T8 %] [%- 'Extended' | $T8 %]
+
+ + @@ -190,7 +181,7 @@ -[% L.sortable_element('#row_table_id tbody') %] +[% L.sortable_element('#row_table_id') %]