@@ 700-708 (lines=9) @@ | ||
697 | { |
|
698 | return $this->getFirstOrderDate(); |
|
699 | } |
|
700 | public function getFirstOrderDate() |
|
701 | { |
|
702 | $a = $this->workOutSchedule(); |
|
703 | if (count($a)) { |
|
704 | foreach ($a as $orderDateInteger => $orderDateLong) { |
|
705 | return Date::create($className = "Date", $value = Date("Y-m-d", $orderDateInteger)); |
|
706 | } |
|
707 | } |
|
708 | } |
|
709 | ||
710 | /** |
|
711 | * Last date that an order was placed |
|
@@ 789-800 (lines=12) @@ | ||
786 | { |
|
787 | return $this->getFinalOrderDate(); |
|
788 | } |
|
789 | public function getFinalOrderDate() |
|
790 | { |
|
791 | $a = $this->workOutSchedule(); |
|
792 | if (count($a)) { |
|
793 | foreach ($a as $orderDateInteger => $orderDateLong) { |
|
794 | //do nothing wait for last one... |
|
795 | } |
|
796 | if ($orderDateInteger) { |
|
797 | return Date::create($className = "Date", $value = Date("Y-m-d", $orderDateInteger)); |
|
798 | } |
|
799 | } |
|
800 | } |
|
801 | ||
802 | /** |
|
803 | * List of delivery dates |