Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenBrunk authored Jul 3, 2024
1 parent 6456e0d commit d354c1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/Application/Model/Voucher.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ public function getVoucherByNr($sVoucherNr, $aVouchers = [], $blCheckavalability
$sQ .= "( {$sViewName}.oxorderid is NULL || {$sViewName}.oxorderid = '' ) ";
$sQ .= " and ( {$sViewName}.oxdateused is NULL || {$sViewName}.oxdateused = 0 ) ";

// Validate end date of voucher (To prevent issue in case same voucher number been used for multiple voucherseries)
$sQ .= " and {$sSeriesViewName}.oxenddate >= NOW()";

//voucher timeout for 3 hours
if ($blCheckavalability) {
$iTime = time() - $this->getVoucherTimeout();
Expand Down

0 comments on commit d354c1f

Please sign in to comment.