feat: add AI code review documentation, demonstration project, and update guidelines
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# CLAUDE.md
|
||||
|
||||
## Business rules — Order
|
||||
- KHÔNG được cancel order đã ở trạng thái `shipped` hoặc `delivered`.
|
||||
Phải kiểm tra `order.status` trước; nếu đã shipped thì throw lỗi.
|
||||
- Refund (hoàn tiền) xử lý async qua queue, không inline trong hàm cancel.
|
||||
|
||||
## Conventions
|
||||
- Format tiền tệ: LUÔN dùng `formatCurrency()` ở `src/lib/format.js`.
|
||||
KHÔNG tự viết hàm format tiền mới.
|
||||
- Số tiền lưu dưới dạng VND nguyên (integer).
|
||||
Reference in New Issue
Block a user