master
cody 6 months ago
parent 0d255f15a1
commit 74a24ad1d7

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