mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-30 21:21:09 -04:00 
			
		
		
		
	Fix recurring invoice condition
This commit is contained in:
		| @ -307,6 +307,10 @@ class RecurringInvoice extends Model | ||||
|  | ||||
|         $days = CompanySetting::getSetting('invoice_due_date_days', $this->company_id); | ||||
|  | ||||
|         if ($days == "null") { | ||||
|             $days = 7; | ||||
|         } | ||||
|  | ||||
|         $newInvoice['creator_id'] = $this->creator_id; | ||||
|         $newInvoice['invoice_date'] = Carbon::today()->format('Y-m-d'); | ||||
|         $newInvoice['due_date'] = Carbon::today()->addDays($days)->format('Y-m-d'); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user