[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[6879] trunk/bin/aa.pl



Revision: 6879
          http://sourceforge.net/p/ledger-smb/code/6879
Author:   pongracz
Date:     2014-02-19 20:08:12 +0000 (Wed, 19 Feb 2014)
Log Message:
-----------
Fix for bug #1076 : We fill the empty crdate field with transdate on post, silently, no error, no warning. We do the same as in missing duedate field. This only dangerious where invoice creation date exists and important to compare the issue date with transdate. They will need patch the code to use warning instead of silent date filling. Anyway, this also true for duedate.

Modified Paths:
--------------
    trunk/bin/aa.pl

Property Changed:
----------------
    trunk/bin/aa.pl

Modified: trunk/bin/aa.pl
===================================================================
--- trunk/bin/aa.pl	2014-02-19 20:01:20 UTC (rev 6878)
+++ trunk/bin/aa.pl	2014-02-19 20:08:12 UTC (rev 6879)
@@ -1382,6 +1382,11 @@
     $form->isblank( "transdate", $locale->text('Invoice Date missing!') );
     $form->isblank( "duedate",   $locale->text('Due Date missing!') );
     #$form->isblank( "crdate",    $locale->text('Invoice Created Date missing!') );
+    # pongraczi: we silently fill crdate with transdate if the user left empty to do not break existing workflow
+    if (!$form->{crdate}){
+          $form->{crdate} = $form->{transdate};
+    }
+
     $form->isblank( $form->{vc}, $label );
 
     $closedto  = $form->datetonum( \%myconfig, $form->{closedto} );


Property changes on: trunk/bin/aa.pl
___________________________________________________________________
Modified: svn:text-time
## -1 +1 ##
-2014-02-19T08:53:39.220282Z
+2014-02-19T20:07:46.633734Z
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits