Skip to main content

Propose refunds

This page is for accounts receivable staff who pay customers their Earmark credit by cheque, and for the accounting manager who sets it up. Propose refunds finds approved claim credits whose customer has asked to be paid out, and writes one unposted customer payment journal per customer, each line marked to settle its credit. Earmark never posts these journals: Accounts receivable reviews and posts them in the standard way.

Runs: on demand, or as a batch job you schedule. Nothing runs it for you. Set up by: Accounting manager (the refund parameters). Watched by: Accounts receivable clerk (runs it and reads its messages), Accounts receivable staff who post customer payments.

Why it exists​

Most customers take their Earmark credit by settling it against their next invoices. Some ask to be paid. Without this task, someone would build a customer payment journal by hand for each of them: find every open Earmark credit that customer asked to be refunded, net any Earmark charge-backs they owe, mark each credit for settlement, and make sure no credit goes on two cheques. Propose refunds does that preparation, and leaves the decision to pay with Accounts receivable, where payment controls already sit.

When it runs​

TriggerWhereWho
Run nowEarmark > Periodic tasks > Propose refundsAccounts receivable clerk (Record Earmark settlement preferences and propose refunds)
ScheduledThe same dialog, Run in the background tab: set Batch processing and a RecurrenceThe same role

The batch class is MGCEarmarkRefundProposalController. Scheduled runs appear on System administration > Inquiries > Batch jobs, and the job runs in the company where it was created.

Recurrence. Earmark recommends none. Match it to your cheque run: a proposal that sits unposted holds its credits out of later runs until it is posted or deleted, so running it more often than you post only adds journals. A scheduled job keeps the values saved with it, including Proposal date (it is one of the job's saved parameters, and the run never resets it), so every recurrence stamps that same date on its lines, and takes exchange rates for it, until you change the job.

Settings​

SettingWhereDefaultEffect
Invoice accountDialogBlankOne invoice account only. Blank proposes for every customer with a qualifying credit.
Proposal dateDialogTodayThe date on every proposed line, and the date the exchange rate is taken for.
Journal nameDialogRefund proposal journal nameThe customer payment journal name the journals are created under. It must exist and be a customer payment journal name; the dialog refuses a blank name or one of another type.
Method of paymentDialogRefund proposal method of paymentStamped on every line. Required: there is no default method, and the dialog refuses a blank one.
Net charge-backs in refund proposalDialogThe parameter of the same nameSet, the customer's open Earmark charge-backs go into the same journal, each as a line of its own. The credit lines are not reduced: payments are generated line by line, and standard cheque generation refuses a line with a negative amount, so the cheque does not equal the netted balance. If you pay by cheque, settle the charge-back against the credit in Accounts receivable first, so the proposal carries one net line.
Refund proposal journal nameEarmark > Setup > Earmark parameters, Claim settlement tabBlankThe dialog's default journal name.
Refund proposal method of paymentClaim settlement tabBlankThe dialog's default method of payment.
Net charge-backs in refund proposalClaim settlement tabSetThe dialog's default for netting.
The customer's settlement preferenceClaim page, Lines FastTab > Record settlement preferenceNoneOnly a line whose current preference is Refund by cheque is proposed.

The journal name's own settings still apply: its offset account (a bank account there is copied to every line), its voucher series and its controls.

What it does​

  1. If the customer module is off, it reports "No refund proposals were created because the Earmark customer module is switched off. …" and stops.
  2. If no method of payment was given, it reports "No refund proposal was made because no method of payment was given. Nothing was written. …" and stops.
  3. It finds every invoice account (or the one you named) with an Approved claim that has a line whose credit has posted.
  4. For each customer, it collects the refundable lines: the current settlement preference is Refund by cheque, the line is not already on a live proposal, its credit still has an open amount, and that open amount is not already marked for settlement anywhere else.
  5. A customer with no refundable line is skipped without a message.
  6. With netting on, it also collects the customer's open Earmark charge-backs (approved claim lines that debited the customer) that are not on a live proposal and not marked elsewhere. Ordinary unpaid invoices are never netted.
  7. If credits minus charge-backs is zero or less, the customer is skipped with "Customer <account> was skipped: credits of <x> net against charge-backs of <y> leave <z>, which is not a positive amount. …".
  8. Before writing the first journal, it checks the journal name once. An unknown name, or one that is not a customer payment journal name, stops the whole run.
  9. For each customer with a positive net, in one transaction, it creates a journal described "Earmark claim refund - <account> - <date>" and writes one line per credit and per charge-back:
    • the customer account, with a bank offset;
    • the claim currency, and its exchange rate on the proposal date (looked up first; a missing rate fails this customer);
    • a voucher from the journal name's series (one per line, or one shared voucher when the journal name is set to one voucher only);
    • a debit for a refund, a credit for a charge-back;
    • the method of payment, settlement set to selected transactions, and the line approved;
    • the claim reference as the line text.
  10. Each line is marked against its credit's (or charge-back's) open transactions, and Earmark records the line against the claim line as a Refund proposal, state Proposed.
  11. If anything fails for a customer, that customer's journal is rolled back whole, the error names the customer and the cause, and the run goes on to the next customer.
  12. It ends with "Refund proposal complete: <n> customer payment journals proposed, <n> customers skipped, in journal name <name>. …", or the same summary with the number that failed.

