Skip to content

Commit

Permalink
Update pay_advice.php
Browse files Browse the repository at this point in the history
  • Loading branch information
notrinos authored Sep 24, 2017
1 parent e10fa02 commit 4a5ec17
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions manage/pay_advice.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@
include_once($path_to_root . "/modules/FrontHrm/includes/frontHrm_ui.inc");
include_once($path_to_root . "/reporting/includes/reporting.inc");

if(isset($_GET['PaymentAdvice'])) {

if(isset($_GET['PaymentAdvice']))
$_SESSION['page_title'] = _($help_context = "Make Payment Advice for Payslip #".$_GET['PaymentAdvice']);
}
else {
$_POST['NewPaymentAdvice'] = 'Yes';
$_SESSION['page_title'] = _($help_context = "Make Payment Advice");
Expand Down Expand Up @@ -111,7 +109,7 @@ function create_cart($type = 0, $trans_no =0, $payslip=array()) {

check_is_closed($type, $trans_no);
$cart = new items_cart($type);
// $cart->clear_items();

$cart->payslip_no = $_POST['PaySlipNo'];
$cart->order_id = $trans_no;

Expand Down Expand Up @@ -166,7 +164,6 @@ function create_cart($type = 0, $trans_no =0, $payslip=array()) {
set_focus('code_id');
$input_error = 1;
}

if (!is_date($_POST['date_'])) {
display_error(_("The entered date is invalid."));
set_focus('date_');
Expand Down

0 comments on commit 4a5ec17

Please sign in to comment.