mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 17:14:28 -04:00
INA-6 | Add applyNumber and setStatus in purchase order service
This commit is contained in:
parent
ac59b80f8a
commit
7e5e10e5f1
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user