[Vtigercrm-developers] [PATCH] Invoice: fix PDF link
Enrico Weigelt
weigelt at metux.de
Mon Jun 25 10:49:33 PDT 2007
Hi folks,
this patch fixes the really strange javascript link for pdf
invoice to an plain url.
cu
--
---------------------------------------------------------------------
Enrico Weigelt == metux IT service
phone: +49 36207 519931 www: http://www.metux.de/
fax: +49 36207 519932 email: contact at metux.de
cellphone: +49 174 7066481
---------------------------------------------------------------------
-- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops --
---------------------------------------------------------------------
-------------- next part --------------
diff -ruN htdocs-07-06-25-01/Smarty/templates/Inventory/InventoryActions.tpl htdocs/Smarty/templates/Inventory/InventoryActions.tpl
--- htdocs-07-06-25-01/Smarty/templates/Inventory/InventoryActions.tpl 2007-06-25 18:57:40.000000000 +0200
+++ htdocs/Smarty/templates/Inventory/InventoryActions.tpl 2007-06-25 19:42:26.000000000 +0200
@@ -190,7 +190,7 @@
<!-- To display the Export To PDF link for PO, SO, Quotes and Invoice - starts -->
-{if $MODULE eq 'PurchaseOrder' || $MODULE eq 'SalesOrder' || $MODULE eq 'Quotes' || $MODULE eq 'Invoice'}
+{if $MODULE eq 'PurchaseOrder' || $MODULE eq 'SalesOrder' || $MODULE eq 'Quotes'}
{if $MODULE eq 'SalesOrder'}
{assign var=export_pdf_action value="CreateSOPDF"}
@@ -200,8 +200,7 @@
<tr>
<td align="left" style="padding-left:10px;">
- <a href="javascript: document.DetailView.return_module.value='{$MODULE}'; document.DetailView.return_action.value='DetailView'; document.DetailView.module.value='{$MODULE}'; document.DetailView.action.value='{$export_pdf_action}'; document.DetailView.record.value='{$ID}'; document.DetailView.return_id.value='{$ID}'; document.DetailView.submit();" class="
-webMnu"><img src="{$IMAGE_PATH}actionGeneratePDF.gif" hspace="5" align="absmiddle" border="0"/></a>
+ <a href="javascript: document.DetailView.return_module.value='{$MODULE}'; document.DetailView.return_action.value='DetailView'; document.DetailView.module.value='{$MODULE}'; document.DetailView.action.value='{$export_pdf_action}'; document.DetailView.record.value='{$ID}'; document.DetailView.return_id.value='{$ID}'; document.DetailView.submit();" class="webMnu"><img src="{$IMAGE_PATH}actionGeneratePDF.gif" hspace="5" align="absmiddle" border="0"/></a>
<a href="javascript: document.DetailView.return_module.value='{$MODULE}'; document.DetailView.return_action.value='DetailView'; document.DetailView.module.value='{$MODULE}'; document.DetailView.action.value='{$export_pdf_action}'; document.DetailView.record.value='{$ID}'; document.DetailView.return_id.value='{$ID}'; document.DetailView.submit();" class="webMnu">{$APP.LBL_EXPORT_TO_PDF}</a>
</td>
</tr>
@@ -209,6 +208,23 @@
{/if}
<!-- To display the Export To PDF link for PO, SO, Quotes and Invoice - ends -->
+<!-- To display the Export To PDF link for Invoice - starts -->
+{if $MODULE eq 'Invoice'}
+ <tr>
+ <td align="left" style="padding-left:10px;">
+ <UL>
+ <LI>
+ <A href="./?{$SID}&module={$MODULE}&return_action=DetailView&action=CreatePDF&record={$ID}&return_id={$ID}" class="webMnu">
+ <IMG src="{$IMAGE_PATH}actionGeneratePDF.gif" hspace="5" align="absmiddle" border="0"/>
+ {$APP.LBL_EXPORT_TO_PDF}
+ </A>
+ </LI>
+ </UL>
+ </td>
+ </tr>
+{/if}
+<!-- To display the Export To PDF link for Invoice - ends -->
+
<!-- The following links are common to all the inventory modules -->
More information about the vtigercrm-developers
mailing list