To extract receipt totals offline on a Mac, give a downloaded model a small set of readable receipts and ask for the paid or refunded amount, currency, transaction date, and supporting source line for each. Check those lines on the receipts before combining entries, especially where a document lists a subtotal, a balance, or a refund.
Prepare the source files and decide what to record
Collect the receipts for the batch in one local folder. Use working copies with distinct names. Record which files you expect to account for and keep the originals available for review. Start with a few receipts from different merchants so you can see how the model handles different labels. A card payment, a refund, and an estimate have different meanings even when their amounts appear in a similar place on the page.
Use a short set of fields for each transaction. Record the merchant, receipt or transaction ID, transaction date, the currency as printed or explicitly supported, the amount, the kind of transaction, and the source page or filename. Keep an optional field for a field-level question. If you want the original purchase and its refund linked in your ledger, record the original ID where the refund receipt supplies it. Preserve both records when both are part of the batch.
Read the receipt before attaching it. Many receipts place the transaction date in a header and print a timestamp beside a reprint or processing note lower down. Look for the line that describes the transaction. With a PDF, try selecting the amount and its label in Preview. For an image-only PDF, make a searchable working copy and check the typed result against the visible receipt. Pale decimal points and similar characters are worth checking at higher zoom. Apple’s guide to selecting PDF text in Preview · Make a scanned PDF searchable on Mac
Write down the amount standard before you begin. This guide records an amount when the source explicitly says it was paid or refunded. It keeps a subtotal or tax line as supporting context. An estimate or invoice marked due can stay in a review list until you have the appropriate payment evidence. A dollar symbol alone could refer to multiple currencies. Preserve what the document says and leave the currency open when supporting information is missing.
Rehearse with three fictional receipts
Use TextEdit to create the three short files below. Choose Format > Make Plain Text before saving. The examples give you two currencies, two different amount labels, and a refund tied to an earlier purchase. The source lines are the answer key. Keep these files available while you review the model’s output. Apple’s TextEdit file format guide
Save the purchase as north-r117.txt.
North Case Supply | Receipt R-117
Transaction date: 2027-02-08
Subtotal: USD 18.00
Tax: USD 1.44
Amount paid: USD 19.44
Save the second purchase as aster-s211.txt.
Aster Studio | Receipt S-211
Transaction date: 2027-02-09
Subtotal: CAD 32.00
Tax: CAD 4.16
Card payment received: CAD 36.16
Save the refund as north-r117a.txt.
North Case Supply | Refund R-117-A
Refund date: 2027-02-10
Original receipt: R-117
Amount refunded: USD 6.48
The three expected movements are a USD 19.44 purchase, a CAD 36.16 purchase, and a USD 6.48 refund. The refund happened two days after the original purchase. In a view that signs purchases as positive and refunds as negative, the signed USD total would be 12.96. CAD stays at 36.16. The receipt itself prints USD 6.48 as the refund amount. Keep that original value and the transaction type visible before applying a sign in a separate column.
Ask the local model for evidence with each row
Open LM Studio and finish downloading a compatible model before disconnecting from the network. Start a fresh conversation and attach the three examples. Confirm their filenames before sending the prompt. To test the entire workflow offline, disconnect before attaching the files. LM Studio documents use of downloaded models and document processing without network access. LM Studio offline operation · LM Studio document attachments
Start with a review table, where you can keep quotes and tentatively unresolved fields close to the values. Ask for one entry per actual transaction and a separate review note for ambiguous evidence. The prompt below also keeps the receipt’s printed amount separate from how you might represent it in a spreadsheet.
Read north-r117.txt, aster-s211.txt, and north-r117a.txt.
Use one row for each paid or refunded transaction.
Include merchant, transaction ID, date, currency, printed amount,
transaction kind, printed original receipt ID when present,
and filename plus the exact line supporting the amount.
Return paid or refunded as the kind. Keep the printed amount as shown.
Leave unsupported dates, currencies, or identifiers blank.
Never substitute a subtotal or a balance due for the amount paid.
For the practice batch, check that all three source filenames appear. The first row should preserve the date February 8 and the amount 19.44, and the refund should carry the later date and its own ID. Compare the currency and the amount together. The second row should show CAD even if the model uses a dollar symbol elsewhere. Check the supporting line of every row. A brace, quote, or well-formatted table can make an answer look complete while its content comes from the wrong field.
For a second check, copy one receipt into a different file and attach both copies without changing the document text. Verify that the review recognizes two files as evidence for one transaction. Ask it to retain both filenames in a duplicate review note. With real receipts, use more than the amount as the match. Two customers can pay the same amount at the same merchant on the same day. Compare the source’s transaction ID, merchant, and other distinguishing evidence before resolving a duplicate.
Check transaction identifiers in the original files when statements use two different naming systems. An order number identifies the order. A transaction number or refund reference can identify an individual movement attached to that order. If both appear, keep them in separate fields and use the movement reference when checking for a duplicate. Retain an association with the order where it is visible. This becomes useful when a merchant takes two payments against one order or issues more than one refund.
Compare the extracted amount with the printed line
Read the amount in context. A receipt for a cash payment can list the total, the cash tendered, and the change. The amount collected for the sale can differ from the bill handed to the cashier. A receipt for card payment can show both a total and an available balance on a stored-value card. Use the line that actually describes the transaction you are logging. If a receipt reports multiple payment methods, decide whether the output needs one purchase row or a separate receipt-supported breakdown. Carry those amounts with their method context.
Keep the currency next to the amount in your review sheet. When one line of a source explicitly names the currency for the whole receipt, record that evidence alongside the relevant amount line. If the printed record leaves the currency ambiguous, ask for the payment confirmation or another source tied to the exact transaction. Avoid combining different currencies in a single total unless the job supplies its own conversion rule and inputs. In the rehearsal you can confirm the two sums independently without a conversion.
For a refund, look for the amount actually returned and the reference to the purchase. A pending return request and a completed refund record belong in different review states. Where a merchant lists a restocking charge, check whether the printed refund is before or after that charge. If your output applies a minus sign, check that the source’s sign and your transformation are both recorded. A sign applied twice can make a refund appear like another purchase.
Before exporting a list for someone else, confirm the identifier in the destination. A spreadsheet may interpret a number-like code and hide leading zeros. Keep identifiers as text where the destination supports it. Preserve the unedited strings in a source note while checking the displayed cells. If you transfer the rows as CSV, open the exact exported copy and verify columns, dates, and currencies in the destination. Apple’s guide to importing delimited text in Numbers
Work through missing receipts and unclear fields
When the reply omits an entire receipt, check that it was attached and that its important text is readable. Try a fresh chat with that file alone and ask for the actual amount line. If a multi-page PDF holds several receipts, record the page span for each transaction and work through a few pages at a time. LM Studio can retrieve relevant passages from long documents. An answer about one receipt may therefore overlook another receipt in the same attachment. A simple count of expected transactions gives you a check on the model’s coverage. LM Studio’s guide to full context and retrieval
If a scan confuses the decimal or reads a faded amount incorrectly, open the source at a readable size and check the visible line. Enter the clear value manually if the visual evidence supports it. When the decimal or currency remains unclear, leave the field open and ask for a better copy. Keep the original and the revised scan recognizable so a reviewer can tell which one provided the usable value.
Keep an exceptions list when a batch includes receipts you can read and others you still need to check. A blank amount belongs in that list with its filename and the missing detail, so it cannot look like a verified zero. Include only confirmed transactions in your first subtotal and show which records are still pending. When the missing detail arrives, add the evidence and rerun the total for that currency.
Close the review by matching each transaction to a receipt and each file to either a transaction or an explanation. Recalculate the signed subtotals by currency from the verified rows. The totals help confirm the resulting list, while the original amount lines let someone inspect each transaction. If your next source is a single PDF inventory with rows and columns, write down its page and column structure before extracting it. Check readable source facts in an offline PDF chat