From: <tim...@us...> - 2010-01-07 20:41:59
|
Revision: 3284 http://web-erp.svn.sourceforge.net/web-erp/?rev=3284&view=rev Author: tim_schofield Date: 2010-01-07 20:41:53 +0000 (Thu, 07 Jan 2010) Log Message: ----------- Enforce numbers only in input boxes Modified Paths: -------------- trunk/Payments.php trunk/doc/Change.log.html Modified: trunk/Payments.php =================================================================== --- trunk/Payments.php 2010-01-07 20:24:45 UTC (rev 3283) +++ trunk/Payments.php 2010-01-07 20:41:53 UTC (rev 3284) @@ -779,7 +779,7 @@ $_POST['ExRate'] = $SuggestedExRate; } echo '<tr><td>' . _('Payment Exchange Rate') . ':</td> - <td><input type="text" name="ExRate" maxlength=10 size=12 value="' . $_POST['ExRate'] . '"></td> + <td><input class=number type="text" name="ExRate" maxlength=10 size=12 value="' . $_POST['ExRate'] . '"></td> <td>' . $SuggestedExRateText . ' <i>' . _('The exchange rate between the currency of the bank account currency and the currency of the payment') . '. 1 ' . $_SESSION['PaymentDetail']->AccountCurrency . ' = ? ' . $_SESSION['PaymentDetail']->Currency . '</i></td></tr>'; } @@ -946,11 +946,11 @@ echo '<table><tr><td>' . _('Amount of Payment') . ' ' . $_SESSION['PaymentDetail']->Currency . ':</td> - <td><input type="text" name="Amount" maxlength=12 size=13 value=' . $_SESSION['PaymentDetail']->Amount . '></td></tr>'; + <td><input class=number type="text" name="Amount" maxlength=12 size=13 value=' . $_SESSION['PaymentDetail']->Amount . '></td></tr>'; if (isset($_SESSION['PaymentDetail']->SupplierID)){ /*So it is a supplier payment so show the discount entry item */ echo '<tr><td>' . _('Amount of Discount') . ':</td> - <td><input type="text" name="Discount" maxlength=12 size=13 value=' . $_SESSION['PaymentDetail']->Discount . '></td></tr>'; + <td><input class=number type="text" name="Discount" maxlength=12 size=13 value=' . $_SESSION['PaymentDetail']->Discount . '></td></tr>'; echo '<input type="hidden" name="SuppName" value="' . $_SESSION['PaymentDetail']->SuppName . '">'; } else { echo '<input type="hidden" name="discount" Value=0>'; Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-07 20:24:45 UTC (rev 3283) +++ trunk/doc/Change.log.html 2010-01-07 20:41:53 UTC (rev 3284) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p> +<p>07/01/10 Tim: Payments.php - Enforce numbers only in input boxes <p>07/01/10 Tim: GoodsReceived.php - Declare $identifier if not already declared before including PO_ReadInOrder.inc <p>07/01/10 Tim: silverwolf/default.css - Changes for new menu layout <p>07/01/10 Tim: PrintCustTransPortrait.php - Correct errors preventing invoice from printing This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |