From: <rc...@us...> - 2014-12-16 14:57:20
|
Revision: 7024 http://sourceforge.net/p/web-erp/reponame/7024 Author: rchacon Date: 2014-12-16 14:57:11 +0000 (Tue, 16 Dec 2014) Log Message: ----------- Expand and uniform the accuracy of the exchange rate. Modified Paths: -------------- trunk/CustomerReceipt.php trunk/Payments.php trunk/SupplierInvoice.php Modified: trunk/CustomerReceipt.php =================================================================== --- trunk/CustomerReceipt.php 2014-12-16 14:26:19 UTC (rev 7023) +++ trunk/CustomerReceipt.php 2014-12-16 14:57:11 UTC (rev 7024) @@ -871,7 +871,7 @@ } if ($_SESSION['ReceiptBatch']->AccountCurrency!=$_SESSION['ReceiptBatch']->Currency AND isset($_SESSION['ReceiptBatch']->AccountCurrency)){ if (isset($SuggestedExRate)){ - $SuggestedExRateText = '<b>' . _('Suggested rate:') . ' ' . locale_number_format($SuggestedExRate,6) . '</b>'; + $SuggestedExRateText = '<b>' . _('Suggested rate:') . ' ' . locale_number_format($SuggestedExRate,8) . '</b>'; } else { $SuggestedExRateText =''; } @@ -882,7 +882,7 @@ } echo '<tr> <td>' . _('Receipt Exchange Rate') . ':</td> - <td><input tabindex="4" type="text" name="ExRate" required="required" maxlength="10" size="12" class="number" value="' . locale_number_format($_SESSION['ReceiptBatch']->ExRate,6) . '" /></td> + <td><input class="number" maxlength="12" name="ExRate" required="required" size="14" tabindex="4" type="text" value="' . locale_number_format($_SESSION['ReceiptBatch']->ExRate,8) . '" /></td> <td>' . $SuggestedExRateText . ' <i>' . _('The exchange rate between the currency of the bank account currency and the currency of the receipt') . '. 1 ' . $_SESSION['ReceiptBatch']->AccountCurrency . ' = ? ' . $_SESSION['ReceiptBatch']->Currency . '</i></td> </tr>'; } @@ -890,7 +890,7 @@ if ($_SESSION['ReceiptBatch']->AccountCurrency!=$_SESSION['CompanyRecord']['currencydefault'] AND isset($_SESSION['ReceiptBatch']->AccountCurrency)){ if (isset($SuggestedFunctionalExRate)){ - $SuggestedFunctionalExRateText = '<b>' . _('Suggested rate:') . ' ' . locale_number_format($SuggestedFunctionalExRate,6) . '</b>'; + $SuggestedFunctionalExRateText = '<b>' . _('Suggested rate:') . ' ' . locale_number_format($SuggestedFunctionalExRate,8) . '</b>'; } else { $SuggestedFunctionalExRateText =''; } @@ -899,14 +899,14 @@ } echo '<tr> <td>' . _('Functional Exchange Rate') . ':</td> - <td><input tabindex="5" type="text" name="FunctionalExRate" required="required" class="number" pattern="[0-9\.,]*" maxlength="10" size="12" value="' . locale_number_format($_SESSION['ReceiptBatch']->FunctionalExRate,6) . '" /></td> + <td><input class="number" maxlength="12" name="FunctionalExRate" pattern="[0-9\.,]*" required="required" size="14" tabindex="5" type="text" value="' . locale_number_format($_SESSION['ReceiptBatch']->FunctionalExRate,8) . '" /></td> <td>' . ' ' . $SuggestedFunctionalExRateText . ' <i>' . _('The exchange rate between the currency of the business (the functional currency) and the currency of the bank account') . '. 1 ' . $_SESSION['CompanyRecord']['currencydefault'] . ' = ? ' . $_SESSION['ReceiptBatch']->AccountCurrency . '</i></td> </tr>'; } echo '<tr> <td>' . _('Receipt Type') . ':</td> - <td><select tabindex="6" name="ReceiptType">'; + <td><select name="ReceiptType" tabindex="6">'; include('includes/GetPaymentMethods.php'); /* The array ReceiptTypes is defined from the setup tab of the main menu under Modified: trunk/Payments.php =================================================================== --- trunk/Payments.php 2014-12-16 14:26:19 UTC (rev 7023) +++ trunk/Payments.php 2014-12-16 14:57:11 UTC (rev 7024) @@ -865,7 +865,7 @@ } echo '<tr> <td>' . _('Payment Exchange Rate') . ':</td> - <td><input class="number" type="text" name="ExRate" maxlength="10" size="12" title="' . _('The exchange rate between the currency of the bank account currency and the currency of the payment') . '" value="' . $_POST['ExRate'] . '" /></td> + <td><input class="number" maxlength="12" name="ExRate" size="14" title="' . _('The exchange rate between the currency of the bank account currency and the currency of the payment') . '" type="text" 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' . $identifier]->AccountCurrency . ' = ? ' . $_SESSION['PaymentDetail' . $identifier]->Currency . '</i></td> </tr>'; } @@ -882,7 +882,7 @@ } echo '<tr> <td>' . _('Functional Exchange Rate') . ':</td> - <td><input type="text" name="FunctionalExRate" maxlength="10" size="12" class="number" title="' . _('The exchange rate between the currency of the business (the functional currency) and the currency of the bank account') . '" value="' . $_POST['FunctionalExRate'] . '" /></td> + <td><input class="number" maxlength="12" name="FunctionalExRate" size="14" title="' . _('The exchange rate between the currency of the business (the functional currency) and the currency of the bank account') . '" type="text" value="' . $_POST['FunctionalExRate'] . '" /></td> <td>' . ' ' . $SuggestedFunctionalExRateText . ' <i>' . _('The exchange rate between the currency of the business (the functional currency) and the currency of the bank account') . '. 1 ' . $_SESSION['CompanyRecord']['currencydefault'] . ' = ? ' . $_SESSION['PaymentDetail' . $identifier]->AccountCurrency . '</i></td> </tr>'; } @@ -1042,15 +1042,15 @@ <td><input type="text" name="Cheque" maxlength="12" size="12" /></td> </tr>'; - if (isset($_POST['GLNarrative'])) { // General Ledger Payment (Different than Bank Account) info to be inserted on gltrans.narrative, varchar(200). + if (isset($_POST['GLNarrative'])) {// General Ledger Payment (Different than Bank Account) info to be inserted on gltrans.narrative, varchar(200). echo '<tr> <td>' . _('GL Narrative') . ':</td> - <td><input type="text" name="GLNarrative" maxlength="50" size="52" value="' . stripslashes($_POST['GLNarrative']) . '" /></td> + <td><input maxlength="200" name="GLNarrative" size="52" type="text" value="' . stripslashes($_POST['GLNarrative']) . '" /></td> </tr>'; } else { echo '<tr> <td>' . _('GL Narrative') . ':</td> - <td><input type="text" name="GLNarrative" maxlength="50" size="52" /></td> + <td><input maxlength="200" name="GLNarrative" size="52" type="text" /></td> </tr>'; } Modified: trunk/SupplierInvoice.php =================================================================== --- trunk/SupplierInvoice.php 2014-12-16 14:26:19 UTC (rev 7023) +++ trunk/SupplierInvoice.php 2014-12-16 14:57:11 UTC (rev 7024) @@ -634,7 +634,7 @@ echo '<td>' . _('Invoice Date') . ' (' . _('in format') . ' ' . $_SESSION['DefaultDateFormat'] . ') :</td> <td><input type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" size="11" maxlength="10" name="TranDate" value="' . $_SESSION['SuppTrans']->TranDate . '" /></td> <td>' . _('Exchange Rate') . ':</td> - <td><input type="text" class="number" size="11" maxlength="10" name="ExRate" value="' . locale_number_format($_SESSION['SuppTrans']->ExRate,8) . '" /></td> + <td><input class="number" maxlength="12" name="ExRate" size="14" type="text" value="' . locale_number_format($_SESSION['SuppTrans']->ExRate,10) . '" /></td> </tr> </table>'; |