master
cody 6 months ago
parent dc9aceb11e
commit 54f6ce3068

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

Loading…
Cancel
Save