| @@ 599-607 (lines=9) @@ | ||
| 596 | return $this->getFirstOrderDate(); |
|
| 597 | } |
|
| 598 | ||
| 599 | public function getFirstOrderDate() |
|
| 600 | { |
|
| 601 | $a = $this->workOutSchedule(); |
|
| 602 | if (count($a)) { |
|
| 603 | foreach ($a as $orderDateInteger => $orderDateLong) { |
|
| 604 | return Date::create($className = "Date", $value = Date("Y-m-d", $orderDateInteger)); |
|
| 605 | } |
|
| 606 | } |
|
| 607 | } |
|
| 608 | ||
| 609 | /** |
|
| 610 | * Last date that an order was placed |
|
| @@ 702-713 (lines=12) @@ | ||
| 699 | return $this->getFinalOrderDate(); |
|
| 700 | } |
|
| 701 | ||
| 702 | public function getFinalOrderDate() |
|
| 703 | { |
|
| 704 | $a = $this->workOutSchedule(); |
|
| 705 | if (count($a)) { |
|
| 706 | foreach ($a as $orderDateInteger => $orderDateLong) { |
|
| 707 | //do nothing wait for last one... |
|
| 708 | } |
|
| 709 | if ($orderDateInteger) { |
|
| 710 | return Date::create($className = "Date", $value = Date("Y-m-d", $orderDateInteger)); |
|
| 711 | } |
|
| 712 | } |
|
| 713 | } |
|
| 714 | ||
| 715 | /** |
|
| 716 | * List of delivery dates |
|