Provides branded, printable receipt building for Orchard Core Commerce. Covers IReceiptService, IReceiptHtmlRenderer, receipt settings, and document templates for transactions, orders, and point of sale.
Ships in crestapps-orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Receipts turns purchase data a module already holds into a branded, printable document. It stores nothing: the consumer's ledger stays the source of truth and the receipt is built on demand. Transactions (payment receipts and invoices), Orders (invoices and packing slips) and Point of Sale use it.
Related skills: orchardcore-business-documents (the document model, templates, renderers and number series receipts print with), orchardcore-transactions (printable payment requests and receipts, the Send Payment Receipts feature and the Financial.Receipt number series), orchardcore-invoicing (real invoices and credit notes), orchardcore-orders, orchardcore-commerce (store setup step that fills the store details).
| Feature ID | Name | Depends on |
|---|---|---|
CrestApps.OrchardCore.Receipts | Receipts | Business Documents (CrestApps.OrchardCore.BusinessDocuments) |
ReceiptsConstants.Feature.Area; settings group receipts (ReceiptsConstants.SettingsGroupId). Subscriptions depends on it. Install CrestApps.OrchardCore.Receipts in the web project; a module that only builds receipts references CrestApps.OrchardCore.Receipts.Abstractions (no commerce dependencies).
{
"steps": [
{
"name": "Feature",
"enable": [ "CrestApps.OrchardCore.Receipts" ],
"disable": []
}
]
}
CrestApps.OrchardCore.Receipts.Abstractions: IReceiptService, IReceiptHtmlRenderer (namespace CrestApps.OrchardCore.Receipts) and ReceiptRequest, ReceiptDocument, ReceiptLineItem, ReceiptTaxLine, ReceiptStatus (namespace CrestApps.OrchardCore.Receipts.Models).CrestApps.OrchardCore.Receipts.Core: DefaultReceiptService, ReceiptSettings, ReceiptsPermissions, ReceiptsConstants (BusinessDocumentKind = Receipt) and ReceiptBusinessDocumentMapper.CrestApps.OrchardCore.Receipts: settings driver, admin menu, permission provider, DefaultReceiptHtmlRenderer, and Views/ReceiptDocument.cshtml.using CrestApps.OrchardCore.Receipts;
using CrestApps.OrchardCore.Receipts.Models;
using Microsoft.AspNetCore.Mvc;
namespace Contoso.Registrations.Controllers;
public sealed class RegistrationReceiptController : Controller
{
private readonly IReceiptService _receiptService;
public RegistrationReceiptController(IReceiptService receiptService)
{
_receiptService = receiptService;
}
[HttpGet("registrations/{id}/receipt")]
public async Task<IActionResult> Receipt(string id)
{
// Load your own record and check its owner first.
var document = await _receiptService.BuildAsync(new ReceiptRequest
{
BilledToName = "Ada Lovelace",
BilledToEmail = "[email protected]",
Reference = "REG-1024",
SourceLabel = "Registration",
IssuedAt = DateTime.Today,
Currency = "USD",
LineItems =
[
new ReceiptLineItem { Description = "Season fee", Quantity = 1, UnitAmount = 100m, Amount = 100m },
],
TaxLines =
[
new ReceiptTaxLine { Description = "HST", Amount = 13m },
],
TaxAmount = 13m,
Total = 113m,
Status = ReceiptStatus.Paid,
IsTest = false,
});
return View(document);
}
}
BuildAsync returns a ValueTask<ReceiptDocument>: the request merged with the branding (HeaderTitle, BusinessName falling back to the site name, LogoUrl, BusinessAddress, ContactEmail, ContactPhone, Website, FooterText, ShowTestBadge) and a computed Subtotal (Total - TaxAmount). ReceiptStatus is Paid, Pending, Failed or Due (an invoice not yet paid). IsTest comes from the gateway mode (GatewayMode.Testing) and shows the test badge when the setting allows.
Render the shared layout from your own view with a full-path partial (module views compile under ~/Areas/{ModuleId}/Views):
@using CrestApps.OrchardCore.Receipts.Models
@model ReceiptDocument
<partial name="~/Areas/CrestApps.OrchardCore.Receipts/Views/ReceiptDocument.cshtml" model="Model" />
Printing outputs only the receipt; the print stylesheet hides the site header and admin menu. For an email body, resolve IReceiptHtmlRenderer and call await RenderAsync(document): tables with inline styles, safe for mail clients. Resolve both as optional (GetService<IReceiptService>()) when Receipts is not a hard dependency.
Receipts are business documents of the Receipt kind (see orchardcore-business-documents). ReceiptBusinessDocumentMapper.Map(receipt) turns a ReceiptDocument into a BusinessDocument: the issuer with its address lines, contact details and website, the Billed to party, the reference (titled with SourceLabel), the date and the ISO Currency code as fields, a Description / Qty / Amount table, the subtotal, tax lines (muted) and the total (Total paid when paid), the notes as a section, the footer, a status badge (Paid success, Failed danger, Due warning, otherwise Pending), and a Test payment watermark for a test payment when the badge is on. Amounts are written with IMoneyFormatter (for example $108.00).
ReceiptDocument.cshtml partial maps the receipt, applies the receipt document template and renders the shared BusinessDocument shape. A theme restyles receipts alone with BusinessDocument-Receipt.cshtml.IReceiptHtmlRenderer.RenderAsync renders through IBusinessDocumentHtmlRenderer with the template applied. The synchronous Render is [Obsolete]: it skips the template and cannot work with an asynchronous renderer. A custom renderer that only implements Render still works through the default interface method.IBusinessDocumentPdfRenderer (Business Documents PDF feature).var document = await _receiptService.BuildAsync(request);
var businessDocument = _mapper.Map(document); // ReceiptBusinessDocumentMapper
await _templates.ApplyAsync(businessDocument); // IBusinessDocumentTemplateManager
var pdfRenderer = _serviceProvider.GetService<IBusinessDocumentPdfRenderer>();
var pdf = pdfRenderer is null ? null : await pdfRenderer.RenderAsync(businessDocument);
Settings > Commerce > Receipts, permission ManageReceiptSettings (registered for the receipts group, so a role with only that permission can open it). Stored as ReceiptSettings:
{
"steps": [
{
"name": "Settings",
"ReceiptSettings": {
"HeaderTitle": "Payment receipt",
"BusinessName": "Contoso Club",
"LogoUrl": "/media/logo.png",
"BusinessAddress": "100 King Street West, Toronto ON M5X 1C7",
"ContactEmail": "[email protected]",
"ContactPhone": "+1 416 555 0100",
"Website": "https://contoso.example",
"FooterText": "Thank you for your payment.",
"ShowTestPaymentBadge": true
}
}
]
}
Empty HeaderTitle prints Payment receipt. Empty BusinessName, LogoUrl, BusinessAddress, ContactEmail and ContactPhone fall back to the Store Profile (StoreProfileSettings, see orchardcore-commerce; the address on one line as its country writes it), then the site name for the business name. The fallback reads the settings directly, so it works whether or not the Store Profile feature is on. The store setup guide fills these from the store details step.
PaymentRequest business document) per transaction whenever Receipts is on; Send Payment Receipts (CrestApps.OrchardCore.Transactions.Receipts) emails a receipt numbered R-1001... after every payment, through the store's payment-receipt and payment-refund email templates (Settings > Commerce > Emails).Invoice and CreditNote business documents (see orchardcore-invoicing); it does not go through Receipts.ReceiptsBusinessDocumentsFeatureMigrations records Business Documents as enabled; until it is, receipts render with their own look and no template query runs (safe on PostgreSQL inside the payment transaction). Once enabled, a template that fails to apply is an error.IReceiptHtmlRenderer.Render(document) with await RenderAsync(document).ReceiptDocument.cshtml markup should move to a BusinessDocument-Receipt.cshtml theme view; the partial now renders the shared shape.IReceiptService.BuildAsync returns ValueTask<ReceiptDocument>; ReceiptStatus.Due and IReceiptHtmlRenderer were added for invoices and emails.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
orchard-core, receipts, invoicing, commerce, business-documents
/crestapps-orchardcore:orchardcore-receiptsfrom crestapps-orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-orchardcore137 skills in this plugin
/orchardcore-accountsSkill for the CrestApps Orchard Core Accounts module (CrestApps.OrchardCore.Accounts) with its Account Members, Account Team, Account E-mail Domains and Account Locations features. Covers the Account type and AccountPart, the account picker and search, IAccountChildTypeRule, account page sections (AccountPageTabs, AddPageSection, Notes), members and IAccountMemberService, account invitations, the account owner and team picked from staff, e-mail domains, locations with a billing location, the account's billing profile and party members, the Accounts recipe and deployment steps, and the admin menu. Use this skill when requests mention accounts, the businesses or households records belong to, an account page tab, members, invitations, owners, domains or locations. Strong matches include AccountPart, AccountPageTabs, IAccountMemberService, IAccountInvitationService, AccountInvitation, AccountTeamPart, AccountEmailDomainsPart, IAccountEmailDomains, AccountLocationsPart and ManageAccountMembers./orchardcore-accounts-b2bSkill for the CrestApps Orchard Core Accounts B2B module (CrestApps.OrchardCore.Accounts.B2B), business selling on an Account content item. Covers B2BAccountPart and B2BAccount, buyers as account members and ship-to addresses as account locations, terms (deposit, net days, credit limit) through the account-terms tender billed to the account, the account's billing profile, purchase order numbers, quotes, price lists through IBuyerPriceProvider, order limits, approvals and budgets, OCI punchout, the account/business page and API, the PriceLists recipe and deployment steps, the B2BAccounts report source, and the move from the removed Companies module. Use this skill when requests mention B2B, wholesale or business buyers, net terms, purchase orders, price lists, order approvals or punchout. Strong matches include B2BAccountPart, B2BAccount, AccountTerms, AccountTermsTenderProvider, B2BAccountBillingProfileSource, IB2BAccountStore, PriceList, B2BPriceProvider, B2BApprovalService and ManageB2BAccounts.Other plugins' skills for the same job