Link customers to their respective (commercial leads/ resellers /shops) #34
Reference in New Issue
Block a user
Delete Branch "resseler-to-customer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Link customers to their respective (commercial leads/ resellers /shops)
https://app.asana.com/0/697944902557002/838943199344910
1) Preparation
execute
composer installandcomposer update-db2) Tests
Run unit tests and check they all passed (this PR does not contain unit tests for shop management because it would be too large but
there were some changes to existing unit test because of some changed methods)
3) Smoke test
Login to backend as administrator
Create Customer organization (has
customerrole) and customer user assigned to that organizationCreate 2 Commercial Lead organizations (has
commercial_leadrole) and user assigned to that organizationAssign Customer organization as linked customer to Commercial Lead organizations
Login with customer user on frontend
Check that Commercial Lead shop catalogues are retrieved and available for selection
Create two bundle packages ready to sell (they should have prices and countries set)
Login with customer user to frontend and check that packages are not yet visible on co market for any of the shop catalogues
Login with first commercial lead organization on backend
Check that
ProductOrdersandCustomersmenu items are presentGo to Products tab and check that only bundles are visible
Click to one of the bundles and set commercial lead price for it
Go back to frontend customer user and check that package is now present in shop catalogue belonging to this commercial lead
while not present in catalogue for other commercial lead
Click on available package and validate prices for customer are those set by commercial lead
Login to backend as other commercial lead and set prices for other bundle package
Go back to frontend customer and validate that this package bundle is available for that commercial lead shop catalogue and not
available in the catalogue of first commercial lead
Click on the package and validate that customer prices are prices set by commercial lead
Login as first commercial lead on backend and set prices for other package bundle
Go back to frontend and check both packages are present in catalogue
Open second package and validate that customer prices are prices set by first commercial lead
Go to second commercial lead package shop catalogue and open the same bundle
Validate that prices show are prices set by second commercial lead
Login as second commercial lead to backend
Set specific prices for Customer organization on already priced package bundle
Go back to frontend and validate that prices shown are special customer prices
Go back to backend and hide all specific commercial lead prices (deselect
Visiblecheckboxes)Return to frontend and validate that package is not present in catalogue for customer since all prices are hidden
Create another Customer organization with its own user
Assign this customer to commercial leads
30 Login as that customer to frontend
Validate that both packages are visible in first commercial lead shop catalogue and one package visible in second commercial lead catalogue
Validate that prices visible for package in second catalogue are default prices for that package and not
customer specific prices set for first customer organization.
Login as second commercial lead on backend
Hide all default prices for already priced bundle and set at least one payment for first customer organization visible.
Login as first customer
Validate that package is present in catalogue and prices are customer specific prices
Login as second customer
validate that package is no longer visible for him.
added 1 commit
0238f914- FixesCompare with previous version
added 1 commit
49281f02- remove error logsCompare with previous version
merged
mentioned in commit
c8ed5f7ff8