INA-6 | Add applyNumber and setStatus in purchase order service

This commit is contained in:
Nikola Cirkovic 2022-06-05 05:58:29 +02:00
parent ac59b80f8a
commit 7e5e10e5f1

View File

@ -52,6 +52,30 @@ class PurchaseOrderService
$this->purchase_order->public_notes = $this->purchase_order->client->public_notes;
return $this;
}
public function setStatus($status)
{
$this->purchase_order->status_id = $status;
return $this;
}
public function markSent()
{
$this->purchase_order = (new MarkSent($this->purchase_order->client, $this->purchase_order))->run();
return $this;
}
/**
* Applies the purchase order number.
* @return $this PurchaseOrderService object
*/
public function applyNumber()
{
$this->purchase_order = (new ApplyNumber($this->purchase_order->client, $this->purchase_order))->run();
return $this;
}
}