fix: Removed quick access link from selling workspace#52802
fix: Removed quick access link from selling workspace#52802nabinhait wants to merge 1 commit intofrappe:developfrom
Conversation
📝 WalkthroughWalkthroughThe change modifies Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@erpnext/selling/workspace/selling/selling.json`:
- Line 9: The workspace JSON's content string contains incorrect
number_card_name values causing widgets to not render; update the "content"
field entry that currently uses "Sales Orders" and "Average Order Value" to the
canonical Number Card names "Sales Orders Count" and "Average Sales Order Value"
respectively (these are the values referenced by the number_card entries and
correspond to the number card docs used by the workspace; look for the JSON
object with type "number_card" and ids "43fzlS1qZg" and "0Ioq-P11FP" to make the
replacements).
| } | ||
| ], | ||
| "content": "[{\"id\":\"vBSf8Vi9U8\",\"type\":\"chart\",\"data\":{\"chart_name\":\"Sales Order Trends\",\"col\":12}},{\"id\":\"aW2i5R5GRP\",\"type\":\"spacer\",\"data\":{\"col\":12}},{\"id\":\"43fzlS1qZg\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Sales Orders\",\"col\":4}},{\"id\":\"jhtxl-XOGi\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Total Sales Amount\",\"col\":4}},{\"id\":\"0Ioq-P11FP\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Average Order Value\",\"col\":4}},{\"id\":\"1it3dCOnm6\",\"type\":\"header\",\"data\":{\"text\":\"<span class=\\\"h4\\\"><b>Quick Access</b></span>\",\"col\":12}},{\"id\":\"0BcePLg0g1\",\"type\":\"header\",\"data\":{\"text\":\"<span class=\\\"h4\\\"><b>Reports & Masters</b></span>\",\"col\":12}},{\"id\":\"uze5dJ1ipL\",\"type\":\"card\",\"data\":{\"card_name\":\"Selling\",\"col\":4}},{\"id\":\"3j2fYwMAkq\",\"type\":\"card\",\"data\":{\"card_name\":\"Point of Sale\",\"col\":4}},{\"id\":\"xImm8NepFt\",\"type\":\"card\",\"data\":{\"card_name\":\"Items and Pricing\",\"col\":4}},{\"id\":\"6MjIe7KCQo\",\"type\":\"card\",\"data\":{\"card_name\":\"Settings\",\"col\":4}},{\"id\":\"lBu2EKgmJF\",\"type\":\"card\",\"data\":{\"card_name\":\"Key Reports\",\"col\":4}},{\"id\":\"1ARHrjg4kI\",\"type\":\"card\",\"data\":{\"card_name\":\"Other Reports\",\"col\":4}}]", | ||
| "content": "[{\"id\":\"vBSf8Vi9U8\",\"type\":\"chart\",\"data\":{\"chart_name\":\"Sales Order Trends\",\"col\":12}},{\"id\":\"aW2i5R5GRP\",\"type\":\"spacer\",\"data\":{\"col\":12}},{\"id\":\"43fzlS1qZg\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Sales Orders\",\"col\":4}},{\"id\":\"jhtxl-XOGi\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Total Sales Amount\",\"col\":4}},{\"id\":\"0Ioq-P11FP\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Average Order Value\",\"col\":4}},{\"id\":\"0BcePLg0g1\",\"type\":\"header\",\"data\":{\"text\":\"<span class=\\\"h4\\\"><b>Reports & Masters</b></span>\",\"col\":12}},{\"id\":\"uze5dJ1ipL\",\"type\":\"card\",\"data\":{\"card_name\":\"Selling\",\"col\":4}},{\"id\":\"3j2fYwMAkq\",\"type\":\"card\",\"data\":{\"card_name\":\"Point of Sale\",\"col\":4}},{\"id\":\"xImm8NepFt\",\"type\":\"card\",\"data\":{\"card_name\":\"Items and Pricing\",\"col\":4}},{\"id\":\"6MjIe7KCQo\",\"type\":\"card\",\"data\":{\"card_name\":\"Settings\",\"col\":4}},{\"id\":\"lBu2EKgmJF\",\"type\":\"card\",\"data\":{\"card_name\":\"Key Reports\",\"col\":4}},{\"id\":\"1ARHrjg4kI\",\"type\":\"card\",\"data\":{\"card_name\":\"Other Reports\",\"col\":4}}]", |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Search for Number Card fixtures and definitions
echo "=== Searching for Number Card DocType files ==="
find . -type f -name "*number_card*" | head -20
echo -e "\n=== Searching for 'Sales Orders' references in JSON files ==="
rg -n "Sales Orders" --type json | grep -i "number_card\|content" | head -20
echo -e "\n=== Searching for 'Average Order Value' references in JSON files ==="
rg -n "Average Order Value" --type json | head -20
echo -e "\n=== Searching for 'Sales Orders Count' references ==="
rg -n "Sales Orders Count" --type json | head -20
echo -e "\n=== Searching for 'Average Sales Order Value' references ==="
rg -n "Average Sales Order Value" --type json | head -20Repository: frappe/erpnext
Length of output: 6339
🏁 Script executed:
#!/bin/bash
# Look for Number Card fixture files in the standard ERPNext location
echo "=== Looking for number_card fixture files ==="
find . -path "*/fixtures/*number_card*" -o -path "*/doctype/*number_card*" | head -30
echo -e "\n=== Checking selling workspace for the exact structure ==="
cat -n erpnext/selling/workspace/selling/selling.json | sed -n '629,642p'Repository: frappe/erpnext
Length of output: 546
🏁 Script executed:
#!/bin/bash
# Search for any Number Card definitions or fixtures that might define the canonical names
echo "=== Searching for Number Card doctype definitions ==="
fd "number_card" --type d
echo -e "\n=== Looking for JSON files that define Number Cards ==="
rg -l "doctype.*number.card\|number.*card.*doctype" --type json | head -10Repository: frappe/erpnext
Length of output: 436
Fix number_card_name values in the content field — widgets will not render with incorrect references.
The content field on line 9 references two number cards that do not exist in the codebase:
content field |
Actual DocType name | Status |
|---|---|---|
"Sales Orders" |
"Sales Orders Count" |
✗ Not found |
"Average Order Value" |
"Average Sales Order Value" |
✗ Not found |
"Total Sales Amount" |
"Total Sales Amount" |
✓ Correct |
The canonical Number Card DocType records are Sales Orders Count and Average Sales Order Value (confirmed in erpnext/selling/number_card/sales_orders_count/ and erpnext/selling/number_card/average_sales_order_value/). The number_cards child table correctly references these names, but the content field—which actually renders the workspace widgets—uses wrong names. This will cause two widgets to silently fail to display.
Update line 9 to reference "Sales Orders Count" and "Average Sales Order Value" instead.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@erpnext/selling/workspace/selling/selling.json` at line 9, The workspace
JSON's content string contains incorrect number_card_name values causing widgets
to not render; update the "content" field entry that currently uses "Sales
Orders" and "Average Order Value" to the canonical Number Card names "Sales
Orders Count" and "Average Sales Order Value" respectively (these are the values
referenced by the number_card entries and correspond to the number card docs
used by the workspace; look for the JSON object with type "number_card" and ids
"43fzlS1qZg" and "0Ioq-P11FP" to make the replacements).
|
This pull request has been automatically marked as inactive because it has not had recent activity. It will be closed within 3 days if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing. |
No description provided.