X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Forder%2Ftabs%2Fbasic_data.html;fp=templates%2Fwebpages%2Forder%2Ftabs%2Fbasic_data.html;h=4314902042434e09014e1962cf07eb72367fb2bb;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hp=0000000000000000000000000000000000000000;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44;p=kivitendo-erp.git diff --git a/templates/webpages/order/tabs/basic_data.html b/templates/webpages/order/tabs/basic_data.html new file mode 100644 index 000000000..431490204 --- /dev/null +++ b/templates/webpages/order/tabs/basic_data.html @@ -0,0 +1,437 @@ +[%- USE T8 %] +[%- USE HTML %] +[%- USE LxERP %] +[%- USE L %] +[%- USE P %] + +[%- INCLUDE 'generic/set_longdescription.html' %] + +
+ + + + + + +
+ + + + [% SET cv_id = SELF.cv _ '_id' %] + + + + + + + + + + + + + + [%- IF SELF.cv == "customer" %] + + + + + [%- END %] + + [%- PROCESS order/tabs/_business_info_row.html SELF=SELF %] + + + + + + + [% SET currency_id = SELF.order.currency_id || INSTANCE_CONF.get_currency_id # use default currency for new order %] + + + + + + + + + +[%- IF SELF.all_languages.size %] + + + + +[%- END %] + +[%- IF SELF.all_departments.size %] + + + + +[%- END %] + + + + + + + + + + + + + + + + + + + + + +
[%- SELF.cv == "customer" ? LxERP.t8('Customer') : LxERP.t8('Vendor') -%] + [% P.customer_vendor.picker("order.${SELF.cv}" _ '_id', SELF.order.$cv_id, type=SELF.cv, style='width: 300px') %] + [% P.button_tag("kivi.Order.show_vc_details_dialog()", LxERP.t8("Details (one letter abbreviation)")) %] + [% P.link_tag(SELF.url_for(controller='CustomerVendor', action='edit', 'id'=SELF.order.$cv_id, 'db'=SELF.cv), LxERP.t8('Edit'), target="_blank", title=LxERP.t8('Open in new window')) %] +
[% 'Contact Person' | $T8 %][% L.select_tag('order.cp_id', + SELF.order.${SELF.cv}.contacts, + default=SELF.order.cp_id, + title_key='full_name_dep', + value_key='cp_id', + with_empty=1, + style='width: 300px') %]
[% 'Shipping Address' | $T8 %] + + [% shiptos = [ { shipto_id => "", displayable_id => LxERP.t8("No/individual shipping address") } ] ; + FOREACH s = SELF.order.${SELF.cv}.shipto ; + shiptos.push(s) ; + END ; + L.select_tag('order.shipto_id', + shiptos, + default=SELF.order.shipto_id, + title_key='displayable_id', + value_key='shipto_id', + with_empty=0, + style='width: 300px') %] + + [% L.button_tag("kivi.Order.edit_custom_shipto()", LxERP.t8("Custom shipto")) %] +
[% 'Steuersatz' | $T8 %][% L.select_tag('order.taxzone_id', SELF.all_taxzones, default=SELF.order.taxzone_id, title_key='description', style='width: 300px', class='recalc') %]
[% 'Currency' | $T8 %][% L.select_tag('order.currency_id', SELF.all_currencies, default=currency_id, value_key='id', title_key='name') %]
[% 'Exchangerate' | $T8 %] 1 [% SELF.order.currency.name %] = + [% L.input_tag('order.exchangerate_as_null_number', SELF.order.exchangerate_as_null_number, size="15", class="reformat_number_as_null_number numeric") %] + [% INSTANCE_CONF.default_currency %] + [% L.hidden_tag('old_currency_id', currency_id) %] + [% L.hidden_tag('old_exchangerate', SELF.order.exchangerate_as_null_number) %] +
[% 'Language' | $T8 %] + [% L.select_tag('order.language_id', SELF.all_languages, default=SELF.order.language_id, title_key='description', with_empty=1, style='width:300px') %] +
[% 'Department' | $T8 %] + [% L.select_tag('order.department_id', SELF.all_departments, default=SELF.order.department_id, title_key='description', with_empty=1, style='width:300px') %] +
[% 'Shipping Point' | $T8 %][% L.input_tag('order.shippingpoint', SELF.order.shippingpoint, style='width: 300px') %]
[% 'Ship via' | $T8 %][% L.input_tag('order.shipvia', SELF.order.shipvia, style='width: 300px') %]
[% 'Transaction description' | $T8 %][% L.input_tag('order.transaction_description', SELF.order.transaction_description, 'data-validate'=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '', style='width: 300px') %]
[% 'Project Number' | $T8 %][% P.project.picker('order.globalproject_id', SELF.order.globalproject_id, style='width: 300px') %]
+
+ + + + + + + + + + + + [% IF SELF.cv == 'customer' %] + + + + + [% END %] + + [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%] + + + + + [%- END -%] + + [%- IF (SELF.type == "sales_order" || SELF.type == "sales_quotation") -%] + [%- SET quo_nr_txt = 'Quotation Number' -%] + [%- ELSE -%] + [%- SET quo_nr_txt = 'RFQ Number' -%] + [%- END -%] + + + + + + [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%] + + + + + [%- END -%] + + [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%] + [%- SET transdate_txt = 'Order Date' -%] + [%- ELSIF SELF.type == "sales_quotation" -%] + [%- SET transdate_txt = 'Quotation Date' -%] + [%- ELSE -%] + [%- SET transdate_txt = 'RFQ Date' -%] + [%- END -%] + + + + + + + + + + + [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%] + [%- SET reqdate_txt = 'Reqdate'; SET reqdate_class = 'recalc' -%] + [%- ELSIF SELF.type == "sales_quotation" -%] + [%- SET reqdate_txt = 'Valid until'; SET reqdate_class = '' -%] + [%- ELSE -%] + [%- SET reqdate_txt = 'Required by'; SET reqdate_class = 'recalc' -%] + [%- END -%] + + + + + + [%- IF SELF.type == "sales_quotation" -%] + + + + + + + + + [%- END %] + + + + + + +
+ [%- IF SELF.order.id %] + + [% L.yes_no_tag('order.delivered', SELF.order.delivered) %] + + [% L.yes_no_tag('order.closed', SELF.order.closed) %] + [%- END %] +
[% 'Employee' | $T8 %][% L.select_tag('order.employee_id', + SELF.all_employees, + default=(SELF.order.employee_id ? SELF.order.employee_id : SELF.current_employee_id), + title_key='safe_name') %]
[% 'Salesman' | $T8 %][% L.select_tag('order.salesman_id', + SELF.all_salesmen, + default=(SELF.order.salesman_id ? SELF.order.salesman_id : SELF.current_employee_id), + title_key='safe_name') %]
[% 'Order Number' | $T8 %] + [%- IF INSTANCE_CONF.get_sales_purchase_record_numbers_changeable %] + [% L.input_tag('order.ordnumber', SELF.order.ordnumber, size = 11, onchange='kivi.Order.set_number_in_title(this)') %] + [%- ELSIF SELF.order.id %] + [% HTML.escape(SELF.order.ordnumber) %] + [% L.hidden_tag("order.ordnumber", SELF.order.ordnumber) %] + [% ELSE %] + [% LxERP.t8("will be set upon saving") %] + [%- END %] +
[% quo_nr_txt | $T8 %] + [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%] + [% L.input_tag('order.quonumber', SELF.order.quonumber, size = 11) %] + [%- ELSIF INSTANCE_CONF.get_sales_purchase_record_numbers_changeable %] + [% L.input_tag('order.quonumber', SELF.order.quonumber, size = 11, onchange='kivi.Order.set_number_in_title(this)') %] + [%- ELSIF SELF.order.id %] + [% HTML.escape(SELF.order.quonumber) %] + [% L.hidden_tag("order.quonumber", SELF.order.quonumber) %] + [% ELSE %] + [% LxERP.t8("will be set upon saving") %] + [%- END %] +
[% 'Customer Order Number' | $T8 %][% L.input_tag('order.cusordnumber', SELF.order.cusordnumber, size = 11) %]
[% transdate_txt | $T8 %][% L.date_tag('order.transdate_as_date', SELF.order.transdate_as_date) %]
[% 'Tax point' | $T8 %][% L.date_tag('order.tax_point_as_date', SELF.order.tax_point_as_date, class="recalc") %]
[% reqdate_txt | $T8 %][% L.date_tag('order.reqdate_as_date', SELF.order.reqdate_as_date, class=reqdate_class) %]
[% 'Order probability' | $T8 %][%- L.select_tag('order.order_probability', SELF.order_probabilities, title='title', default=SELF.order.order_probability) %]%
[% 'Expected billing date' | $T8 %][%- L.date_tag('order.expected_billing_date_as_date', SELF.order.expected_billing_date_as_date) %]
[% 'Insert Date' | $T8 %][% SELF.order.itime_as_date %]
+ +
+ + [%- PROCESS order/tabs/_item_input.html SELF=SELF %] + + [% L.button_tag('kivi.Order.open_multi_items_dialog()', LxERP.t8('Add multiple items')) %] + + + + + + + + + + + + + +
+ [%- IF SELF.positions_scrollbar_height -%] + [%- SET scroll_style = 'style="overflow-y: auto; height:' _ SELF.positions_scrollbar_height _ 'vh;"' -%] + [%- ELSE -%] + [%- SET scroll_style = '' -%] + [%- END -%] +
+ + + + + + + + [%- IF SELF.show_update_button -%] + + [%- END %] + + [%- IF SELF.search_cvpartnumber -%] + + [%- END -%] + + + [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%] + + [%- END -%] + + + + + + + + + + + [%- FOREACH item = SELF.order.items_sorted %] + [%- PROCESS order/tabs/_row.html ITEM=item ID=(item.id||item.new_fake_id) -%] + [%- END %] + +
+ [%- IF MYCONFIG.show_form_details %] + [%- L.img_tag(src="image/collapse.svg", alt=LxERP.t8('Hide all details'), title=LxERP.t8('Hide all details'), id='expand_all', "data-expanded"="1") %] + [%- ELSE %] + [%- L.img_tag(src="image/expand.svg", alt=LxERP.t8('Show all details'), title=LxERP.t8('Show all details'), id='expand_all') %] + [%- END %] + [%- 'position' | $T8 %] [%- LxERP.t8('reorder item') %][%- LxERP.t8('delete item') %] + [%- L.img_tag(src="image/rotate_cw.svg", + alt=LxERP.t8('Update from master data'), + title= LxERP.t8('Update from master data'), + onclick="if (!confirm('" _ LxERP.t8("Are you sure to update all positions from master data?") _ "')) return false; kivi.Order.update_all_rows_from_master_data();", + id='update_from_master') %] + [%- 'Partnumber' | $T8 %] [%- SELF.cv == "customer" ? LxERP.t8('Customer Part Number') : LxERP.t8('Model') %][%- 'Type' | $T8 %][%- 'Description' | $T8 %][%- 'Delivered' | $T8 %] [%- 'Qty' | $T8 %][%- 'Price Factor' | $T8 %] [%- 'Unit' | $T8 %] [%- 'Price Source' | $T8 %] [%- 'Price' | $T8 %] [%- 'Discount' | $T8 %][%- 'Extended' | $T8 %]
+
+ +
+ + + + + + + [%- IF (SELF.type == "sales_order" || SELF.type == "sales_quotation") -%] + [%- SET marge_class = (SELF.order.marge_total < 0) ? 'plus0' : '' -%] + + [%- END %] + + + + +
+ + + + + + + + + +
[% 'Notes' | $T8 %][% 'Internal Notes' | $T8 %]
+ [% L.textarea_tag('order.notes', SELF.order.notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %] + + [% L.textarea_tag('order.intnotes', SELF.order.intnotes, wrap="soft", style="width: 350px; height: 150px") %] +
+
+ + + + + + + + + + [%- IF SELF.type == "sales_order" %] + + + + + [%- END %] +
[% 'Payment Terms' | $T8 %][% L.select_tag('order.payment_id', + SELF.all_payment_terms, + default = SELF.order.payment_id, + with_empty = 1, + title_key = 'description', + style = 'width: 250px') %]
[% 'Delivery Terms' | $T8 %][% L.select_tag('order.delivery_term_id', + SELF.all_delivery_terms, + default = SELF.order.delivery_term_id, + with_empty = 1, + title_key = 'description', + style = 'width: 250px') %]
[%- 'Periodic Invoices' | $T8 %][% L.button_tag('kivi.Order.show_periodic_invoices_config_dialog()', LxERP.t8('Configure')) %] + ([%- SELF.periodic_invoices_status -%]) + ? +
+
+ + + + + + + + + + +
[% 'Ertrag' | $T8 %] + [%- L.div_tag(SELF.order.marge_total_as_number, id='marge_total_id', class=marge_class) %] +
[% 'Ertrag prozentual' | $T8 %] + [%- L.div_tag(LxERP.format_amount(SELF.order.marge_percent, 2), id='marge_percent_id', class=marge_class) %] + [%- L.div_tag('%', id='marge_percent_sign_id', class=marge_class) %]
+
+ + + + + + + + + + [%- FOREACH tax = SELF.taxes %] + [%- PROCESS order/tabs/_tax_row.html TAX=tax TAXINCLUDED=SELF.order.taxincluded %] + [%- END %] + + + + +
+ + [% L.yes_no_tag('order.taxincluded', SELF.order.taxincluded, class='recalc') %] +
[%- 'Subtotal' | $T8 %] + [%- L.div_tag(SELF.order.netamount_as_number, id='netamount_id') %] +
[%- 'Total' | $T8 %] + [%- L.div_tag(SELF.order.amount_as_number, id='amount_id') %] +
+
+
+ +
+ +[% L.sortable_element('#row_table_id') %]