Quantity = 0 for electronic format orders

Description

Overview : When creating orders with an order format of electronic, an instance, and a holdings records from a MARC bibliographic record using Data Import, the quantity in both the ‘Cost details' and ‘Location’ section of the POL is ‘0' despite the field mapping profile instructing it be '1’.

Reproduction :

  • This error was reproduced in bugfest-poppy on 2/27/2024.

  • In the Data Import app, Job 12520 and Job 12526 both demonstrate the error.

    • Both use Job profile ‘CAH Create Full Cat / Electronic’ (I changed the receipt status between each job, but it had no effect on the quantity issue.)

    • In both jobs, the POL has a quantity = 0 for the cost details and location regardless of the instruction in the field mapping profile (CAH Electronic approvals order) being “1”.

  • The file used for this test is attached (51639_test1.mrc).

Additional information :

  • Originally noted in a Poppy CSP#1 environment.

  • When ‘CAH Create Full Cat / Electronic #2’ is used as the job profile, the quantity = 1 as expected. This profile creates only the order and instance. Subsequent testings shows that it also works if only the order is created. It’s only when the holdings record creation is added that it fails.

  • This error has a huge impact as it prevents encumbrances from processing properly.

  • Using a nearly identical profile with the ‘Order format’ = ‘Print resource’, this error was not observed.

Requirements per SME conversations:
Quantity value within Orders should not be tied to the number of Items created as part of a Job. Instead, it is expected that the field mapping profile should always determine the Quantity value.


Critical service patch details

  1. Describe issue impact on business - When creating orders with an order format of electronic, an instance, and a holdings records from a MARC bibliographic record using Data Import, the quantity in both the ‘Cost details' and ‘Location’ section of the POL is ‘0' despite the field mapping profile instructing it be '1’.

  2. What institutions are affected? (field “Affected Institutions” in Jira to be populated) - All.

  3. What is the workaround if exists? No workaround.

  4. What areas will be impacted by fix (i.e. what areas need to be retested) - mod-data-import, mod-orders

  5. Brief explanation of technical implementation and the level of effort (in workdays) and technical risk (low/medium/high). - Revert Orders/Holdings/Items Location & Quantity ‘Check’ and ‘Overlay’ logic that was introduced in Poppy. Low risk.

  6. Brief explanation of testing required and level of effort (in workdays). Provide test plan agreed with by QA Manager and PO.  - Low effort.

  7. What is the roll back plan in case the fix does not work? Revert to previous version.

CSP Request Details

Requested approval to include in Poppy CSP #4 on 4/23/2024

CSP Rejection Details

None

Potential Workaround

None

Attachments

6

Checklist

hide

Activity

Show:

Kateryna SenchenkoApril 24, 2024 at 11:20 AM

Hi , with these changes the following test rail needs to be updated:

https://foliotest.testrail.io/index.php?/cases/view/380485 - Location in Order mapping and Location in Holdings mapping should be the same to match updated logic and prevent extra Holdings being created.
Thank you!

Maksym IshchenkoApril 24, 2024 at 8:43 AM

Hi
Ticket verified on Poppy Bugfest env. Quantity now is the same as in field mapping profile for creation of orders if even action for create items is absent in job profile. Please doublecheck if needed

 

 

Completed job:

cc:

Maksym IshchenkoApril 22, 2024 at 11:04 AM

Hi

Ticket verified on snapshot env. Now when you set quantity in Order Field mapping profile and have job profile without item creation then quantity will match the quantity in order field mapping profile. Moving ticket further

 

 

cc:

Ryan TaylorApril 19, 2024 at 11:58 AM

- I am confirming that the P/E Mix check that you referred to below should be reverted as well. I’ll make sure the test case is updated to reflect jobs completing without error when quantity is greater than 1. Thank you!
cc:

Ruslan LavrovApril 17, 2024 at 9:05 PM

, here is test rail related to the question of whether we need to revert/remove or retain the check that completes import with errors in case multiple inventory items are created during the import of a P/E Mix order https://foliotest.testrail.io//index.php?/cases/view/388547. Please take a look, hope it is helpful.

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Folijet

Fix versions

Release

Poppy (R2 2023) Service Patch #4

RCA Group

Requirements change

CSP Approved

Yes

Affected releases

Poppy (R2 2023)

Affected Institution

National Lib of Australia
University of Chicago

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created February 27, 2024 at 10:54 PM
Updated August 28, 2024 at 9:42 AM
Resolved April 22, 2024 at 1:11 PM
TestRail: Cases
TestRail: Runs