refactor estimate to invoice endpoint

This commit is contained in:
jayvirsinh_gohil
2020-05-11 18:34:20 +05:30
parent 5df4abdc4b
commit b08138e9e0

View File

@ -385,7 +385,7 @@ class EstimatesController extends Controller
public function estimateToInvoice(Request $request, $id)
{
$estimate = Estimate::with(['items', 'items.taxes', 'user', 'estimateTemplate', 'taxes'])->find($id);
$invoice_date = Carbon::parse($estimate->estimate_date);
$invoice_date = Carbon::now();
$invoice_prefix = CompanySetting::getSetting(
'invoice_prefix',
$request->header('company')