Fixes for purchase orders
This commit is contained in:
parent
9e7375a127
commit
e04deab52d
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ class ApplyNumber extends AbstractService
|
|||
$this->trySaving();
|
||||
break;
|
||||
case 'when_sent':
|
||||
if ($this->invoice->status_id == PurchaseOrder::STATUS_SENT) {
|
||||
if ($this->purchase_order->status_id == PurchaseOrder::STATUS_SENT) {
|
||||
$this->trySaving();
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue