master
cody 6 months ago
parent e6303a2581
commit c0a8ba1c52

@ -31,7 +31,7 @@ class Orders extends SoftDeletesModel
*/ */
public function needAgreements() public function needAgreements()
{ {
// dd(strtotime($this->created_at) >= strtotime(Orders::AGREEMENT_START_DATE)); dd($this->orderAgreementByLast);
if ($this->paramedic_id if ($this->paramedic_id
&& $this->project->agreement == 1 && $this->project->agreement == 1
&& strtotime($this->created_at) >= strtotime(Orders::AGREEMENT_START_DATE) && strtotime($this->created_at) >= strtotime(Orders::AGREEMENT_START_DATE)

Loading…
Cancel
Save