From: <dai...@us...> - 2013-07-06 10:00:44
|
Revision: 6054 http://sourceforge.net/p/web-erp/reponame/6054 Author: daintree Date: 2013-07-06 10:00:41 +0000 (Sat, 06 Jul 2013) Log Message: ----------- check contracts before deleting branches Modified Paths: -------------- trunk/CustomerBranches.php Modified: trunk/CustomerBranches.php =================================================================== --- trunk/CustomerBranches.php 2013-07-06 09:53:08 UTC (rev 6053) +++ trunk/CustomerBranches.php 2013-07-06 10:00:41 UTC (rev 6054) @@ -329,8 +329,8 @@ $myrow = DB_fetch_row($result); if ($myrow[0]>0) { - prnMsg(_('Cannot delete this branch because users exist that refer to it') . '. ' . _('Purge old users first'),'warn'); - echo '<br />'._('There are').' ' . $myrow[0] . ' '._('users referring to this Branch/customer'); + prnMsg(_('Cannot delete this branch because contract have been created that refer to it') . '. ' . _('Purge old contracts first'),'warn'); + echo '<br />'._('There are').' ' . $myrow[0] . ' '._('contracts referring to this branch/customer'); } else { $sql="DELETE FROM custbranch WHERE branchcode='" . $SelectedBranch . "' AND debtorno='" . $DebtorNo . "'"; $ErrMsg = _('The branch record could not be deleted') . ' - ' . _('the SQL server returned the following message'); |