X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Forder%2Ftabs%2Fbasic_data.html;h=4314902042434e09014e1962cf07eb72367fb2bb;hb=2e19657a12d946c4e9cdd1466af1bbab992284ee;hp=c4bcda06c61f8ce7d6ffda0aa9f735e5778d8d86;hpb=594ec6f3bd1dd0ed3656ea5b77bc5c2e030dabbe;p=kivitendo-erp.git
diff --git a/templates/webpages/order/tabs/basic_data.html b/templates/webpages/order/tabs/basic_data.html
index c4bcda06c..431490204 100644
--- a/templates/webpages/order/tabs/basic_data.html
+++ b/templates/webpages/order/tabs/basic_data.html
@@ -17,6 +17,7 @@
[% 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')) %]
|
@@ -51,6 +52,21 @@
+ [%- IF SELF.cv == "customer" %]
+
+ [% 'Custom Billing Address' | $T8 %] |
+
+ [% L.select_tag('order.billing_address_id',
+ SELF.order.customer.additional_billing_addresses,
+ default=SELF.order.billing_address_id,
+ title_key='displayable_id',
+ value_key='id',
+ with_empty=1,
+ style='width: 300px') %]
+ |
+
+ [%- END %]
+
[%- PROCESS order/tabs/_business_info_row.html SELF=SELF %]
@@ -149,7 +165,16 @@
[%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
[% 'Order Number' | $T8 %] |
- [% L.input_tag('order.ordnumber', SELF.order.ordnumber, size = 11, onchange='kivi.Order.set_number_in_title(this)') %] |
+
+ [%- 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 %]
+ |
[%- END -%]
@@ -160,11 +185,18 @@
[%- END -%]
[% quo_nr_txt | $T8 %] |
- [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
- [% L.input_tag('order.quonumber', SELF.order.quonumber, size = 11) %] |
- [%- ELSE -%]
- [% L.input_tag('order.quonumber', SELF.order.quonumber, size = 11, onchange='kivi.Order.set_number_in_title(this)') %] |
- [%- END -%]
+
+ [%- 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 %]
+ |
[%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]