diff --git a/app/modules/performance/adapters/cafe24.py b/app/modules/performance/adapters/cafe24.py index cab1d3c..418f2b2 100644 --- a/app/modules/performance/adapters/cafe24.py +++ b/app/modules/performance/adapters/cafe24.py @@ -402,6 +402,12 @@ class Cafe24Adapter(MarketplaceAdapter): "quantity": qty, "amount": max(0, amount), "product_name": str(i.get("product_name") or "")[:40], "naver_pay_claim_status": str(i.get("naver_pay_claim_status") or ""), + # 대조용 — 주문 전체가 취소·반품됐는지, 그 주문 배송비(배송비 환불 여부 확인) + "order_all_claimed": all(str(x.get("order_status") or "") in NO_RECORD_DONE + for x in o.get("items") or []), + "order_shipping_fee": order_amounts(o)["shipping_fee"], + "item_payment_amount": _won(i.get("payment_amount")), + "coupon": _won(i.get("coupon_discount_price")), } if not found: return [] diff --git a/app/modules/performance/templates/performance/index.html b/app/modules/performance/templates/performance/index.html index e752247..7b20b56 100644 --- a/app/modules/performance/templates/performance/index.html +++ b/app/modules/performance/templates/performance/index.html @@ -239,4 +239,4 @@ } | tojson }} {% endblock %} -{% block scripts %}{% endblock %} +{% block scripts %}{% endblock %} diff --git a/app/modules/performance/templates/performance/settings.html b/app/modules/performance/templates/performance/settings.html index 7dee1f8..bd4f88e 100644 --- a/app/modules/performance/templates/performance/settings.html +++ b/app/modules/performance/templates/performance/settings.html @@ -155,4 +155,4 @@ {% endblock %} -{% block scripts %}{% endblock %} +{% block scripts %}{% endblock %} diff --git a/app/static/performance.js b/app/static/performance.js index 49d8aed..bef7b38 100644 --- a/app/static/performance.js +++ b/app/static/performance.js @@ -582,6 +582,19 @@ '' + won(x.used_points + x.used_credits) + "" + esc((x.methods || []).join(", ") || "–") + ""; }).join("") + "" : "") + + ((r.no_record_claims || []).length + ? '

환불 목록에 없는 취소·반품 (환불합계에 넣은 건 — 네이버페이 등)

' + + '' + + '' + + "" + + r.no_record_claims.map(function (c) { + return '"; + }).join("") + "
주문번호품목채널상태반영일상품수량뺀 금액품목 결제금액쿠폰주문 전체취소주문 배송비
' + esc(c.order_id) + "" + esc(c.item_code) + "" + esc(c.place_name || c.market_id || "–") + + "" + esc(c.status + (c.naver_pay_claim_status ? " / 네이버페이 " + c.naver_pay_claim_status : "")) + "" + esc(c.day) + + "" + esc(c.product_name) + '' + fmt(c.quantity) + '' + won(c.amount) + + '' + won(c.item_payment_amount) + '' + won(c.coupon) + "" + + (c.order_all_claimed ? "예" : "아니오") + '' + won(c.order_shipping_fee) + "
" + : "") + ((r.reduced_orders || []).length ? '

그날 결제한 주문 중 금액이 줄어든 주문 (취소·반품) — "환불 기록 없음"이 환불 API 에 안 잡힌 건

' + '' +
주문번호채널