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

SF.net SVN: ledger-smb:[6319] trunk/LedgerSMB/Report/Contact/History.pm



Revision: 6319
          http://sourceforge.net/p/ledger-smb/code/6319
Author:   tshvr
Date:     2013-12-20 13:44:10 +0000 (Fri, 20 Dec 2013)
Log Message:
-----------
is or ir , inv_id 

Modified Paths:
--------------
    trunk/LedgerSMB/Report/Contact/History.pm

Modified: trunk/LedgerSMB/Report/Contact/History.pm
===================================================================
--- trunk/LedgerSMB/Report/Contact/History.pm	2013-12-17 12:27:49 UTC (rev 6318)
+++ trunk/LedgerSMB/Report/Contact/History.pm	2013-12-20 13:44:10 UTC (rev 6319)
@@ -58,7 +58,7 @@
 
          {col_id => 'invnumber',
             type => 'href',
-       href_base => 'is.pl?action=edit&id=',
+       #href_base => 'is.pl?action=edit&id=',
             name => LedgerSMB::Report::text('Invoice Number') },
 
          {col_id => 'curr',
@@ -329,7 +329,15 @@
     $proc .= '_summary' if $self->is_summary; 
     my @rows = $self->exec_method({funcname => $proc});
     for my $r(@rows){
-        $r->{invnumber_href_suffix} = $r->{invoice_id};
+     my $script;
+     if($self->entity_class == 1){
+      $script = 'ir.pl';
+     }
+     else{
+      $script = 'is.pl';
+     }
+     #$r->{invnumber_href_suffix} = $r->{invoice_id};
+     $r->{invnumber_href_suffix} = "$script?action=edit&id=$r->{inv_id}";
     }
     $self->rows(\@rows);
 }

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


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits