Skip to content
Back to skills

Create Purchase Return

ASecurity

Create purchase return (PRT) when returning defective goods to supplier

  • 666 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added February 8, 2026
businesspythongobashdatabase

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill create-purchase-return --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Create Purchase Return?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Create Purchase Return
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-create-purchase-return/badge)](https://www.skillsdirectory.com/skills/majiayu000-create-purchase-return)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: create-purchase-return
description: Create purchase return (PRT) when returning defective goods to supplier
---

# Create Purchase Return Skill

## Purpose

Creates a **Purchase Return (PRT)** record when returning defective or incorrect goods to supplier. Triggered by a **Quality Inspection Report** showing failed items.

## When to Use

- Quality inspection finds defects
- Wrong items delivered
- Damaged goods received
- Need to return to supplier

## Usage

```bash
python create-purchase-return/main.py \
  --supplier-name "NINGBO" \
  --return-date "2025-10-27" \
  --items '[{"product_name": "WIRE D1.2", "quantity": 20, "unit_price": 8.50, "reason": "Defective"}]' \
  --gr-reference "GR25100048" \
  --json
```

## Output

```json
{
  "success": true,
  "prt_number": "PRT25090002",
  "txn_id": 145,
  "supplier": "NINGBO METALWIRE PRODUCTS CO.,LTD",
  "return_date": "2025-10-27",
  "items_count": 1,
  "total_returned": 170.00,
  "gr_reference": "GR25100048"
}
```

## Document Format

- **Format**: `PRT{YY}{MM}{NNNN}`
- **Example**: `PRT25090002` = September 2025, return #2

## Business Rules

1. **Reverses Inventory**: Reduces stock levels
2. **Links to GR**: References original goods receipt
3. **Tracks Reasons**: Defective, Wrong Size, Damaged, etc.

---

**Database**: tbl_preturn_txn, tbl_preturn_item, tbl_preturn_movement
**Inventory Impact**: Yes (decreases stock)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.