[%- USE T8 %] [%- USE HTML %] [%- USE LxERP %] [%- USE L %] [%- USE P %] [%- INCLUDE 'generic/set_longdescription.html' %]
[% IF FORM.email_attachment_id || FORM.workflow_email_attachment_id%]
[% BLOCK panel_1; P.email_journal.attachment_preview( FORM.email_attachment_id || FORM.workflow_email_attachment_id, style="height:600px" ); END; INCLUDE 'common/toggle_panel.html' block_name='panel_1' button_closed = LxERP.t8('Show Attachment') button_open = LxERP.t8('Hide Attachment') ; %]
[% END %]
[% INCLUDE 'generic/toggle_wrapper.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 %] [% SET show_exchangerate = (SELF.reclamation.currency_id != INSTANCE_CONF.get_currency_id) %] [%- IF SELF.all_languages.size %] [%- END %] [%- IF SELF.all_departments.size %] [%- END %]
[% 'Customer & Order Information' | $T8 %]
[%- SELF.cv == "customer" ? LxERP.t8('Customer') : LxERP.t8('Vendor') -%] [% P.customer_vendor.picker("reclamation.${SELF.cv}" _ '_id', SELF.reclamation.$cv_id, type=SELF.cv, show_details="1") %]
[% '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, class='wi-lightwide') %]
[% 'Shipping Address' | $T8 %] [% L.button_tag("kivi.Reclamation.edit_custom_shipto()", LxERP.t8("Custom shipto"), class='button neutral below wi-lightwide') %]
[% 'Tax rate' | $T8 %] [% L.select_tag('reclamation.taxzone_id', SELF.all_taxzones, default=SELF.reclamation.taxzone_id, title_key='description', class='recalc wi-lightwide') %]
[% '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, 'data-validate'=show_exchangerate ? 'required' : '', 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='wi-lightwide') %]
[% 'Department' | $T8 %] [% L.select_tag('reclamation.department_id', SELF.all_departments, default=SELF.reclamation.department_id, title_key='description', with_empty=1, class='wi-lightwide') %]
[% 'Shipping Point' | $T8 %] [% L.input_tag('reclamation.shippingpoint', SELF.reclamation.shippingpoint, class='wi-lightwide') %]
[% 'Ship via' | $T8 %] [% L.input_tag('reclamation.shipvia', SELF.reclamation.shipvia, class='wi-lightwide') %]
[% 'Transaction description' | $T8 %] [% L.input_tag('reclamation.transaction_description', SELF.reclamation.transaction_description, 'data-validate'=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '', class='wi-lightwide') %]
[% 'Project Number' | $T8 %] [% P.project.picker('reclamation.globalproject_id', SELF.reclamation.globalproject_id, class='wi-lightwide') %]
[% 'Terms' | $T8 %]
[% 'Payment Terms' | $T8 %] [% L.select_tag('reclamation.payment_id', SELF.all_payment_terms, default = SELF.reclamation.payment_id, with_empty = 1, title_key = 'description', class = 'wi-mediumsmall-lightwide') %]
[% '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', class = 'wi-mediumsmall-lightwide') %]
[% L.yes_no_tag('reclamation.taxincluded', SELF.reclamation.taxincluded, class='recalc') %]
[% 'Notes' | $T8 %]
[% L.textarea_tag('reclamation.notes', SELF.reclamation.notes, style="width: 350px; height: 150px", class="texteditor wi-wide") %]
[% 'Internal Notes' | $T8 %] [% L.textarea_tag('reclamation.intnotes', SELF.reclamation.intnotes, class="wi-wide") %]
[%- IF SELF.reclamation.id %] [%- END %] [% IF SELF.cv == 'customer' %] [% END %]
[% 'Handling, Numbers & Dates' | $T8 %]
[% L.yes_no_tag('reclamation.delivered', SELF.reclamation.delivered, class="wi-normal") %]
[% L.yes_no_tag('reclamation.closed', SELF.reclamation.closed, class="wi-normal") %]
[% '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', class='wi-normal', ) %]
[% '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', class='wi-normal', ) %]
[% 'Reclamation Number' | $T8 %] [% L.input_tag('reclamation.record_number', SELF.reclamation.record_number, onchange='kivi.Reclamation.set_number_in_title(this)', class='wi-normal') %]
[% 'Customer Record Number' | $T8 %] [% L.input_tag('reclamation.cv_record_number', SELF.reclamation.cv_record_number, class='wi-normal') %]
[% 'Reclamation Date' | $T8 %] [% L.date_tag('reclamation.transdate_as_date', SELF.reclamation.transdate_as_date, class='wi-date') %]
[% 'Tax point' | $T8 %] [% L.date_tag('reclamation.tax_point_as_date', SELF.reclamation.tax_point_as_date, class='recalc wi-date') %]
[% 'Deadline' | $T8 %] [% L.date_tag('reclamation.reqdate_as_date', SELF.reclamation.reqdate_as_date, class='recalc wi-date') %]
[% 'Insert Date' | $T8 %] [% SELF.reclamation.itime_as_date %]
[%- PROCESS reclamation/tabs/basic_data/_item_input.html SELF=SELF %] [%- 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 SELF.show_update_button -%] [%- END -%] [%- FOREACH tax = SELF.reclamation.taxes %] [%- PROCESS reclamation/tabs/basic_data/_tax_row.html TAX=tax TAXINCLUDED=SELF.reclamation.taxincluded %] [%- END %] [%- IF SELF.show_update_button -%] [%- END -%]
[% 'Articles' | $T8 %]
[%- 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', class='row-icon', "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', class='row-icon') %] [%- 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', class='row-icon') %] [%- '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", "", size='40', 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", "", size='40', 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'), ) %]
[% IF !SELF.reclamation.taxincluded %][%- 'Subtotal' | $T8 %][% END %] [% IF !SELF.reclamation.taxincluded %][%- L.div_tag(SELF.reclamation.netamount_as_number, id='netamount_id') %][% END %]
[%- 'Total' | $T8 %] [%- L.div_tag(SELF.reclamation.amount_as_number, id='amount_id') %]
[% L.sortable_element('#row_table_id') %]