summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-05-07 20:53:47 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-05-07 20:53:47 +0000
commita817c72bd69c85273951b11814669eb64ef633b5 (patch)
tree140f4e3c6325d607d685f6455161d86e32b42047 /LedgerSMB
parent814644f32d2fb16b4de8b56b25474aeb2dd41dcb (diff)
Minor tweak to $form->add_date and tests for add_date
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1158 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/Form.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index 8ba7eaed..47b25a6e 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -1425,6 +1425,7 @@ sub add_date {
$mm = ( $diff % 12 );
$mm = '12' if $mm == 0;
+ $yy-- if $mm == 12;
$diff = 0;
}