Skip to content

Commit

Permalink
ajuste no mapa de valores
Browse files Browse the repository at this point in the history
  • Loading branch information
Emerson Bernardino authored and Emerson Bernardino committed Apr 22, 2012
1 parent 16a2326 commit 6684bea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 2 additions & 1 deletion BilheteUnico.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ class BilheteUnico {
} else {
currSaldo -= valorDiaUtil;
}
currDate = currDate.add(new Duration(1));

valorPorDia[Utils.formatDate(currDate)] = currSaldo;
currDate = currDate.add(new Duration(1));
}
return currDate;
}
Expand Down
2 changes: 1 addition & 1 deletion BilheteUnicoTest.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class BilheteUnicoTest {
Date proximaRecarga = bu.proximaRecarga(now);
Expect.equals(2012, proximaRecarga.year);
Expect.equals(4, proximaRecarga.month);
Expect.equals(3, proximaRecarga.day);
Expect.equals(4, proximaRecarga.day);
}

static void testCalculaProximaRecargaComFDS(){
Expand Down
5 changes: 0 additions & 5 deletions SaldoUnico.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ class SaldoUnico {


String getUrlToCallendar(Date date, String title, String description){
/* Exemplo de URL
<a href="http://www.google.com/calendar/event?action=TEMPLATE&text=Brunch at Java Cafe&dates=20060415T180000Z/20060415T190000Z&location=Java Cafe, San Francisco, CA&details=Try our Saturday brunch special:<br><br>French toast with fresh fruit<br><br>Yum!&trp=true&sprop= website:http://www.javacafebrunches.com&sprop;=name:Jave Cafe"><img src="http://www.google.com/calendar/images/ext/gc_button2.gif"></a>
*/
String dateStr = Utils.formateDateFromTo(date);


return '<a target="_blank" href="http://www.google.com/calendar/event?action=TEMPLATE&text=$title&dates=$dateStr&details=$description&trp=true&sprop=name:SaldoUnico"><img src="http://www.google.com/calendar/images/ext/gc_button2.gif" ></a>';
}
Expand Down

0 comments on commit 6684bea

Please sign in to comment.