summaryrefslogtreecommitdiff
path: root/bin/io.pl
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-04-26 20:28:38 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-04-26 20:28:38 +0000
commit6c5c1c36fa682244c355f6c06808ec715f0a2baa (patch)
tree632efc981a5735f7b8d424a680469b71597dd495 /bin/io.pl
parent6a118bd31a09a9b8aaabd84f8876952e1cdd6459 (diff)
Merging bugfixes from current branches/1.2
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1105 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin/io.pl')
-rw-r--r--bin/io.pl15
1 files changed, 6 insertions, 9 deletions
diff --git a/bin/io.pl b/bin/io.pl
index 48c2caa0..4c41462d 100644
--- a/bin/io.pl
+++ b/bin/io.pl
@@ -576,7 +576,7 @@ sub item_selected {
$form->{"${_}_$i"} = $form->{"new_${_}_$j"};
}
$form->{"sellprice_$i"} = $form->{"new_sellprice_$j"}
- unless $form->{"sellprice_$i"};
+ if not $form->{"sellprice_$i"};
$form->{"partsgroup_$i"} =
qq|$form->{"new_partsgroup_$j"}--$form->{"new_partsgroup_id_$j"}|;
@@ -622,8 +622,8 @@ sub item_selected {
$form->{"${_}_base"} += $amount;
}
if ( !$form->{taxincluded} ) {
- my @taxlist =
- Tax::init_taxes( $form, $form->{"taxaccounts_$i"} );
+ my @taxlist = Tax::init_taxes( $form, $form->{"taxaccounts_$i"},
+ $form->{taxaccounts} );
$amount += Tax::calculate_taxes( \@taxlist, $form, $amount, 0 );
}
@@ -696,7 +696,7 @@ sub new_item {
}
$i = $form->{rowcount};
- for (qw(partnumber description sellprice unit)) {
+ for (qw(partnumber description)) {
$form->{"${_}_$i"} = $form->quote( $form->{"${_}_$i"} );
}
@@ -1366,8 +1366,8 @@ sub print_options {
<input name=grouppartsgroup type=checkbox class=checkbox $form->{grouppartsgroup}>
| . $locale->text('Group') . qq|
</td>
-
</tr>
+
<tr>
<td colspan=6>| . $locale->text('Sort by') . qq| ->
<input name=sortby type=radio class=radio value=runningnumber $sortby{runningnumber}>
@@ -1404,7 +1404,6 @@ sub print {
sub print_form {
my ($old_form) = @_;
-
$inv = "inv";
$due = "due";
@@ -1569,7 +1568,6 @@ sub print_form {
else {
IS->invoice_details( \%myconfig, \%$form );
}
-
if ( exists $form->{longformat} ) {
$form->{"${due}date"} = $duedate;
for ( "${inv}date", "${due}date", "shippingdate", "transdate" ) {
@@ -1640,9 +1638,8 @@ sub print_form {
$form->{pre} = "<body bgcolor=#ffffff>\n<pre>" if $form->{format} eq 'txt';
if ( $form->{media} !~ /(screen|queue|email)/ ) {
- $form->{OUT} = "${LedgerSMB::SysConfig::printer}{$form->{media}}";
+ $form->{OUT} = ${LedgerSMB::Sysconfig::printer}{ $form->{media} };
$form->{printmode} = '|-';
-
$form->{OUT} =~ s/<%(fax)%>/<%$form->{vc}$1%>/;
$form->{OUT} =~ s/<%(.*?)%>/$form->{$1}/g;