summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-09-09 20:53:43 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-09-09 20:53:43 +0000
commite7b8f44e16adb3fa274c81889f17ba098f350d81 (patch)
tree982d3fd6fb0e8414daddb2b234c57dace7f89dd1
parenta3b03888e57c28de89173c5482352f8989edbd6b (diff)
Added credit to Joshua Drake in the CONTRIBUTORS file.
CHanged the check printing behavior to warn when too many invoices are printed on the check stub. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@50 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r--CONTRIBUTORS12
-rwxr-xr-xbin/mozilla/cp.pl8
-rw-r--r--ledger-smb.conf6
-rwxr-xr-xtemplates/Brazilian_Portuguese-check.tex2
-rwxr-xr-xtemplates/Danish-check.tex2
-rwxr-xr-xtemplates/Default-check.tex2
-rwxr-xr-xtemplates/Dutch-check.tex2
-rwxr-xr-xtemplates/Estonian-check.tex2
-rwxr-xr-xtemplates/Estonian_UTF8-check.tex2
-rwxr-xr-xtemplates/French-check.tex2
-rwxr-xr-xtemplates/German-check.tex2
-rwxr-xr-xtemplates/Hungarian-check.tex2
-rwxr-xr-xtemplates/Italian-check.tex2
-rwxr-xr-xtemplates/Norwegian-check.tex2
-rwxr-xr-xtemplates/Russian-check.tex2
-rwxr-xr-xtemplates/Service-check.tex2
-rwxr-xr-xtemplates/Spanish_A4-check.tex2
-rwxr-xr-xtemplates/Spanish_Letter-check.tex2
-rwxr-xr-xtemplates/Swedish-check.tex2
-rwxr-xr-xtemplates/Traditional_Chinese_Big5-check.tex2
-rwxr-xr-xtemplates/Traditional_Chinese_UTF8-check.tex2
21 files changed, 40 insertions, 22 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index cddd5eab..bf94c27a 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1,7 +1,19 @@
Copyright of individual lines of code may be owned in part by the contributors.
Dieter Simader <dsimader @ sql-ledger.com>
+Original author of SQL-Ledger, on which LedgerSMB is based.
+
Chris Travers <chris @ metatrontech.com>
+Wrote the inventory activity report, helped with the session handling fix,
+and other tasks.
+
Christopher Murtagh <christopher.murtagh @ gmail.com>
+Wrote the session handling fix, has begun reformatting the files to fit the
+current coding standards, and other contributions.
+
+Joshua Drake <jd @ commandprompt . com>
+Contributed database fixes.
+
Christopher Browne <cbrowne @ acm.org>
Tony Fraser <tony @ sybaspace.com>
+Both of the above are mentioned as contributors to a single file in SQL-Ledger.
diff --git a/bin/mozilla/cp.pl b/bin/mozilla/cp.pl
index 8848c9cb..2e4aa8e7 100755
--- a/bin/mozilla/cp.pl
+++ b/bin/mozilla/cp.pl
@@ -1249,11 +1249,17 @@ sub print_payment {
for (qw(company address)) { $form->{$_} = $myconfig{$_} }
$form->{address} =~ s/\\n/\n/g;
- @a = qw(name company address text_amount text_decimal address1 address2 city state zipcode country memo);
+ @a = qw(rowcount name company address text_amount text_decimal address1 address2 city state zipcode country memo);
%temp = ();
for (@a) { $temp{$_} = $form->{$_} }
+ if (scalar @{$form->{invnumber}} > $check_max_invoices) {
+ $#{$form->{invnumber}} = $check_max_invoices - 1;
+ $form->{invnumbers_maxed} = 1;
+ $form->{message} = $locale->text("Please see attatched report for list of invoices paid.");
+ }
+
$form->format_string(@a);
&print_form;
diff --git a/ledger-smb.conf b/ledger-smb.conf
index cd16e308..dd415a71 100644
--- a/ledger-smb.conf
+++ b/ledger-smb.conf
@@ -18,9 +18,9 @@ $sendmail = "| /usr/sbin/sendmail -t";
# set language for login and admin
$language = "";
-# Oracle
-#$sid = "T80509";
-#$ENV{"ORACLE_HOME"} = "/usr/local/oracle";
+# Maximum number of invoices that can be printed on a check
+$check_max_invoices = 5;
+
# if you have latex installed set to 1
$latex = 1;
diff --git a/templates/Brazilian_Portuguese-check.tex b/templates/Brazilian_Portuguese-check.tex
index ff3af006..477398af 100755
--- a/templates/Brazilian_Portuguese-check.tex
+++ b/templates/Brazilian_Portuguese-check.tex
@@ -60,6 +60,6 @@
\end{tabularx}
\vfill
-
+<%message%>
\end{document}
diff --git a/templates/Danish-check.tex b/templates/Danish-check.tex
index 6742b5b5..a3950c17 100755
--- a/templates/Danish-check.tex
+++ b/templates/Danish-check.tex
@@ -70,6 +70,6 @@
\end{tabularx}
\vfill
-
+<%message%>
\end{document}
diff --git a/templates/Default-check.tex b/templates/Default-check.tex
index 908f0e79..e1d5f566 100755
--- a/templates/Default-check.tex
+++ b/templates/Default-check.tex
@@ -72,6 +72,6 @@
<%memo%>
\vfill
-
+<%message%>
\end{document}
diff --git a/templates/Dutch-check.tex b/templates/Dutch-check.tex
index 6742b5b5..a3950c17 100755
--- a/templates/Dutch-check.tex
+++ b/templates/Dutch-check.tex
@@ -70,6 +70,6 @@
\end{tabularx}
\vfill
-
+<%message%>
\end{document}
diff --git a/templates/Estonian-check.tex b/templates/Estonian-check.tex
index 908f0e79..e1d5f566 100755
--- a/templates/Estonian-check.tex
+++ b/templates/Estonian-check.tex
@@ -72,6 +72,6 @@
<%memo%>
\vfill
-
+<%message%>
\end{document}
diff --git a/templates/Estonian_UTF8-check.tex b/templates/Estonian_UTF8-check.tex
index 908f0e79..e1d5f566 100755
--- a/templates/Estonian_UTF8-check.tex
+++ b/templates/Estonian_UTF8-check.tex
@@ -72,6 +72,6 @@
<%memo%>
\vfill
-
+<%message%>
\end{document}
diff --git a/templates/French-check.tex b/templates/French-check.tex
index 6742b5b5..a3950c17 100755
--- a/templates/French-check.tex
+++ b/templates/French-check.tex
@@ -70,6 +70,6 @@
\end{tabularx}
\vfill
-
+<%message%>
\end{document}
diff --git a/templates/German-check.tex b/templates/German-check.tex
index 881ee374..adad24d9 100755
--- a/templates/German-check.tex
+++ b/templates/German-check.tex
@@ -70,6 +70,6 @@
\end{tabularx}
\vfill
-
+<%message%>
\end{document}
diff --git a/templates/Hungarian-check.tex b/templates/Hungarian-check.tex
index 08c95c3d..c543be12 100755
--- a/templates/Hungarian-check.tex
+++ b/templates/Hungarian-check.tex
@@ -74,7 +74,7 @@
\end{tabularx}
\vfill
-
+<%message%>
\end{document}
diff --git a/templates/Italian-check.tex b/templates/Italian-check.tex
index a5c06aa6..0eafc60e 100755
--- a/templates/Italian-check.tex
+++ b/templates/Italian-check.tex
@@ -74,7 +74,7 @@
\end{tabularx}
\vfill
-
+<%message%>
\end{document}
diff --git a/templates/Norwegian-check.tex b/templates/Norwegian-check.tex
index 75699ba3..2af7f53b 100755
--- a/templates/Norwegian-check.tex
+++ b/templates/Norwegian-check.tex
@@ -74,7 +74,7 @@
\end{tabularx}
\vfill
-
+<%message%>
\end{document}
diff --git a/templates/Russian-check.tex b/templates/Russian-check.tex
index 7f25a218..c92dd218 100755
--- a/templates/Russian-check.tex
+++ b/templates/Russian-check.tex
@@ -74,5 +74,5 @@
<%memo%>
\vfill
-
+<%message%>
\end{document}
diff --git a/templates/Service-check.tex b/templates/Service-check.tex
index 6742b5b5..a3950c17 100755
--- a/templates/Service-check.tex
+++ b/templates/Service-check.tex
@@ -70,6 +70,6 @@
\end{tabularx}
\vfill
-
+<%message%>
\end{document}
diff --git a/templates/Spanish_A4-check.tex b/templates/Spanish_A4-check.tex
index 4e7cfc62..6311b71b 100755
--- a/templates/Spanish_A4-check.tex
+++ b/templates/Spanish_A4-check.tex
@@ -70,6 +70,6 @@
\end{tabularx}
\vfill
-
+<%message%>
\end{document}
diff --git a/templates/Spanish_Letter-check.tex b/templates/Spanish_Letter-check.tex
index 6742b5b5..a3950c17 100755
--- a/templates/Spanish_Letter-check.tex
+++ b/templates/Spanish_Letter-check.tex
@@ -70,6 +70,6 @@
\end{tabularx}
\vfill
-
+<%message%>
\end{document}
diff --git a/templates/Swedish-check.tex b/templates/Swedish-check.tex
index e36f6fbf..532fd026 100755
--- a/templates/Swedish-check.tex
+++ b/templates/Swedish-check.tex
@@ -74,7 +74,7 @@
\end{tabularx}
\vfill
-
+<%message%>
\end{document}
diff --git a/templates/Traditional_Chinese_Big5-check.tex b/templates/Traditional_Chinese_Big5-check.tex
index 908f0e79..e1d5f566 100755
--- a/templates/Traditional_Chinese_Big5-check.tex
+++ b/templates/Traditional_Chinese_Big5-check.tex
@@ -72,6 +72,6 @@
<%memo%>
\vfill
-
+<%message%>
\end{document}
diff --git a/templates/Traditional_Chinese_UTF8-check.tex b/templates/Traditional_Chinese_UTF8-check.tex
index 908f0e79..e1d5f566 100755
--- a/templates/Traditional_Chinese_UTF8-check.tex
+++ b/templates/Traditional_Chinese_UTF8-check.tex
@@ -72,6 +72,6 @@
<%memo%>
\vfill
-
+<%message%>
\end{document}