Skip to content

Commit

Permalink
Merge pull request #485 from abhishek-webkul/update-checkout-date
Browse files Browse the repository at this point in the history
Update default checkout date on order view page at back office
  • Loading branch information
rohit053 authored Dec 29, 2022
2 parents d85f2f8 + 7fa69f8 commit fc4d48c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
{/if}

{* field for the current date *}
<input class="room_status_date wk-input-date" type="text" name="status_date" value="{$data['date_from']|date_format:"%d-%m-%Y"}" readonly/>
<input class="room_status_date wk-input-date" type="text" name="status_date" value="{if $data['id_status'] == $hotel_order_status['STATUS_CHECKED_IN']['id_status']}{$data['date_to']|date_format:"%d-%m-%Y"}{else}{$data['date_from']|date_format:"%d-%m-%Y"}{/if}" readonly/>

<input type="hidden" name="date_from" value="{$data['date_from']|date_format:"%Y-%m-%d"}" />
<input type="hidden" name="date_to" value="{$data['date_to']|date_format:"%Y-%m-%d"}" />
Expand Down

0 comments on commit fc4d48c

Please sign in to comment.