[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[6585] trunk
- Subject: SF.net SVN: ledger-smb:[6585] trunk
- From: ..hidden..
- Date: Tue, 21 Jan 2014 10:57:18 +0000
Revision: 6585
http://sourceforge.net/p/ledger-smb/code/6585
Author: einhverfr
Date: 2014-01-21 10:57:17 +0000 (Tue, 21 Jan 2014)
Log Message:
-----------
Adding cancel button and redoing labels on shipto interface to make more sense
Fixing previous fix making singe item invoices unpostable, bug 964
Modified Paths:
--------------
trunk/LedgerSMB/Form.pm
trunk/bin/io.pl
trunk/bin/ir.pl
trunk/bin/is.pl
trunk/bin/oe.pl
Modified: trunk/LedgerSMB/Form.pm
===================================================================
--- trunk/LedgerSMB/Form.pm 2014-01-21 10:25:11 UTC (rev 6584)
+++ trunk/LedgerSMB/Form.pm 2014-01-21 10:57:17 UTC (rev 6585)
@@ -3218,12 +3218,8 @@
$self->{setting_sequence}, $self);
}
- if ( !$self->{dbh} && $self ) {
- $self->db_init($myconfig);
- }
+ my $dbh = LedgerSMB::App_State::DBH;
- #my $dbh = $self->{dbh};
-
#if ( !$self ) { #if !$self, previous statement would already have failed!
# $dbh = $_[3];
#}
Modified: trunk/bin/io.pl
===================================================================
--- trunk/bin/io.pl 2014-01-21 10:25:11 UTC (rev 6584)
+++ trunk/bin/io.pl 2014-01-21 10:57:17 UTC (rev 6585)
@@ -46,6 +46,7 @@
use LedgerSMB::Setting;
use LedgerSMB::Company_Config;
use LedgerSMB::File;
+use Carp::Always;
# any custom scripts for this one
if ( -f "bin/custom/io.pl" ) {
@@ -960,7 +961,7 @@
sub check_form {
-
+ my $nodisplay = shift;
my @a = ();
my $count = 0;
my $i;
@@ -1112,7 +1113,7 @@
}
}
- return if $form->{action} =~ /(save|post)/;
+ return if $form->{action} =~ /(save|post)/ or $nodisplay;
&display_form;
}
@@ -1701,7 +1702,7 @@
$form->{parts_files} = \%parts_files;
$form->{file_path} = $file->file_path;
}
- &validate_items;
+ check_form(1);
$form->{"${inv}date"} = $form->{transdate};
@@ -2274,13 +2275,16 @@
print qq|
<button class="submit" type="submit" name="action" value="continuenew">|
-. $locale->text('Continue')
+. $locale->text('Use Shipto')
. qq|
</button>
<button class="submit" type="submit" name="action" value="updatenew">|
-. $locale->text('Update')
+. $locale->text('Add To List')
. qq|
</button>
+<button class="submit" type="submit" name="action" value="update">|.
+$locale->text('Cancel')
+.qq|</button>
</form>
Modified: trunk/bin/ir.pl
===================================================================
--- trunk/bin/ir.pl 2014-01-21 10:25:11 UTC (rev 6584)
+++ trunk/bin/ir.pl 2014-01-21 10:57:17 UTC (rev 6585)
@@ -1376,10 +1376,8 @@
&update;
$form->finalize_request();
}
- check_form();
+ check_form(1);
- &validate_items;
-
$closedto = $form->datetonum( \%myconfig, $form->{closedto} );
$transdate = $form->datetonum( \%myconfig, $form->{transdate} );
Modified: trunk/bin/is.pl
===================================================================
--- trunk/bin/is.pl 2014-01-21 10:25:11 UTC (rev 6584)
+++ trunk/bin/is.pl 2014-01-21 10:57:17 UTC (rev 6585)
@@ -1409,8 +1409,7 @@
&update;
$form->finalize_request();
}
- check_form();
- &validate_items;
+ check_form(1);
$closedto = $form->datetonum( \%myconfig, $form->{closedto} );
$transdate = $form->datetonum( \%myconfig, $form->{transdate} );
Modified: trunk/bin/oe.pl
===================================================================
--- trunk/bin/oe.pl 2014-01-21 10:25:11 UTC (rev 6584)
+++ trunk/bin/oe.pl 2014-01-21 10:57:17 UTC (rev 6585)
@@ -1289,8 +1289,7 @@
$form->isblank( "exchangerate", $locale->text('Exchange rate missing!') )
if ( $form->{currency} ne $form->{defaultcurrency} );
- check_form();
- &validate_items;
+ check_form(1);
# if the name changed get new values
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