Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLDC-3802 sales BU factory traits #2963

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

carolynbarker
Copy link
Contributor

Traits to create sales bulk upload test files for shared, staircasing and discounted.

I ran into an issue where frombeds, fromprop and socprevten were being wiped, because the validation order goes:

  1. clear frombeds, fromprop and socprevten, because soctenant is not set (to 1 or 0)
  2. set soctenant (possibly to 1)
  3. throw an error because frombeds, fromprop and socprevten are now required but are now nil.

There's a couple of ways around this - here I've added a condition to their pages's depends_ons to allow routing to them even if soctenant has not yet been derived. We could also derive soctenant before clearing unrouted questions. Ideas welcome!

Copy link

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.

2 participants