Skip to content

fix: consolidated SI price list + SI->DN connection button#27

Merged
sayanthns merged 1 commit into
mainfrom
fix/dn-consolidation-pricelist-connections
Jun 27, 2026
Merged

fix: consolidated SI price list + SI->DN connection button#27
sayanthns merged 1 commit into
mainfrom
fix/dn-consolidation-pricelist-connections

Conversation

@sayanthns

Copy link
Copy Markdown
Contributor

Net-off consolidation (_build_consolidated_standard_si): (1) carry the DN selling_price_list (e.g. Inter Company Price) onto the SI — was defaulting to Retail Price; rates still set explicitly so amounts are unchanged. (2) add a 'Delivery Notes' View-button on the SI linking to source DNs via custom_consolidated_si (Connections tab can't be populated without breaking the net-off). Regression test added.

…N button

Two issues on the net-off consolidation path (_build_consolidated_standard_si): (1) the SI never set selling_price_list, so it fell back to the customer/default list (e.g. Retail Price) instead of the DN's (e.g. Inter Company Price) — now carried over; item rates stay set explicitly from netted amounts so amounts don't change. (2) Connections tab can't show the source DNs (net-off merges rows → no per-row delivery_note/si_detail mapping; setting them trips validate_multiple_billing) — added a 'Delivery Notes' button (View group) on Sales Invoice linking to DNs filtered by custom_consolidated_si. DN->SI direction already works via the DN field. Regression test for price-list carryover added.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sayanthns sayanthns merged commit 0a916a6 into main Jun 27, 2026
@sayanthns sayanthns deleted the fix/dn-consolidation-pricelist-connections branch June 27, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant