Skip to content

Commit

Permalink
Update payslip_db.inc
Browse files Browse the repository at this point in the history
  • Loading branch information
notrinos authored Sep 24, 2017
1 parent 9a94385 commit e10fa02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/db/payslip_db.inc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ function write_payslip(&$cart, $reverse, $use_transaction = true) {
$total = $cart->gl_items_total_debit();

//add payslip details
add_payslip_details($cart->payslip_no, $cart->to_the_order_of, $cart->from_date, $cart->to_date, $cart->leaves, $cart->deductable_leaves);
if($from_date != '' && $to_date != '')
add_payslip_details($cart->payslip_no, $cart->to_the_order_of, $from_date, $to_date, $cart->leaves, $cart->deductable_leaves);
add_journal($trans_type, $trans_id, $total, $date , $cart->currency, $ref, $cart->source_ref, $cart->rate, Today(), Today());

$Refs->save($trans_type, $trans_id, $ref);
Expand Down

0 comments on commit e10fa02

Please sign in to comment.