git ssb

0+

cel / freecheck



Commit 3ba59a872b934d08858db3732c17e2ed208b5b4b

Add preserve option

Charles Lehner committed on 4/13/2016, 6:43:36 PM
Parent: 9806307fbc3ea20bcc8cc222e8c5317f28d0252e

Files changed

freecheckchanged
freecheckView
@@ -124,8 +124,9 @@
124124 "showaccounts", # Show available accounts
125125 "showstyles", # Show available check styles
126126 "showblanks", # Show available check blanks
127127 "test", # Don't increment check n, and print VOID
128 + "preserve", # Don't increment check n
128129 "cgi:s", # Accept big string from CGI script (or similar)
129130 "help")
130131
131132 or Show_Usage();
@@ -602,9 +603,9 @@
602603 print "%%EOF\n";
603604
604605
605606 # Update the config file with the new check number, if it's not just a test
606-if (!$opt_test && !$opt_cgi) {
607 +if (!$opt_test && !$opt_cgi && !$opt_preserve) {
607608 $next_check_number = $Definitions{"CheckNumber"}
608609 + ($Definitions{"NumPages"} * $Definitions{"ChecksPerPage"});
609610
610611 $config_file = Replace_Val($config_file, "Account", $opt_account,
@@ -742,8 +743,9 @@
742743 print " --showaccounts show all configured accounts\n";
743744 print " --showstyles show all configured check styles\n";
744745 print " --showblanks show all configured check blanks\n";
745746 print " --help print this message\n";
747 + print " --preserve print but don't increment check number\n";
746748 print " --test print but don't increment check number\n";
747749 print " and print VOID on the check\n";
748750 print " --cgi accept string from CGI script (see docs)\n";
749751 print "\nconfig file \"~/.freecheck.cfg\"\n";

Built with git-ssb-web