added order message logging

This commit is contained in:
O K
2025-06-02 11:24:18 +03:00
parent 67ff82de5d
commit 638d801a8e
5 changed files with 216 additions and 117 deletions

View File

@@ -16,6 +16,15 @@
<div class="panel-body">
<div id="hutko_payments_list">
{* {if !empty($hutkoOrderPaymentStatus)}
<div class="alert alert-info" role="alert">
<p class="alert-text">
{$hutkoOrderPaymentStatus|nofilter}
</p>
</div>
{/if} *}
<div class="table-responsive">
<table class="table" id="hutko_payments_table">
<thead>
@@ -28,7 +37,7 @@
</thead>
<tbody>
{foreach from=$hutkoPayments item='payment'}
<form method="post" id="hutkoStatusForm-{$payment->id}"></form>
<tr data-payment-id="{$payment->id}" data-payment-amount="{$payment->amount}">
<td>{$payment->transaction_id}</td>
<td>{displayPrice price=Tools::ps_round($payment->amount, 2) currency=$currency->id}
@@ -43,10 +52,12 @@
</button>
{/if}
<button type="submit" form="hutkoStatusForm-{$payment->id}"
class="btn btn-default btn-sm hutko-status-btn" name="hutkoOrderPaymentStatus"
value="{$payment->transaction_id}">
<form method="post" id="hutkoStatusForm-{$payment->id|intval}"></form>
<button type="submit" class="btn btn-default btn-sm hutko-status-btn"
form="hutkoStatusForm-{$payment->id|intval}"
{* data-toggle="modal" data-target="#hutkoStatusModal-{$payment->id}" *}
name="hutkoOrderStatus" value="{$payment->transaction_id|escape:'htmlall':'UTF-8'}"
data-hutkoOrderPaymentStatus="{$payment->id}">
<i class="icon-info"></i> {l s='Status' d='Modules.Hutko.Admin'}
</button>
<div class="modal fade" id="hutkoRefundModal-{$payment->id}" tabindex="-1" role="dialog"
@@ -58,8 +69,7 @@
aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title" id="hutkoRefundModalLabel-{$payment->id}">
{l s='Initiate Refund' d='Modules.Hutko.Admin'}</h4>
</div>
<div class="modal-body">
<form id="hutkoRefundForm-{$payment->id}" method="post">
@@ -69,9 +79,9 @@
<div class="form-group">
<label
for="refund_amount">{l s='Refund Amount' d='Modules.Hutko.Admin'}</label>
for="refund_amount">{l s='Refund Amount' d='Modules.Hutko.Admin'}
({$currency->sign})</label>
<div class="input-group">
<span class="input-group-addon">{$currency->sign}</span>
<input type="number" value="{$payment->amount}" step="0.01"
min="0.01" max="{$payment->amount}" class="form-control"
id="refund_amount" name="refund_amount" required>