Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Update all Time Actuals for each day in a timesheet

$
0
0

Hey guys, I am trying to update all start times and end times for each day in a timesheet  (Entry mode is Daily).  

Right now I can update only a single day in the timesheet, and I am wondering how I would add one hour across all 7 days in the timesheet. 

 

          // add one hour

           actualsRow.TS_ACT_VALUE = 60000;
           // do this for each individual date
           actualsRow.TS_ACT_START_DATE = timePeriodsRow.WPRD_START_DATE;
           actualsRow.TS_ACT_FINISH_DATE = actualsRow.TS_ACT_START_DATE.AddDays(1);
           // Guid from above
           actualsRow.TS_LINE_UID = line.TS_LINE_UID;
           timesheetDs.Actuals.AddActualsRow(actualsRow);

Thank you!


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>