Skip to content

Commit

Permalink
Xiaobotian from Chinese webERP Forum(QQ group) fixed failure to issue…
Browse files Browse the repository at this point in the history
… invoice for customer reference is more than 20 characters
  • Loading branch information
ExsonQu2018 committed Apr 27, 2018
1 parent d02430f commit 9a7f83a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions ConfirmDispatch_Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,6 @@
$ErrMsg =_('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The debtor transaction record could not be inserted because');
$DbgMsg = _('The following SQL to insert the debtor transaction record was used');
$Result = DB_query($SQL,$ErrMsg,$DbgMsg,true);

$DebtorTransID = DB_Last_Insert_ID('debtortrans','id');

/* Insert the tax totals for each tax authority where tax was charged on the invoice */
Expand Down Expand Up @@ -1833,4 +1832,4 @@
echo '</form>';

include('includes/footer.php');
?>
?>
4 changes: 2 additions & 2 deletions DeliveryDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@
</tr>
<tr>
<td>' . _('Customer Reference') .':</td>
<td><input type="text" size="25" maxlength="25" name="CustRef" value="' . $_SESSION['Items'.$identifier]->CustRef . '" title="' . _('Enter the customer\'s purchase order reference relevant to this order') . '" /></td>
<td><input type="text" size="25" maxlength="50" name="CustRef" value="' . $_SESSION['Items'.$identifier]->CustRef . '" title="' . _('Enter the customer\'s purchase order reference relevant to this order') . '" /></td>
</tr>
<tr>
<td>' . _('Comments') .':</td>
Expand Down Expand Up @@ -1204,4 +1204,4 @@
</div>
</form>';
include('includes/footer.php');
?>
?>
2 changes: 2 additions & 0 deletions sql/mysql/upgrade4.12.1-4.12.2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ CREATE TABLE IF NOT EXISTS `locationusers` (
INSERT INTO `locationusers` (`loccode`, `userid`, `canview`, `canupd`) SELECT loccode, userid,1,1 FROM locations, www_users;
INSERT INTO `scripts` (`script`, `pagesecurity`, `description`) VALUES ('LocationUsers.php', '15', 'Allows users that have permission to access a location to be defined');

ALTER TABLE debtortrans MODIFY reference varchar(50);

-- Update version number:
UPDATE config SET confvalue='4.12.2' WHERE confname='VersionNumber';

0 comments on commit 9a7f83a

Please sign in to comment.