Browse Source

fleat: add no_cashback

igb 13 hours ago
parent
commit
ab837fff57
4 changed files with 11 additions and 11 deletions
  1. 4 4
      order_add.php
  2. 2 2
      order_details.php
  3. 4 4
      order_edit.php
  4. 1 1
      order_save.php

+ 4 - 4
order_add.php

@@ -399,18 +399,18 @@ if ($customerId > 0) {
                 </td>
             </tr>
             <tr>
-                <th width="8%" nowrap>是否参与返</th>
+                <th width="8%" nowrap>是否参与返</th>
                 <td>
                     <div style="display: flex; gap: 20px;">
                         <label style="display: flex; align-items: center;">
-                            <input type="radio" name="no_cashback" id="no_cashback_0" value="0" checked> 参与返
+                            <input type="radio" name="no_cashback" id="no_cashback_0" value="0" checked> 参与返
                         </label>
                         <label style="display: flex; align-items: center;">
-                            <input type="radio" name="no_cashback" id="no_cashback_1" value="1"> 不参与返
+                            <input type="radio" name="no_cashback" id="no_cashback_1" value="1"> 不参与返
                         </label>
                     </div>
                     <div style="margin-top: 5px; font-size: 12px; color: #666;">
-                        注:选择"不参与返现"的订单将不计入返现统计和计算
+                        注:选择"不参与返点"的订单将不计入返点统计和计算
                     </div>
                 </td>
             </tr>

+ 2 - 2
order_details.php

@@ -235,9 +235,9 @@ if (!empty($id) && is_numeric($id)) {
             <span class="info-label">销售员:</span> <?= htmlspecialcharsFix($order['employee_name']) ?>
         </div>
         <div class="info-row">
-            <span class="info-label">是否参与返现:</span> 
+            <span class="info-label">是否参与返点:</span>
             <span style="<?= ($order['no_cashback'] == 1) ? 'color: #e74c3c; font-weight: bold;' : 'color: #27ae60; font-weight: bold;' ?>">
-                <?= ($order['no_cashback'] == 1) ? '不参与返现' : '参与返现' ?>
+                <?= ($order['no_cashback'] == 1) ? '不参与返点' : '参与返点' ?>
             </span>
         </div>
     </div>

+ 4 - 4
order_edit.php

@@ -454,18 +454,18 @@ if (!empty($id) && is_numeric($id)) {
                 </td>
             </tr>
             <tr>
-                <th width="8%" nowrap>是否参与返</th>
+                <th width="8%" nowrap>是否参与返</th>
                 <td>
                     <div style="display: flex; gap: 20px;">
                         <label style="display: flex; align-items: center;">
-                            <input type="radio" name="no_cashback" id="no_cashback_0" value="0" <?= ($order['no_cashback'] == 0) ? 'checked' : '' ?>> 参与返
+                            <input type="radio" name="no_cashback" id="no_cashback_0" value="0" <?= ($order['no_cashback'] == 0) ? 'checked' : '' ?>> 参与返
                         </label>
                         <label style="display: flex; align-items: center;">
-                            <input type="radio" name="no_cashback" id="no_cashback_1" value="1" <?= ($order['no_cashback'] == 1) ? 'checked' : '' ?>> 不参与返
+                            <input type="radio" name="no_cashback" id="no_cashback_1" value="1" <?= ($order['no_cashback'] == 1) ? 'checked' : '' ?>> 不参与返
                         </label>
                     </div>
                     <div style="margin-top: 5px; font-size: 12px; color: #666;">
-                        注:选择"不参与返现"的订单将不计入返现统计和计算
+                        注:选择"不参与返点"的订单将不计入返点统计和计算
                     </div>
                 </td>
             </tr>

+ 1 - 1
order_save.php

@@ -48,7 +48,7 @@ $payment_status = 0; // 默认为"未付款"
 $currency = "CNY"; // 默认为人民币
 $notes = mysqli_real_escape_string($conn, htmlspecialchars($_POST['notes'], ENT_QUOTES, 'UTF-8'));
 $internal_notes = ""; // 默认为空
-$no_cashback = isset($_POST['no_cashback']) ? (int)$_POST['no_cashback'] : 0; // 获取是否不参与返
+$no_cashback = isset($_POST['no_cashback']) ? (int)$_POST['no_cashback'] : 0; // 获取是否不参与返
 
 // 获取订单项信息
 $items = $_POST['items'] ?? [];