Before it can run​

  • The customer module is on.
  • A customer payment journal name exists for refunds, ideally with a bank account as its offset, and is set as Refund proposal journal name or typed on the dialog (Set the refund settings).
  • A method of payment that produces the payment you want (for example a cheque) is set as Refund proposal method of payment or chosen on the dialog.
  • Customers' settlement preferences are recorded (Claims, statements and settlement, section Record a customer's settlement preference).
  • The claims are Approved and their approval credits have posted (Approval workflows).
  • An exchange rate exists on the proposal date for every claim currency that is not the company's.

What goes in and what comes out​

InOut
Approved claim lines with a posted credit and the Refund by cheque preferenceOne unposted customer payment journal per customer, one line per credit
Open Earmark charge-backs on the same customers (with netting on)A separate credit line per charge-back, in the same journal (it does not reduce the refund line itself)
The open amounts on the customer transactionsSettlement marks on those open transactions
A Refund proposal reference on each claim line, shown in the claim's Related journals and vouchers FactBox
Infolog lines: one per skipped or failed customer and a summary

Nothing posts. Nothing is written to the timeline, to the Earmark execution exceptions workbench or as a business event.

Watching it​

  • The run's messages: the infolog when you run it, or the batch job's log on System administration > Inquiries > Batch jobs. This is the only place skips and failures are named; there is no separate list of skipped customers.
  • The journals: Accounts receivable > Payments > Customer payment journal, under the journal name you used. Each one's description names the customer and the proposal date.
  • The claim line: the Related journals and vouchers FactBox on the Claim page lists the refund proposal beside the line's other journals, and Remaining falls to zero once the refund posts and settles.
  • The credit itself: Claim credit available by customer and the Awaiting settlement tile read the customer transactions live, so a posted refund shows at once.

When it fails​

What you seeKindWhat to do
"…the Earmark customer module is switched off. …"VerdictNothing to fix unless the module should be on.
"No refund proposal was made because no method of payment was given. …"Verdict; nothing writtenSet Refund proposal method of payment, or choose one on the dialog.
An error about the journal name: missing, unknown, or "…because it is a <type> journal, not a customer payment journal. …"Configuration; the run stops before writing anythingSet or correct the journal name, then run again.
"Customer <account> was skipped: credits of … leave <z>, which is not a positive amount. …"VerdictNothing is owed net. Clear netting on the dialog if you want gross refunds.
"Customer <account> was not proposed a refund because building their proposal failed, …" with the cause (often a missing exchange rate)Failure for that customer only; nothing written for themFix the cause and run Propose refunds again. Their credits are still open.
A customer you expected is missing, with no messageNot eligibleCheck the line's current preference, that its credit posted, that it still has an open amount, and that it is not on another proposal or marked in another journal.

Re-running is safe. A credit on a live proposal, or already marked for settlement, is never proposed again, and a failed customer has nothing written, so the next run simply tries them again. The batch job is set to be retried by the batch framework.

Effects on the rest of Earmark​

  • When AR posts the journal, the refund settles the credit (and any charge-back) through the marks, Earmark moves the claim line's refund reference to Posted, and the line's Remaining reaches zero. The claim stays Approved.
  • When AR deletes the journal (or a line), the credit is no longer on a live proposal, and the next run proposes it again.
  • Claim statements count a settlement of a credit whose current preference is Refund by cheque as paid by cheque in the period's summary, so a posted refund lands there (Claim statement).
  • Reversing a claim needs its settled credit unsettled first, in standard AR; that includes a credit settled by a posted refund (Reverse a claim).
  • Vendors are not covered. A vendor claim's credit goes to Accounts payable as a proposal (Vendor settlement run).