Patterns for advanced product pricing logic, rentability calculations, and reactive price management in Vendix. Trigger: When editing product schemas, pricing logic, or advanced product forms.
apps/backend/prisma/schema.prisma.apps/backend/src/domains/store/products/products.service.ts.apps/frontend/src/app/private/modules/store/products/.Products:
base_price: listing price before taxes.cost_price: acquisition/manufacturing cost.profit_margin: target margin percentage.is_on_sale: sale flag.sale_price: promotional price.Product variants:
price_override: variant-specific listing price override.cost_price: variant cost.profit_margin: variant margin.is_on_sale: variant sale flag.sale_price: variant promotional price.Do not document or add product_variants.base_price; variants use price_override.
base_price = cost_price * (1 + profit_margin / 100).profit_margin = ((base_price - cost_price) / cost_price) * 100 when cost is positive.is_on_sale and must be less than the regular/base price.product_tax_assignments / tax categories.final_price; this is not persisted for products.emitEvent: false where needed).vendix-currency-formatting patterns.final_price.final_price in read responses from sale/base price plus assigned tax rates.vendix-calculated-pricingvendix-currency-formattingvendix-angular-formsvendix-prisma-schemanpx skills add Rzyfront/vendix-product-pricing下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer