[%- 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 reclamation/tabs/basic_data/_business_info_row.html SELF=SELF %] [% SET currency_id = SELF.reclamation.currency_id || INSTANCE_CONF.get_currency_id # use default currency for new reclamation %] [%- 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("reclamation.${SELF.cv}" _ '_id', SELF.reclamation.$cv_id, type=SELF.cv, style='width: 300px') %] [% P.button_tag("kivi.Reclamation.show_cv_details_dialog()", LxERP.t8("Details (one letter abbreviation)")) %] [% P.link_tag("javascript:void(0);", LxERP.t8('Edit'), title=LxERP.t8('Open in new window'), onclick="kivi.Reclamation.open_customervendor_tab('#reclamation_${SELF.cv}_id', '${SELF.cv}')") %]
[% 'Contact Person' | $T8 %] [% L.select_tag('reclamation.contact_id', SELF.reclamation.${SELF.cv}.contacts, default=SELF.reclamation.contact_id, title_key='full_name_dep', value_key='cp_id', with_empty=1, style='width: 300px') %]
[% 'Shipping Address' | $T8 %] [% L.button_tag("kivi.Reclamation.edit_custom_shipto()", LxERP.t8("Custom shipto")) %]
[% 'Tax rate' | $T8 %] [% L.select_tag('reclamation.taxzone_id', SELF.all_taxzones, default=SELF.reclamation.taxzone_id, title_key='description', style='width: 300px', class='recalc') %]
[% 'Currency' | $T8 %] [% L.select_tag('reclamation.currency_id', SELF.all_currencies, default=currency_id, value_key='id', title_key='name') %]
[% 'Exchangerate' | $T8 %] 1 [% SELF.reclamation.currency.name %] = [% L.input_tag('reclamation.exchangerate_as_null_number', SELF.reclamation.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.reclamation.exchangerate_as_null_number) %]
[% 'Language' | $T8 %] [% L.select_tag('reclamation.language_id', SELF.all_languages, default=SELF.reclamation.language_id, title_key='description', with_empty=1, style='width:300px') %]
[% 'Department' | $T8 %] [% L.select_tag('reclamation.department_id', SELF.all_departments, default=SELF.reclamation.department_id, title_key='description', with_empty=1, style='width:300px') %]
[% 'Shipping Point' | $T8 %] [% L.input_tag('reclamation.shippingpoint', SELF.reclamation.shippingpoint, style='width: 300px') %]
[% 'Ship via' | $T8 %] [% L.input_tag('reclamation.shipvia', SELF.reclamation.shipvia, style='width: 300px') %]
[% 'Transaction description' | $T8 %] [% L.input_tag('reclamation.transaction_description', SELF.reclamation.transaction_description, 'data-validate'=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '', style='width: 300px') %]
[% 'Project Number' | $T8 %] [% P.project.picker('reclamation.globalproject_id', SELF.reclamation.globalproject_id, style='width: 300px') %]
[% IF SELF.cv == 'customer' %] [% END %]
[%- IF SELF.reclamation.id %] [% L.yes_no_tag('reclamation.delivered', SELF.reclamation.delivered) %] [% L.yes_no_tag('reclamation.closed', SELF.reclamation.closed) %] [%- END %]
[% 'Employee' | $T8 %] [% L.select_tag('reclamation.employee_id', SELF.all_employees, default=(SELF.reclamation.employee_id ? SELF.reclamation.employee_id : SELF.current_employee_id), title_key='safe_name') %]
[% 'Salesman' | $T8 %] [% L.select_tag('reclamation.salesman_id', SELF.all_salesmen, default=(SELF.reclamation.salesman_id ? SELF.reclamation.salesman_id : SELF.current_employee_id), title_key='safe_name') %]
[% 'Reclamation Number' | $T8 %] [% L.input_tag('reclamation.record_number', SELF.reclamation.record_number, size = 11, onchange='kivi.Reclamation.set_number_in_title(this)') %]
[% 'Customer Record Number' | $T8 %] [% L.input_tag('reclamation.cv_record_number', SELF.reclamation.cv_record_number, size = 11) %]
[% 'Reclamation Date' | $T8 %] [% L.date_tag('reclamation.transdate_as_date', SELF.reclamation.transdate_as_date) %]
[% 'Tax point' | $T8 %] [% L.date_tag('reclamation.tax_point_as_date', SELF.reclamation.tax_point_as_date, class="recalc") %]
[% 'Deadline' | $T8 %] [% L.date_tag('reclamation.reqdate_as_date', SELF.reclamation.reqdate_as_date, class="recalc") %]
[% 'Insert Date' | $T8 %] [% SELF.reclamation.itime_as_date %]
[%- PROCESS reclamation/tabs/basic_data/_item_input.html SELF=SELF %] [% L.button_tag('kivi.Reclamation.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.show_update_button -%] [%- END -%] [%- FOREACH item = SELF.reclamation.items_sorted %] [%- PROCESS reclamation/tabs/basic_data/_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 %] [% L.checkbox_tag("select_all_multi_id", checked=0, alt=LxERP.t8('Select/Deselect all'), title=LxERP.t8('Select/Deselect all'), id='select_all') %] [%- '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.Reclamation.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 %] [%- 'Reason' | $T8 %] [%- 'Reason Description Extern' | $T8 %] [%- 'Reason Description Intern' | $T8 %] [%- 'Qty' | $T8 %] [%- 'Price Factor' | $T8 %] [%- 'Unit' | $T8 %] [%- 'Price Source' | $T8 %] [%- 'Price' | $T8 %] [%- 'Discount' | $T8 %] [%- 'Extended' | $T8 %]
[%- L.button_tag('kivi.Reclamation.toggle_selected_rows();', "🔄", title=LxERP.t8("Toggle selection"), alt=LxERP.t8("Toggle selection"), ) %] [%- L.button_tag('kivi.Reclamation.delete_selected_rows();', LxERP.t8("X"), title=LxERP.t8("Delete selected rows"), alt=LxERP.t8("Delete selected rows"), ) %] [% L.select_tag("reason_id_for_selected", SELF.reclamation.valid_reclamation_reasons, title_key = 'name', value_key = 'id', with_empty=1, class="wi-small", ) %] [%- L.button_tag( 'kivi.Reclamation.set_selected_to_value("reason_id")', "↓", alt=LxERP.t8('Apply to selected rows'), title=LxERP.t8('Apply to selected rows'), ) %] [% L.areainput_tag("reason_description_ext_for_selected", "", class="wi-mediumsmall", ) %] [%- L.button_tag( 'kivi.Reclamation.set_selected_to_value("reason_description_ext")', "↓", alt=LxERP.t8('Apply to selected rows'), title=LxERP.t8('Apply to selected rows'), ) %] [% L.areainput_tag("reason_description_int_for_selected", "", class="wi-mediumsmall", ) %] [%- L.button_tag( 'kivi.Reclamation.set_selected_to_value("reason_description_int")', "↓", alt=LxERP.t8('Apply to selected rows'), title=LxERP.t8('Apply to selected rows'), ) %]
[% 'Notes' | $T8 %] [% 'Internal Notes' | $T8 %]
[% L.textarea_tag('reclamation.notes', SELF.reclamation.notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %] [% L.textarea_tag('reclamation.intnotes', SELF.reclamation.intnotes, wrap="soft", style="width: 350px; height: 150px") %]
[% 'Payment Terms' | $T8 %] [% L.select_tag('reclamation.payment_id', SELF.all_payment_terms, default = SELF.reclamation.payment_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %]
[% 'Delivery Terms' | $T8 %] [% L.select_tag('reclamation.delivery_term_id', SELF.all_delivery_terms, default = SELF.reclamation.delivery_term_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %]
[%- FOREACH tax = SELF.reclamation.taxes %] [%- PROCESS reclamation/tabs/basic_data/_tax_row.html TAX=tax TAXINCLUDED=SELF.reclamation.taxincluded %] [%- END %]
[% L.yes_no_tag('reclamation.taxincluded', SELF.reclamation.taxincluded, class='recalc') %]
[%- 'Subtotal' | $T8 %] [%- L.div_tag(SELF.reclamation.netamount_as_number, id='netamount_id') %]
[%- 'Total' | $T8 %] [%- L.div_tag(SELF.reclamation.amount_as_number, id='amount_id') %]
[% L.sortable_element('#row_table_id') %]