add voucher date created and print by date

add voucher date created and print by date
This commit is contained in:
gerandonk
2024-12-20 16:48:06 +07:00
parent 32418f05fb
commit b3fd1d5a3e
5 changed files with 29 additions and 0 deletions

View File

@ -75,6 +75,14 @@
<option value="{$plan['id']}" {if $plan['id']==$planid}selected{/if}>{$plan['name_plan']}
</option>
{/foreach}
</select></td>
<td>Date <select id="selected_datetime" name="selected_datetime" style="width:50px">
<option value="">--all--</option>
{foreach $createdate as $date}
<option value="{$date.created_datetime}" {if $date.created_datetime eq $selected_datetime}selected{/if}>
{$date.created_datetime}
</option>
{/foreach}
</select></td>
<td><button type="submit">submit</button></td>
</tr>

View File

@ -97,6 +97,7 @@
<th>{Lang::T('Code Voucher')}</th>
<th>{Lang::T('Status Voucher')}</th>
<th>{Lang::T('Customer')}</th>
<th>{Lang::T('Create Date')}</th>
<th>{Lang::T('Used Date')}</th>
<th>{Lang::T('Generated By')}</th>
<th>{Lang::T('Manage')}</th>
@ -119,6 +120,7 @@
<td>{if $ds['user'] eq '0'} -
{else}<a href="{$_url}customers/viewu/{$ds['user']}">{$ds['user']}</a>
{/if}</td>
<td>{if $ds['created_at']}{Lang::dateTimeFormat($ds['created_at'])}{/if}</td>
<td>{if $ds['used_date']}{Lang::dateTimeFormat($ds['used_date'])}{/if}</td>
<td>{if $ds['generated_by']}
<a