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

SF.net SVN: ledger-smb:[6814] trunk/LedgerSMB/Scripts/timecard.pm



Revision: 6814
          http://sourceforge.net/p/ledger-smb/code/6814
Author:   einhverfr
Date:     2014-02-08 03:06:42 +0000 (Sat, 08 Feb 2014)
Log Message:
-----------
Fixing bug 1046, saving timecard sets checkedin to null

Modified Paths:
--------------
    trunk/LedgerSMB/Scripts/timecard.pm

Modified: trunk/LedgerSMB/Scripts/timecard.pm
===================================================================
--- trunk/LedgerSMB/Scripts/timecard.pm	2014-02-08 00:03:49 UTC (rev 6813)
+++ trunk/LedgerSMB/Scripts/timecard.pm	2014-02-08 03:06:42 UTC (rev 6814)
@@ -143,6 +143,7 @@
     );
     $request->{jctype} ||= 1;
     $request->{total} = $request->{qty} + $request->{non_chargeable};
+    $request->{checkedin} = $request->{transdate};
     my $timecard = LedgerSMB::Timecard->new(%$request);
     $timecard->save;
     $request->{id} = $timecard->id;
@@ -163,7 +164,8 @@
     for my $row(1 .. $request->{rowcount}){
         for my $dow (0 .. 6){
             my $date = $request->{"transdate_$dow"};
-            my $hash = { transdate => LedgerSMB::PGDate->from_input($date) };
+            my $hash = { transdate => LedgerSMB::PGDate->from_input($date),
+                         checkedin => LedgerSMB::PGDate->from_input($date), };
             $date =~ s#\D#_#g;
             next unless $request->{"partnumber_${date}_${row}"};
             $hash->{$_} = $request->{"${_}_${date}_${row}"} 

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=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits