کیش راؤنڈنگ کے لیے POS تبادلہ V2 رسید کے ای میل نوٹیفکیشن کو اپ ڈیٹ کریں
اگر آپ کا اسٹور کسٹمائزڈ نوٹیفکیشن ٹیمپلیٹس استعمال کرتا ہے، تو آپ کو اپنی POS تبادلہ V2 رسید کے ای میل نوٹیفکیشن کو مینوئل طور پر اپ ڈیٹ کرنے کی ضرورت پڑ سکتی ہے تاکہ یہ یقینی بنایا جا سکے کہ یہ رسید پر کیش راؤنڈنگ ڈسپلے کرے۔
ان تبدیلیوں کے لیے Shopify کی نوٹیفکیشن ٹیمپلیٹ کے کوڈ سے واقفیت درکار ہے۔ اگر آپ کی ٹیمپلیٹ کو بہت زیادہ کسٹمائز کیا گیا ہے اور آپ کو یقین نہیں ہے کہ ضروری تبدیلیاں کیسے لاگو کی جائیں، تو تبدیلیاں کرنے والے ڈیولپر سے رابطہ کریں یا اپنی ٹیمپلیٹ کو اس کی اصل حالت میں بحال کرنے کے لیے ڈیفالٹ پر ریورٹ کریں پر کلک کریں۔ ڈیفالٹ پر ریورٹ کرنے سے تمام کسٹمائزیشن ہٹ جاتی ہے، لیکن اس سے یہ یقینی بنتا ہے کہ آپ کے پاس حالیہ ترین ٹیمپلیٹ کا ورژن موجود ہے۔
POS تبادلہ V2 رسید کے ای میل نوٹیفکیشن کو اپ ڈیٹ کریں
آپ تبادلے کی ٹرانزیکشنز سے حاصل ہونے والی خالص کیش راؤنڈنگ کی رقم کو، رسید میں تبادلے کے راؤنڈ کیے گئے کل اماؤنٹ کے ساتھ ڈسپلے کرنے کے لیے POS تبادلہ V2 رسید کے نوٹیفکیشن کو اپ ڈیٹ کر سکتے ہیں۔
اقدامات:
اپنے Shopify ایڈمن سے، ترتیبات > نوٹیفکیشنز پر جائیں۔
کسٹمر کے نوٹیفکیشنز پر کلک کریں۔
پوائنٹ آف سیل کے سیکشن میں، POS تبادلہ V2 کی رسید پر کلک کریں۔
کوڈ میں ترمیم کریں پر کلک کریں۔
خالص کیش راؤنڈنگ کی رقم کا حساب لگانے کے لیے لاجک شامل کریں اور اسے
exchange_totalمیں شامل کریں۔- وہ کوڈ بلاک تلاش کریں جس میں
<span>Exchange total</span>شامل ہو۔ - موجودہ کوڈ بلاک کو درج ذیل کوڈ بلاک سے تبدیل کریں جو
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>