X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcustomer_vendor%2Fform.html;h=8b4d1c0b35dc0b85bcaa81adffd26f58e45f7f4c;hb=b638b6a13dea5935637b3c38b1a3252053fa1a46;hp=a0d1ab9517dfed0794fe1b4d326eb18f67aade87;hpb=21243e6bba04c264a36b37d5a217ea76a22936d4;p=kivitendo-erp.git diff --git a/templates/webpages/customer_vendor/form.html b/templates/webpages/customer_vendor/form.html index a0d1ab951..8b4d1c0b3 100644 --- a/templates/webpages/customer_vendor/form.html +++ b/templates/webpages/customer_vendor/form.html @@ -1,11 +1,14 @@ [%- USE T8 %] +[%- USE HTML %] [%- USE LxERP %] [%- USE L %] +[%- USE Dumper %] +

[% FORM.title %] [% IF SELF.cv.id %] - [% HTML.escape(SELF.cv.displayable_name) %][% END %]

+[% L.hidden_tag('_cti_enabled', !!LXCONFIG.cti.dial_command) %] [% cv_cvars = SELF.cv.cvars_by_config %] -
-
[% FORM.title %]
+ [% L.hidden_tag('db', FORM.db) %] [% L.hidden_tag('callback', FORM.callback) %] @@ -13,84 +16,76 @@ [%- INCLUDE 'common/flash.html' %] + [%- SET show_deliveries = ( SELF.cv.id && ((SELF.is_customer && AUTH.assert('sales_all_edit', 1)) || (SELF.is_vendor && AUTH.assert('purchase_all_edit', 1))) ) -%]
[% PROCESS "customer_vendor/tabs/billing.html" %] + [% PROCESS "customer_vendor/tabs/bank.html" %] [% PROCESS "customer_vendor/tabs/shipto.html" %] [% PROCESS "customer_vendor/tabs/contacts.html" %] - [% IF ( SELF.cv.id && AUTH.assert('sales_all_edit', 1) ) %] + [% IF show_deliveries %] [% PROCESS "customer_vendor/tabs/deliveries.html" %] [% END %] [% PROCESS "customer_vendor/tabs/vcnotes.html" %] [% IF ( cv_cvars.size ) %] [% PROCESS "customer_vendor/tabs/custom_variables.html" %] [% END %] + [% IF SELF.cv.id %] + [% PROCESS "customer_vendor/tabs/price_rules.html" %] + [% END %] + [% IF ( SELF.cv.id && SELF.cv.pricegroup_id && AUTH.assert('part_service_assembly_details', 1) ) %] + [% PROCESS "customer_vendor/tabs/price_list.html" %] + [% END %]
- -
- - [% L.hidden_tag('action', 'CustomerVendor/dispatch') %] - - [% L.submit_tag('action_save', LxERP.t8('Save'), onclick = "return check_taxzone_and_ustid()", accesskey = "s") %] - [% L.submit_tag('action_save_and_close', LxERP.t8('Save and Close'), onclick = "return check_taxzone_and_ustid()") %] - - [%- IF ( SELF.is_vendor ) %] - [% L.submit_tag('action_save_and_ap_transaction', LxERP.t8('Save and AP Transaction'), onclick = "return check_taxzone_and_ustid()") %] - [%- ELSE %] - [% L.submit_tag('action_save_and_ar_transaction', LxERP.t8('Save and AR Transaction'), onclick = "return check_taxzone_and_ustid()") %] - [%- END %] - - [% L.submit_tag('action_save_and_invoice', LxERP.t8('Save and Invoice'), onclick = "return check_taxzone_and_ustid()") %] - [% L.submit_tag('action_save_and_order', LxERP.t8('Save and Order'), onclick = "return check_taxzone_and_ustid()") %] - - [%- IF ( SELF.is_vendor ) %] - [% L.submit_tag('action_save_and_rfq', LxERP.t8('Save and RFQ'), onclick = "return check_taxzone_and_ustid()") %] - [%- ELSE %] - [% L.submit_tag('action_save_and_quotation', LxERP.t8('Save and Quotation'), onclick = "return check_taxzone_and_ustid()") %] - [%- END %] - - [%- IF ( SELF.cv.id && SELF.is_orphaned ) %] - [% L.submit_tag('action_delete', LxERP.t8('Delete'), confirm => LxERP.t8('Do you really want to delete this object?')) %] - [%- END %] - - [%- IF ( SELF.cv.id ) %] - - [%- END %] -
-