Revert "fix: set taxes and totals before validating subcontracting transaction"#3783
Revert "fix: set taxes and totals before validating subcontracting transaction"#3783
Conversation
WalkthroughThis PR reintroduces tax and totals initialization for GST subcontracting transactions by invoking Changes
Sequence DiagramsequenceDiagram
participant validate as validate()
participant igv as ignore_gst_validations<br/>_for_subcontracting check
participant txn as Transaction Name<br/>Validation
participant tax as CustomTaxController
participant sub as Subsequent GST<br/>Validations
validate->>igv: Check if should skip GST
alt Skip GST Validations
igv-->>validate: Skip tax init
else Process GST
igv-->>validate: Continue
validate->>txn: Validate transaction name
txn-->>validate: Name OK
validate->>tax: set_taxes_and_totals()<br/>(with field_map)
note over tax: Initializes tax/totals<br/>for Stock Entry or<br/>Subcontracting Order Receipt
tax-->>validate: Taxes set
validate->>sub: Run GST validations
sub-->>validate: Validations complete
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used🧠 Learnings (6)📓 Common learnings📚 Learning: 2025-06-25T08:19:02.607ZApplied to files:
📚 Learning: 2025-10-01T10:54:11.096ZApplied to files:
📚 Learning: 2025-04-25T10:12:24.584ZApplied to files:
📚 Learning: 2025-06-25T08:16:18.010ZApplied to files:
📚 Learning: 2025-05-29T15:22:04.761ZApplied to files:
🧬 Code graph analysis (1)india_compliance/gst_india/overrides/subcontracting_transaction.py (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (4)
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 |
Reverts #3782
Summary by CodeRabbit