[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[4043] branches/1.3



Revision: 4043
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4043&view=rev
Author:   einhverfr
Date:     2011-11-24 09:26:16 +0000 (Thu, 24 Nov 2011)
Log Message:
-----------
Correcting parse and syntax errors for pricematrix fix.

Modified Paths:
--------------
    branches/1.3/LedgerSMB/ScriptLib/Company.pm
    branches/1.3/UI/Contact/pricelist.html

Modified: branches/1.3/LedgerSMB/ScriptLib/Company.pm
===================================================================
--- branches/1.3/LedgerSMB/ScriptLib/Company.pm	2011-11-24 09:16:06 UTC (rev 4042)
+++ branches/1.3/LedgerSMB/ScriptLib/Company.pm	2011-11-24 09:26:16 UTC (rev 4043)
@@ -994,8 +994,9 @@
     $company->get_pricematrix();
     my $template = LedgerSMB::Template->new(
                 user => $request->{_user},
-                path => 'UI/Company' ,
+                path => 'UI/Contact' ,
                 template => 'pricelist',
+                format => 'HTML',
                 locale => $company->{_locale},
     );
 

Modified: branches/1.3/UI/Contact/pricelist.html
===================================================================
--- branches/1.3/UI/Contact/pricelist.html	2011-11-24 09:16:06 UTC (rev 4042)
+++ branches/1.3/UI/Contact/pricelist.html	2011-11-24 09:26:16 UTC (rev 4043)
@@ -19,7 +19,8 @@
 <th class="listheading"><?lsmb IF accont_class == 1; 
                                    text('Last Cost');
                                ELSE;
-                                   text('Sell Price') ?></th>
+                                   text('Sell Price'); 
+                               END ?></th>
 <?lsmb IF account_class == 2 ?>
 <th class="listheading"><?lsmb text('Valid From') ?></th>
 <th class="listheading"><?lsmb text('Valid To') ?></th>
@@ -34,9 +35,9 @@
 <tr>
 <td><?lsmb pm.int_partnumber ?></td>
 <td><?lsmb pm.description ?></td>
-<td><?lsmb IF account_class == 1; pm.lastcost ELSE; pm.sellprice; END ?>
+<td><?lsmb IF account_class == 1; pm.lastcost; ELSE; pm.sellprice; END ?>
 </td>
-<?lsmb IF account_class == 2;
+<?lsmb IF account_class == 2; ?>
 <td><?lsmb pm.validfrom ?></td>
 <td><?lsmb pm.validto ?></td>
 <?lsmb ELSE ?>
@@ -58,7 +59,8 @@
 <th class="listheading"><?lsmb IF accont_class == 1; 
                                    text('Last Cost');
                                ELSE;
-                                   text('Sell Price') ?></th>
+                                   text('Sell Price');
+                               END ?></th>
 <?lsmb IF account_class == 2 ?>
 <th class="listheading"><?lsmb text('Valid From') ?></th>
 <th class="listheading"><?lsmb text('Valid To') ?></th>
@@ -71,9 +73,9 @@
 <tr>
 <td><?lsmb pm.int_partnumber ?></td>
 <td><?lsmb pm.description ?></td>
-<td><?lsmb IF account_class == 1; pm.lastcost ELSE; pm.sellprice; END ?>
+<td><?lsmb IF account_class == 1; pm.lastcost; ELSE; pm.sellprice; END ?>
 </td>
-<?lsmb IF account_class == 2;
+<?lsmb IF account_class == 2; ?>
 <td><?lsmb pm.validfrom ?></td>
 <td><?lsmb pm.validto ?></td>
 <?lsmb ELSE ?>
@@ -83,5 +85,6 @@
 <td><?lsmb pm.currency ?></td>
 </table>
 <?lsmb END ?>
+<?lsmb END ?>
 </body>
 </html>

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.