Anzahlungen / Restzahlungen
Restzahlung, wenn kleiner als 4 Wochen, dann sofort git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3427 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
parent
35aeb88f09
commit
7e8a53bace
3 changed files with 12 additions and 2 deletions
|
|
@ -165,11 +165,20 @@ final class TravelDate
|
|||
{
|
||||
$pDate = strtotime('-4 week', $this->getStart()->getTimestamp());
|
||||
if($pDate <= time()){
|
||||
$pDate = strtotime('+1 day', $this->getStart()->getTimestamp());
|
||||
$pDate = time();
|
||||
}
|
||||
return date('d.m.Y',$pDate);
|
||||
}
|
||||
|
||||
public function getFinalPaymentDateStr()
|
||||
{
|
||||
$pDate = strtotime('-4 week', $this->getStart()->getTimestamp());
|
||||
if($pDate <= time()){
|
||||
return "ist sofort fällig";
|
||||
}
|
||||
return "bis zum ".date('d.m.Y',$pDate);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return \DateTime
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue