नकद राउंडिंग के लिए POS एक्सचेंज V2 रसीद ईमेल नोटिफ़िकेशन अपडेट करें

अगर आपका स्टोर अनुकूलित नोटिफ़िकेशन टेम्पलेट का इस्तेमाल करता है, तो आपको अपने POS एक्सचेंज V2 रसीद ईमेल नोटिफ़िकेशन को मैन्युअल रूप से अपडेट करने की ज़रूरत पड़ सकती है, ताकि यह पक्का हो सके कि रसीद पर नकद राउंडिंग दिखाई दे।

इन बदलावों के लिए Shopify के नोटिफ़िकेशन टेम्पलेट में इस्तेमाल किए गए कोड की जानकारी होना ज़रूरी है। अगर आपके टेम्पलेट बहुत ज़्यादा अनुकूलित हैं और आपको यह नहीं पता कि ज़रूरी बदलाव कैसे करें, तो उस डेवलपर से संपर्क करें जिसने ये बदलाव किए थे या अपने टेम्पलेट को उसकी मूल स्थिति में वापस लाने के लिए Revert to default पर क्लिक करें। जब आप डिफ़ॉल्ट पर वापस लाते हैं, तो आपके सभी अनुकूलन हटा दिए जाते हैं, लेकिन डिफ़ॉल्ट टेम्पलेट यह पक्का करता है कि आपके पास सबसे नया टेम्पलेट का वर्शन हो।

POS एक्सचेंज V2 रसीद ईमेल नोटिफ़िकेशन अपडेट करें

आप POS एक्सचेंज V2 रसीद नोटिफ़िकेशन को अपडेट कर सकते हैं, ताकि एक्सचेंज लेन-देन से होने वाली कुल नकद राउंडिंग राशि के साथ-साथ रसीद में राउंड की गई एक्सचेंज की कुल राशि भी दिखाई दे।

तरीका:

  1. अपने Shopify एडमिन से, सेटिंग > नोटिफ़िकेशन पर जाएं.

  2. ग्राहक नोटिफ़िकेशन पर क्लिक करें.

  3. Point of Sale सेक्शन में, POS एक्सचेंज V2 रसीद पर क्लिक करें.

  4. कोड एडिट करें पर क्लिक करें.

  5. कुल नकद राउंडिंग राशि की गणना करने के लिए लॉजिक जोड़ें और इसे exchange_total में जोड़ें.

    1. वह कोड ब्लॉक खोजें जिसमें <span>Exchange total</span> है.
    2. मौजूदा कोड ब्लॉक को निम्नलिखित कोड ब्लॉक से बदलें, जो net_exchange_rounding की गणना करता है और इसे exchange_total में जोड़ता है:
<table class="row subtotal-table">
  <div class="subtotal-table--total subtotal-table--total-no-border">
    <tr class="subtotal-line">
      <td class="subtotal-line__title">
        <p>
          <span>Exchange total</span>
        </p>
      </td>
      <td class="subtotal-line__value">
        <strong>{% if exchange_total < 0 %}-{% endif %}{{ exchange_total | abs | money_with_currency }}</strong>
      </td>
    </tr>
  </div>
  {% assign net_exchange_rounding = 0 %}
  {% for transaction in transactions %}
    {% if transaction.status == "success" %}
      {% if transaction.kind == "sale" or transaction.kind == "capture"  %}
        {% if transaction.amount_rounding != nil %}
          {% assign net_exchange_rounding = net_exchange_rounding | plus: transaction.amount_rounding %}
        {% endif %}
      {% elsif transaction.kind == "refund" or transaction.kind == "change" %}
        {% if transaction.amount_rounding != nil %}
          {% assign net_exchange_rounding = net_exchange_rounding | minus: transaction.amount_rounding %}
        {% endif %}
      {% endif %}
    {% endif %}
  {% endfor %}
  {% if net_exchange_rounding != 0 %}
    <table class="row subtotal-table subtotal-table--total">
      <div class="subtotal-line__value-small">
        <tr class="subtotal-line">
          <td class="subtotal-line__title">
            <p> <span>Cash rounding</span> </p>
          </td>
          <td class="subtotal-line__value">
            <strong>{% if net_exchange_rounding < 0 %}-{% endif %} {{ net_exchange_rounding | abs | money }}</strong>
          </td>
        </tr>
      </div>
    </table>
    <table class="row subtotal-table subtotal-table--total">
      {% assign rounded_exchange_total = exchange_total | plus: net_exchange_rounding %}
      {% if rounded_exchange_total > 0 %}
        <tr class="subtotal-line">
          <td class="subtotal-line__title">
            <p> <span>Paid</span> </p>
          </td>
          <td class="subtotal-line__value">
            <strong>{{ rounded_exchange_total | money_with_currency }}</strong>
          </td>
        </tr>
      {% elsif rounded_exchange_total < 0 %}
        <tr class="subtotal-line">
        <td class="subtotal-line__title">
          <p> <span>Refund</span> </p>
        </td>
        <td class="subtotal-line__value">
          <strong>-{{ rounded_exchange_total | abs | money_with_currency }}</strong>
        </td>
      </tr>
      {% else %}
        <tr class="subtotal-line">
          <td class="subtotal-line__title">
            <p> <span>Adjusted exchange total</span> </p>
          </td>
          <td class="subtotal-line__value">
            <strong>{{ rounded_exchange_total | money_with_currency }}</strong>
          </td>
        </tr>
      {% endif %}
    </table>
  {% endif %}
</table>