[%- USE T8 %]
+[%- USE HTML %]
[%- USE LxERP %]
[%- USE L %]
-<h1>[% FORM.title %]</h1>
+<h1>[% FORM.title %] [% IF SELF.cv.id %] - [% HTML.escape(SELF.cv.displayable_name) %][% END %]</h1>
[% L.hidden_tag('_cti_enabled', !!LXCONFIG.cti.dial_command) %]
<li><a href="#contacts">[% 'Contacts' | $T8 %]</a></li>
[% IF ( SELF.cv.id && AUTH.assert('sales_all_edit', 1) ) %]
<li><a href="#deliveries">[% 'Supplies' | $T8 %]</a></li>
+[%- IF INSTANCE_CONF.get_doc_storage %]
+ <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=[% FORM.db == 'vendor' ? 'vendor' : 'customer' %]&object_id=[% SELF.cv.id %]">[% 'Attachments' | $T8 %]</a></li>
+[%- END %]
[% END %]
<li><a href="#vcnotes">[% 'Notes' | $T8 %]</a></li>
[% IF ( cv_cvars.size ) %]
<li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
[% END %]
+ [% IF SELF.cv.id %]
+ <li><a href="#price_rules">[% 'Price Rules' | $T8 %]</a></li>
+ [% END %]
</ul>
[% PROCESS "customer_vendor/tabs/billing.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 %]
</div>
<br>