πŸ’΅ Refund OGP Credit to Customer
1
What is OGP Refund?
β€Ί
2
View OGP Details
β€Ί
3
Enter Refund Amount
β€Ί
4
OTP Verification
β€Ί
5
Refund Confirmed
πŸ’΅ What is OGP Cash Refund?
When a customer has an OGP credit balance (from selling old gold to the shop) but decides they want some or all of it back as cash rather than using it to buy new jewellery, the shop can issue a partial cash refund β€” subject to admin-configured limits.
πŸ”‘
Important: OGP Cash Refund is a separate optional feature. The administrator must enable it with ogp_cash_refund = Y. If it is disabled, the refund form is locked and no refund can be issued β€” the customer must use their OGP credit for a purchase.
πŸ›οΈ
Normal OGP Use
Customer uses OGP credit as payment when buying new jewellery. The shop is happy β€” no cash leaves.
βœ… Always available β€” no admin setting needed
πŸ’΅
OGP Cash Refund
Customer wants cash back instead of using OGP for a purchase. Cash is paid out, capped by admin limits.
βš™οΈ Requires admin to enable + set cap
Admin Controls the Refund Cap
βš™οΈ
The administrator sets a maximum refund cap in two ways:
Fixed Amount Cap
e.g. Rs. 5,000 maximum cash refund regardless of OGP total
Percentage Cap
e.g. max 20% of the OGP total can be refunded as cash

Try different cap settings to see how the maximum refund is calculated:

OGP Total
Rs. 48,500
Max Refund Allowed
Rs. 9,700
πŸ“‹ Step 2: Review the OGP Record
This screen is accessed by opening a specific OGP receipt. It shows the original gold purchase details, how much has already been used as setoff in invoices, and how much is still available β€” before any refund is entered.
OG-A00042
⚑ Partially Used
Customer
SUNIL PERERA
Mobile
0771234567
Date
β€”
Total Weight
9.60g
OGP Total
Rs. 48,500.00
Available Balance
Rs. 33,500.00
Gold Items Received
CategoryGold TypeWeight (g)Amount (Rs.)Description
Ring22K5.4028,500.00LADIES GOLD RING WITH STONE
Bangle22K4.2020,000.00BROKEN BANGLE
Total48,500.00
Setoff History β€” How OGP Was Used
USED IN INVOICES
Invoice GSA00198
Stock Invoice β€” OGP setoff
Rs. 15,000.00
β€”
Total Used as SetoffRs. 15,000.00
OGP Balance Breakdown
Rs. 0Rs. 48,500
Used in Invoices: Rs. 15,000
Available for Refund: Rs. 33,500
πŸ’‘
The refund can only be applied against the remaining available balance β€” the OGP total minus any amounts already used in invoices. In this example, Rs. 48,500 βˆ’ Rs. 15,000 = Rs. 33,500 available.
πŸ’΅ Step 3: Enter Refund Amount
Enter how much cash to refund the customer. The amount is subject to two checks β€” it cannot exceed the available OGP balance, and it cannot exceed the admin-set refund cap.
OGP TOTAL
Rs. 48,500
USED IN INVOICES
Rs. 15,000
AVAILABLE BALANCE
Rs. 33,500
MAX REFUND CAP
Rs. 9,700
Set in Admin Panel per branch
Cannot exceed cap or available balance
⚠️
Two rules apply simultaneously. The refund must be both:
≀ Available Balance
Cannot refund more than what's left
≀ Admin Refund Cap
Cannot exceed the configured limit
βš™οΈ
If ogp_cash_refund = N, the refund input is disabled and locked. The customer cannot get a cash refund at all from this branch and must use the OGP credit to purchase new jewellery.
πŸ” Step 4: OTP Verification
Before the cash refund is processed, a one-time password is sent to the customer's phone to confirm they authorise the refund. This protects against fraudulent refund requests.
πŸ“±
The OTP is sent to both the customer's phone and a backup admin number. If the customer didn't receive the SMS, click Resend to Admin β€” the admin's phone has a copy of the same OTP and can relay it verbally.
πŸ“±

OTP Verification β€” Cash Refund

A 4-digit OTP has been sent to 077****567.
Ask the customer to share the code they received.
OTP expires in 5:00
βš™οΈ
If the administrator has disabled OTP verification for refunds, this step is skipped and the refund is processed immediately after you click Proceed in the previous step.
⏱️
OTP expires in 5 minutes. If it expires, re-submit the refund form to generate a new OTP. The system also prevents duplicate submission using a token β€” even if the form is submitted twice by accident, only one refund is recorded.
βœ… Cash Refund Processed!
The refund is saved. The cash is paid to the customer, and the OGP balance is reduced by the refund amount. A refund receipt is generated and an SMS confirmation is sent.

πŸ“± Customer SMS Confirmation

πŸ“±
If SMS is enabled, the customer receives:

"Dear Customer, Your OGP refund of Rs. X for OGP No: OG-A00042 has been processed…"
πŸ“Š
How the refund is recorded: The refund is saved as a negative amount in the payment records with type OGP-REFUND, linked to the original OGP No. This means the remaining OGP balance is automatically reduced, and the full audit trail is maintained across all transactions.
πŸ’°
Remaining OGP balance after refund is still usable as setoff in future invoices β€” the refund only reduces the balance, it doesn't close the OGP entirely unless the full amount is refunded.
Voice Guide
Press Play to hear an explanation of this step.
Refund Summary
OGP NoOG-A00042
CustomerSUNIL PERERA
OGP TotalRs. 48,500
Used in InvoicesRs. 15,000
Available BalanceRs. 33,500
Refund CapRs. 9,700
Refund Amountβ€”
After Refund Balanceβ€”
Refund Noβ€”
Key Rules
β€’ Admin must enable cash refund
β€’ Cannot exceed available balance
β€’ Cannot exceed refund cap (fixed or %)
β€’ OTP required (if enabled)
β€’ Saved as OGP-REFUND negative
β€’ Remaining balance still usable
Quick Tips
β€’ Check refund cap before entering
β€’ OTP valid 5 minutes only
β€’ Use Resend to Admin if needed
β€’ Print receipt for customer
β€’ Remaining OGP still usable