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

SF.net SVN: ledger-smb:[6596] trunk/LedgerSMB/Scripts/contact.pm



Revision: 6596
          http://sourceforge.net/p/ledger-smb/code/6596
Author:   tshvr
Date:     2014-01-22 09:45:05 +0000 (Wed, 22 Jan 2014)
Log Message:
-----------
make possible entity__delete_location

Modified Paths:
--------------
    trunk/LedgerSMB/Scripts/contact.pm

Modified: trunk/LedgerSMB/Scripts/contact.pm
===================================================================
--- trunk/LedgerSMB/Scripts/contact.pm	2014-01-22 09:43:09 UTC (rev 6595)
+++ trunk/LedgerSMB/Scripts/contact.pm	2014-01-22 09:45:05 UTC (rev 6596)
@@ -600,8 +600,17 @@
 
 sub delete_location {
     my ($request) = @_;
+
+    my $credit_id=$request->{credit_id};
+
+    if (!$request->{is_for_credit}){
+       $request->{credit_id}=undef;
+    }
+
     LedgerSMB::Entity::Location::delete($request);
+
     $request->{target_div} = 'address_div';
+    $request->{credit_id}=$credit_id;
     get($request);
 }
 

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


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits