Skip to content

feat(Simple Subscription): optionally add additional customer info - #10

Merged
barredterra merged 7 commits into
version-16from
additional-customer-info
Sep 8, 2026
Merged

feat(Simple Subscription): optionally add additional customer info#10
barredterra merged 7 commits into
version-16from
additional-customer-info

Conversation

@HenningWendtland

@HenningWendtland HenningWendtland commented Sep 7, 2026

Copy link
Copy Markdown
Member

Business Case:
The customer does not have a unique Billing Address, Contact or Shipping Address. This feature allows the user to select one in the Simple Subscription that gets forwarded into the Sales Invoice.

Implementation Details:

  • 3 Link fields + Display of Address / Contact in virtual fields
  • Validation that links match the Customer on every save
  • Fields are optional and have allow_on_submit, so they can be filled after submission also

Tested:

  • Fields exist and Data is carried through to the Sales Invoice as expected
  • Virtual fields are rendered correctly
  • Values do not interfere with ERPNext tax logic (Address is set first, so Tax Rules use the one provided)

@HenningWendtland HenningWendtland changed the title additional customer info feat(Simple Subscription): optionally add additional customer info Sep 7, 2026
@greptile-apps

greptile-apps Bot commented Sep 7, 2026

Copy link
Copy Markdown

Confidence Score: 5/5

The implementation appears safe to merge, although invoice forwarding remains covered only indirectly by metadata assertions.

The outstanding previous test-coverage finding remains unresolved because the revised tests still never invoke create_invoice, so ordering regressions between explicit address assignment, set_missing_values(), and contact overriding can pass CI; this is non-blocking coverage feedback. The other four previous findings were manually resolved without explanation.

Files Needing Attention: simple_subscription/simple_subscription/doctype/simple_subscription/test_simple_subscription.py

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  C[Customer] --> S[Simple Subscription]
  A[Selected billing address] --> S
  H[Selected shipping address] --> S
  P[Selected contact] --> S
  S --> V{Links belong to customer?}
  V -->|No| E[Reject save or post-submit update]
  V -->|Yes| I[Create Sales Invoice]
  I --> D[Apply missing customer defaults]
  D --> O[Override default contact when selected]
Loading

Reviews (4): Last reviewed commit: "fix: remove commit from tests and add ad..." | Re-trigger Greptile

@barredterra
barredterra merged commit 0c8fd46 into version-16 Sep 8, 2026
6 checks passed
@barredterra
barredterra deleted the additional-customer-info branch September 8, 2026 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants