[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[6554] trunk
- Subject: SF.net SVN: ledger-smb:[6554] trunk
- From: ..hidden..
- Date: Mon, 20 Jan 2014 04:57:56 +0000
Revision: 6554
http://sourceforge.net/p/ledger-smb/code/6554
Author: einhverfr
Date: 2014-01-20 04:57:54 +0000 (Mon, 20 Jan 2014)
Log Message:
-----------
fixing dojo handling on weekly timecard entry.
Modified Paths:
--------------
trunk/LedgerSMB/Scripts/timecard.pm
trunk/UI/timecards/timecard-week.html
Modified: trunk/LedgerSMB/Scripts/timecard.pm
===================================================================
--- trunk/LedgerSMB/Scripts/timecard.pm 2014-01-20 03:54:44 UTC (rev 6553)
+++ trunk/LedgerSMB/Scripts/timecard.pm 2014-01-20 04:57:54 UTC (rev 6554)
@@ -106,10 +106,12 @@
return display($request);
} else {
my $startdate = LedgerSMB::PGDate->from_input($request->{date_from});
+
my @dates = ();
for (0 .. 6){
- push @dates, LedgerSMB::PGDate->new(
- date => $startdate->date->add(days => $_)
+ push @dates, LedgerSMB::PGDate->from_db(
+ $startdate->date->add(days => 1)->strftime('%Y-%m-%d'),
+ 'date'
);
}
$request->{num_lines} = 1 unless $request->{num_lines};
Modified: trunk/UI/timecards/timecard-week.html
===================================================================
--- trunk/UI/timecards/timecard-week.html 2014-01-20 03:54:44 UTC (rev 6553)
+++ trunk/UI/timecards/timecard-week.html 2014-01-20 04:57:54 UTC (rev 6554)
@@ -60,7 +60,7 @@
<td>
<div><?lsmb text('Report in') ?> </div>
<div><?lsmb
- suffix = transdates.$dnum _ '_' _ lnum;
+ suffix = transdates.$dnum.replace('[./-]', '_') _ '_' _ lnum;
PROCESS select element_data = {
name = "business_unit_id_$suffix"
default_values = [${"business_unit_id_$suffix"}]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits