UINV-552: Duplicate invoice

 

Scenario

1

2

3

4

5

6

7

8

9

10

Scenario

1

2

3

4

5

6

7

8

9

10

Status

Passed

Passed

Passed

Passed

Passed

Passed

Passed

Passed

Passed

Passed

ECS

Disabled

Disabled

Disabled

Disabled

Disabled

Disabled

Disabled

Disabled

Disabled

Disabled

Permissions

Missing "Invoice: Can view, edit and create new Invoices and Invoice lines" permission

User has "Invoice: Can view, edit and create new Invoices and Invoice lines" permission

User has "Invoice: Can view, edit and create new Invoices and Invoice lines" permission

User has "Invoice: Can view, edit and create new Invoices and Invoice lines" permission

User has "Invoice: Can view, edit and create new Invoices and Invoice lines" permission

User has "Invoice: Can view, edit and create new Invoices and Invoice lines" , “Finance: View fund and budget” permissions

User has "Invoice: Can view, edit and create new Invoices and Invoice lines" permission

User has "Invoice: Can view, edit and create new Invoices and Invoice lines" permission

User has "Invoice: Can view, edit and create new Invoices and Invoice lines" permission

User has "Invoice: Can view, edit and create new Invoices and Invoice lines" permission

Invoice status

Open

Open

Approved

Paid.
Currency set to foreign one (e.g. YUY), exchange rate manually set (e.g. 15)

Approved.
Adjustment was created

Reviwed.
Adjustment was created

Paid(credit)

Approved (credit)
Acq unit was added to invoice (User is part of AU)

Paid
AU with "View" NOT checked was added to invoice, User is NOT included in AU

Open

Invoice fiscal year

Current

Previous, Current year does not exist in the system

Current

Previous, Current fiscal year exists in the system

Current

Previous, Current fy exists

Current

Current

Current

Current 

Invoice lines

No invoice lines

No invoice lines

No invoice lines

One invoice line with no related POL

Two invoice lines, one with related POL the other with no related POL

Two invoice lines related to POLs.
Adjustments created for both invoice lines.

One line not from POL
Budget was made Inactive after invoice payment

One line related POL. Fund distribution in POL is different from budget in invoice line

One line from POL

Line #1 not related to POL with current budget for the fund having no transactions.
Line #2 related to POL with the same fund as Line #1
Line #3 related to POL with fund distribution different from line#1.
Current budget was deleted for the fund added in Line#1

Linked document

No

No 

No  

Yes

Yes

No

No

No

Yes

No

Action 1

Open action menu on the invoice details pane

Open action menu on the invoice details pane

Open action menu on the invoice details pane

Open action menu on the invoice details pane

Open action menu on the invoice details pane

Open action menu on the invoice details pane

Open action menu on the invoice details pane

Open action menu on the invoice details pane

Open action menu on the invoice details pane

Open action menu on the invoice details pane

Expected result

"Duplicate" action item is not displayed

"Duplicate" action item is displayed and active

"Duplicate" action item is displayed and active

"Duplicate" action item is displayed and active

"Duplicate" action item is displayed and active

"Duplicate" action item is displayed and active

"Duplicate" action item is displayed and active

"Duplicate" action item is displayed and active

"Duplicate" action item is displayed and active

"Duplicate" action item is displayed and active

Action 2

-

Click "Duplicate" action item

Click "Duplicate" action item

Click "Duplicate" action item

Click "Duplicate" action item

Click "Duplicate" action item

Click "Duplicate" action item

Click "Duplicate" action item

Click "Duplicate" action item

Click "Duplicate" action item

Expected result

-

Confirmation modal appears with "Duplicate" and "Cancel' button displayed and active

Confirmation modal appears with "Duplicate" and "Cancel' button displayed and active

Confirmation modal appears with "Duplicate" and "Cancel' button displayed and active

Confirmation modal appears with "Duplicate" and "Cancel' button displayed and active

Confirmation modal appears with "Duplicate" and "Cancel' button displayed and active

Confirmation modal appears with "Duplicate" and "Cancel' button displayed and active

Confirmation modal appears with "Duplicate" and "Cancel' button displayed and active

Confirmation modal appears with "Duplicate" and "Cancel' button displayed and active

Confirmation modal appears with "Duplicate" and "Cancel' button displayed and active

Action 3

 

User clicks on "Duplicate" button

User clicks on "Cancel" button

User clicks on "Duplicate" button

User clicks on "Duplicate" button

User clicks on "Duplicate" button

User clicks on "Duplicate" button

User clicks on "Duplicate" button

User clicks on "Duplicate" button

User clicks on "Duplicate" button

Expected result

 

New invoice is created with no invoice lines and data is duplicated from the original invoice, except for the following fields:
1)"Date created" is current date
2)"Created by" is current active user
3)Invoice status remains "Open"
4)Fiscal year is set to blank

1)Confirmation modal closes.
2)New invoice is not created
3)Existing invoice details pane remains open

New invoice is created with one invoice line that is exact copy of the invoice lines from the original.

Data for invoice is duplicated from the original invoice, except for the following fields:
1)"Date created" is current date
2)"Created by" is current active user
3)Invoice status is "Open"
4)Fiscal year is changed to current FY
5)Document from the original invoice is not duplicated
6)Voucher from the original invoice is not duplicated
7)Approval data is set to blank
8)Approved by is set to blank

P.S. Currency and exchange rate is duplicated

New invoice is created with two invoice lines second one is exact copy, the first one  contains the link to POL,  "Current encumbrance" is set for current year

Data for invoice is duplicated from the original invoice, except for the following fields:
1)"Date created" is current date
2)"Created by" is current active user
3)Invoice status is "Open"
4)Document from the original invoice is not duplicated
5)Approval data is set to blank
6)Approved by is set to blank

New invoice is created with two invoice line
Data for invoice is duplicated from the original invoice, except for the following fields:
1)"Date created" is current date
2)"Created by" is current active user
3)Invoice status is "Open"

Invoice lines  contain link to POL, "Initial encumbrance" and "Current encumbrance" are set for current FY

P.S. Adjustments for invoice lines are duplicated.

Error appears for invoice line.
Invoice line is not duplicated.
Invoice is duplicated and its data is same as in the original invoice, except the following fields:
1)"Date created" is current date
2)"Created by" is current active user
3)Invoice status is "Open"
4)Sub-total is set to 0
5)Voucher is not duplicated

Check that amount is credit (negative) in duplicated invoice
Invoice line contains link to POL,  "Current encumbrance" is set for current fiscal year.

1)"Date created" is current date
2)"Created by" is current active user
3)Invoice status is "Open"
4)Voucher is not duplicated

Error - "The purchase order was not cloned"

 403 error in devtools

Error appears for line#1 and line#2.
Invoice line#3 is duplicated and contains the same data as in original invoice line#2.
"Current encumbrance" is set for current fiscal year.

 

Invoice is duplicated and its data is same as in the original invoice, except the following fields:
1)"Date created" is current date
2)"Created by" is current active user

Test cases

C514953

C514954

Combined with TC for scenario #2

C514955

C514957

C514958

C514959

C514960

C514984

C514972