Skip to content

Commit

Permalink
Add order number into file name.
Browse files Browse the repository at this point in the history
Reported in forums by Paul Becker, along with code change to apply.
http://www.weberp.org/forum/showthread.php?tid=8194
  • Loading branch information
TurboPT committed Aug 29, 2018
1 parent 18b9669 commit e5fd39e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PrintCustOrder_generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@
include('includes/footer.php');
exit;
} else {
$pdf->OutputD($_SESSION['DatabaseName'] . '_PackingSlip_' . date('Y-m-d') . '.pdf');
$pdf->__destruct();
$pdf->OutputD($_SESSION['DatabaseName'] . '_PackingSlip_' . $_GET['TransNo'] . '_' . date('Y-m-d') . '.pdf');
$pdf->__destruct();
$sql = "UPDATE salesorders
SET printedpackingslip=1,
datepackingslipprinted=CURRENT_DATE
Expand Down

0 comments on commit e5fd39e

Please sign in to comment.