mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 03:57:32 -05: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;
 | 
					            $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;
 | 
					        return $this;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user