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

SF.net SVN: ledger-smb:[6283] addons/1.3/wxPOS/WXPOS



Revision: 6283
          http://sourceforge.net/p/ledger-smb/code/6283
Author:   einhverfr
Date:     2013-11-12 12:18:20 +0000 (Tue, 12 Nov 2013)
Log Message:
-----------
Now sales invoice closes tab and reopens on invoice post.

Modified Paths:
--------------
    addons/1.3/wxPOS/WXPOS/Invoice.pm
    addons/1.3/wxPOS/WXPOS/UI/AR/Pay.pm

Modified: addons/1.3/wxPOS/WXPOS/Invoice.pm
===================================================================
--- addons/1.3/wxPOS/WXPOS/Invoice.pm	2013-11-11 11:12:09 UTC (rev 6282)
+++ addons/1.3/wxPOS/WXPOS/Invoice.pm	2013-11-12 12:18:20 UTC (rev 6283)
@@ -241,7 +241,6 @@
      $dbh->{AutoCommit} = 0;
     my $sfx;
     $self->invnumber;
-    warn $self->amount;
     my $invseq;
 
     if ('1' eq $self->entity_class){

Modified: addons/1.3/wxPOS/WXPOS/UI/AR/Pay.pm
===================================================================
--- addons/1.3/wxPOS/WXPOS/UI/AR/Pay.pm	2013-11-11 11:12:09 UTC (rev 6282)
+++ addons/1.3/wxPOS/WXPOS/UI/AR/Pay.pm	2013-11-12 12:18:20 UTC (rev 6283)
@@ -7,6 +7,7 @@
 use Wx::Event qw(EVT_BUTTON EVT_LIST_ITEM_SELECTED EVT_LIST_ITEM_DESELECTED);
 use WXPOS::Sysconfig;
 use WXPOS::Invoice;
+use WXPOS::UI::AR;
 use Try::Tiny;
 use Carp;
 use strict;
@@ -149,6 +150,11 @@
     # Ok, we succeeded, now to close the current tab and window, 
     # and initialize the next one.  -CT
     $self->{parent_window}->_close_pane;
+    $self->{parent_window}->{sesion}->{nb}->AddPage(
+            WXPOS::UI::AR->new($self->{parent_window}->{sesion}, 
+                                        'Invoice'), 'Invoice', 1
+    );
+
     $self->EndModal(0);
 }
 

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


------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits