-
-
Notifications
You must be signed in to change notification settings - Fork 0
OBPIH-7952 Cycle Count - perform cc for item #100
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
base: main
Are you sure you want to change the base?
Changes from all commits
5551592
7567f29
2a95c4f
5705a3d
e34e735
dd668cb
674bbd5
76975f2
dfa9a65
c8ff577
1378e94
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import BaseServiceModel from '@/api/BaseServiceModel'; | ||
| import { CYCLE_COUNT_BY_ID } from '@/constants/apiUrls'; | ||
|
|
||
| class CycleCountService extends BaseServiceModel { | ||
| /** | ||
| Deletes a cycle count and cascades to its cycle count request, counted | ||
| transactions and their sources, reverting the quantityOnHand adjustments | ||
| they caused. | ||
| */ | ||
| async deleteCycleCount( | ||
| facilityId: string, | ||
| cycleCountId: string | ||
| ): Promise<boolean> { | ||
| const apiResponse = await this.request.delete( | ||
| CYCLE_COUNT_BY_ID(facilityId, cycleCountId) | ||
| ); | ||
| return apiResponse.ok(); | ||
| } | ||
| } | ||
|
|
||
| export default CycleCountService; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,6 +34,12 @@ class Navbar extends BasePageModel { | |
| .filter({ visible: true }); | ||
| } | ||
|
|
||
| getSectionNavItem(sectionName: string, itemName: string) { | ||
| return this.getSectionTitle(sectionName) | ||
| .locator('..') | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's that?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. getNavItem(name) (line 26-28) searches for a menu item across the entire navbar. That's fine when item names are unique, but it breaks for names that also exist elsewhere — like "Reporting" appears both as a link inside the "Cycle Count" dropdown section and as a completely separate top-level "Reporting" module in the navbar. getNavItem('Reporting') would match both and throw a strict-mode violation. |
||
| .getByRole('menuitem', { name: itemName, exact: true }); | ||
| } | ||
|
|
||
| get editProfileButton() { | ||
| return this.navbar.getByRole('menuitem', { name: 'Edit Profile' }); | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| export enum DateFormat { | ||
| DISPLAY = 'DD/MMM/YYYY', | ||
| DEFAULT = 'MM/DD/YYYY', | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.