//-----------------------------------------------------------------------------------------------
check_db_has_bank_accounts(_("There are no bank accounts defined in the system."));
//-----------------------------------------------------------------------------------------------
check_db_has_bank_accounts(_("There are no bank accounts defined in the system."));
//----------------------------------------------------------------------------------------
if ($ret = context_restore()) {
if(isset($ret['supplier_id']))
//----------------------------------------------------------------------------------------
if ($ret = context_restore()) {
if(isset($ret['supplier_id']))
//
context_call($path_to_root.$editor.$_POST['person_id'],
array('bank_account', 'date_', 'PayType', 'person_id',
//
context_call($path_to_root.$editor.$_POST['person_id'],
array('bank_account', 'date_', 'PayType', 'person_id',
}
//--------------------------------------------------------------------------------------------------
function line_start_focus() {
}
//--------------------------------------------------------------------------------------------------
function line_start_focus() {
- display_note(get_gl_view_str($trans_type, $trans_no, _("View the GL Postings for this Payment")));
+ display_note(get_gl_view_str($trans_type, $trans_no, _("&View the GL Postings for this Payment")));
$_SESSION['pay_items']->trans_type, $_POST['bank_account'],
$_SESSION['pay_items'], $_POST['date_'],
$_POST['PayType'], $_POST['person_id'], get_post('PersonDetailID'),
$_SESSION['pay_items']->trans_type, $_POST['bank_account'],
$_SESSION['pay_items'], $_POST['date_'],
$_POST['PayType'], $_POST['person_id'], get_post('PersonDetailID'),
- if (!check_num('amount', 0))
- {
- display_error( _("The amount entered is not a valid number or is less than zero."));
- set_focus('amount');
- return false;
- }
+ //if (!check_num('amount', 0))
+ //{
+ // display_error( _("The amount entered is not a valid number or is less than zero."));
+ // set_focus('amount');
+ // return false;
+ //}
- if (is_bank_account($_POST['code_id']))
- {
- if ($_SESSION['pay_items']->trans_type == systypes::bank_payment())
- display_error( _("You cannot make a payment to a bank account. Please use the transfer funds facility for this."));
- else
- display_error( _("You cannot make a deposit from a bank account. Please use the transfer funds facility for this."));
- set_focus('code_id');
- return false;
- }
+ //if (is_bank_account($_POST['code_id']))
+ //{
+ // if ($_SESSION['pay_items']->trans_type == systypes::bank_payment())
+ // display_error( _("You cannot make a payment to a bank account. Please use the transfer funds facility for this."));
+ // else
+ // display_error( _("You cannot make a deposit from a bank account. Please use the transfer funds facility for this."));
+ // set_focus('code_id');
+ // return false;
+ //}
//-----------------------------------------------------------------------------------------------
$id = find_submit('Delete');
if ($id != -1)
//-----------------------------------------------------------------------------------------------
$id = find_submit('Delete');
if ($id != -1)
+if (isset($_POST['go']))
+{
+ display_quick_entries($_SESSION['pay_items'], $_POST['person_id'], input_num('totamount'),
+ $_SESSION['pay_items']->trans_type==systypes::bank_payment() ? QE_PAYMENT : QE_DEPOSIT);
+ $_POST['totamount'] = price_format(0); $Ajax->activate('totamount');
+ line_start_focus();
+}