From 19a11a3cd898d5dfa4e29d6db1ba0cce3126f136 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 29 Apr 2014 16:45:00 +0300 Subject: [PATCH] Bug fixes --- app/views/invoices/edit.blade.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/invoices/edit.blade.php b/app/views/invoices/edit.blade.php index 615e5f2b37c3..8dbbea355270 100755 --- a/app/views/invoices/edit.blade.php +++ b/app/views/invoices/edit.blade.php @@ -795,6 +795,8 @@ var dueDate = $('#invoice_date').datepicker('getDate'); dueDate.setDate(dueDate.getDate() + paymentTerms); self.invoice().due_date(dueDate); + // We're using the datepicker to handle the date formatting + self.invoice().due_date($('#due_date').val()); } }