[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [298] trunk
- Subject: SF.net SVN: ledger-smb: [298] trunk
- From: ..hidden..
- Date: Tue, 24 Oct 2006 21:12:30 -0700
Revision: 298
http://svn.sourceforge.net/ledger-smb/?rev=298&view=rev
Author: einhverfr
Date: 2006-10-24 21:12:28 -0700 (Tue, 24 Oct 2006)
Log Message:
-----------
Made POS memo fields translatable and added sort to the fields
Modified Paths:
--------------
trunk/bin/pos.pl
trunk/pos.conf.pl
Modified: trunk/bin/pos.pl
===================================================================
--- trunk/bin/pos.pl 2006-10-25 03:55:53 UTC (rev 297)
+++ trunk/bin/pos.pl 2006-10-25 04:12:28 UTC (rev 298)
@@ -163,6 +163,7 @@
sub form_header {
+
if (!$form->{'check_id'}){
&check_alert;
}
@@ -272,7 +273,7 @@
$i = $form->{rowcount} + 1;
$focus = "partnumber_$i";
- $form->header;
+ $form->header();
print qq|
<body onLoad="document.forms[0].${focus}.focus()" />
@@ -405,11 +406,12 @@
|;
}
- @column_index = qw(paid memo source AR_paid);
+ @column_index = qw(paid memo source cctrack AR_paid);
$column_data{paid} = "<th>".$locale->text('Amount')."</th>";
$column_data{source} = "<th>".$locale->text('Source')."</th>";
$column_data{memo} = "<th>".$locale->text('Memo')."</th>";
+ $column_data{cctrack} = "<th>".$locale->text('Credit Card Track')."</th>";
$column_data{AR_paid} = "<th> </th>";
print qq|
@@ -433,7 +435,7 @@
$form->{paidaccounts}++ if ($form->{"paid_$form->{paidaccounts}"});
my $memoselect = qq|<SELECT name="MEMONAME">|;
- for (keys %pos_sources){
+ for (sort keys %pos_sources){
$memoselect .= qq|<option value="$_">$pos_sources{$_}</option>|;
}
$memoselect .= qq|</SELECT>|;
Modified: trunk/pos.conf.pl
===================================================================
--- trunk/pos.conf.pl 2006-10-25 03:55:53 UTC (rev 297)
+++ trunk/pos.conf.pl 2006-10-25 04:12:28 UTC (rev 298)
@@ -34,12 +34,14 @@
$pos_config{till_cash} = 200;
# Add your sources here.
-$pos_sources{'visa'} = "Visa/MC";
-$pos_sources{'disc'} = "Discover";
-$pos_sources{'check'} = 'Check';
-$pos_sources{'cash'} = 'Cash';
-$pos_sources{'gcert'} = 'Gift Cert';
+$pos_sources{'visa'} = $locale->text("Visa/MC");
+$pos_sources{'disc'} = $locale->text("Discover");
+$pos_sources{'check'} = $locale->text('Check');
+$pos_sources{'cash'} = $locale->text('Cash');
+$pos_sources{'gcert'} = $locale->text('Gift Cert');
+$pos_source_default = 'cash';
+
# 1 for source = memo
# 2 for credit card handling
%pos_source_type = {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.