From df1574463e406dc4159f1448e67e87287d2a1b31 Mon Sep 17 00:00:00 2001 From: PaulT Date: Sun, 14 Feb 2021 21:50:59 -0500 Subject: [PATCH 1/4] Use Html5 date Use input type="date", with other related changes. --- GLJournal.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/GLJournal.php b/GLJournal.php index b638007f2..15dbc27aa 100644 --- a/GLJournal.php +++ b/GLJournal.php @@ -68,6 +68,7 @@ $_POST['CommitBatch'] = 'Do not do it the date is wrong'; } } + if (isset($_POST['JournalType'])) { $_SESSION['JournalDetail']->JournalType = $_POST['JournalType']; } @@ -251,7 +252,7 @@ A GL entry is created for each GL entry */ - $PeriodNo = GetPeriod($_SESSION['JournalDetail']->JnlDate); + $PeriodNo = GetPeriod(ConvertSQLDate($_SESSION['JournalDetail']->JnlDate)); /*Start a transaction to do the whole lot inside */ $Result = DB_Txn_Begin(); @@ -441,9 +442,9 @@ - - - + + +
' . _('Date to Process Journal') . ':' . _('Type') . ':' . _('Date to Process Journal') . ' {}:' . _('Type') . $_SESSION['JournalDetail']->JnlDate . ':
- + - + '; } echo ' - '; + '; if (isset($_POST['NoteDate'])) { - echo ' + echo ''; } else { - echo ' + echo ''; } echo ' From 714486026f50ae1b79750d180bb797260e9ac50a Mon Sep 17 00:00:00 2001 From: PaulT Date: Sun, 14 Feb 2021 23:23:42 -0500 Subject: [PATCH 4/4] Use Html5 date Cover INSERT handling. --- AddCustomerNotes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AddCustomerNotes.php b/AddCustomerNotes.php index 254405c88..6addecc20 100644 --- a/AddCustomerNotes.php +++ b/AddCustomerNotes.php @@ -58,7 +58,7 @@ VALUES ('" . $DebtorNo. "', '" . $_POST['Href'] . "', '" . $_POST['Note'] . "', - '" . FormatDateForSQL($_POST['NoteDate']) . "', + '" . $_POST['NoteDate'] . "', '" . $_POST['Priority'] . "')"; $msg = _('The contact notes record has been added'); }
' . _('Date to Process Journal') . ' {}:' . _('Date to Process Journal') . ': ' . _('Type') . $_SESSION['JournalDetail']->JnlDate . ':' . _('Type') . ':
' . _('Date') . '' . _('Date') . '