Skip to content

Commit

Permalink
Merge branch 'master' into UIOR-1355--Do-not-displayed-“Record-delete…
Browse files Browse the repository at this point in the history
…d”-when-address-field-is-not-specified-in-"Version-history"-for-Order
  • Loading branch information
azizjonnurov authored Dec 3, 2024
2 parents f405da8 + 359c293 commit 257a11e
Show file tree
Hide file tree
Showing 22 changed files with 67 additions and 56 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

## 7.1.0 (IN PROGRESS)

## 7.0.2 (IN PROGRESS)

* Display the “Record deleted” label in version history only if the UUID no longer exists. Refs UIOR-1355.
* Add "Donor (Deprecated)" label for PO line search by Donor filed. Refs UIOR-1348.
* Respect the `tenantId` property when resolving holdings in central tenant mode. Refs UIOR-1330.

## [7.0.1](https://github.com/folio-org/ui-orders/tree/v7.0.1) (2024-11-14)
[Full Changelog](https://github.com/folio-org/ui-orders/compare/v7.0.0...v7.0.1)
Expand Down
14 changes: 11 additions & 3 deletions src/components/POLine/Location/LocationView.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React, { useMemo } from 'react';
import find from 'lodash/find';
import keyBy from 'lodash/keyBy';
import PropTypes from 'prop-types';
import React, { useMemo } from 'react';
import { FormattedMessage } from 'react-intl';
import { find, keyBy } from 'lodash';

import {
Col,
Expand Down Expand Up @@ -36,7 +37,14 @@ const Location = ({
name: fieldName,
}) => {
const filteredLocation = locationsMap[location.locationId] || {};
const holding = find(holdings, ['id', location.holdingId]);
const holding = find(
holdings,
{
id: location.holdingId,
...(centralOrdering ? { tenantId: location.tenantId } : {}),
},
);

const { name, code } = filteredLocation;
const locationNameCode = name ? `${name} (${code})` : '';
const labelId = location.holdingId ? 'ui-orders.location.holding' : 'ui-orders.location.nameCode';
Expand Down
2 changes: 1 addition & 1 deletion translations/ui-orders/ber.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
"order.lastUpdated": "Last updated",
"order.acquisitionsUnit": "Acquisition unit",
"search.contributors": "Contributor",
"search.donor": "Donor",
"search.donor": "Donor (Deprecated)",
"search.details.productIds": "Product ID",
"search.publisher": "Publisher",
"search.selector": "Selector",
Expand Down
2 changes: 1 addition & 1 deletion translations/ui-orders/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
"order.lastUpdated": "Last updated",
"order.acquisitionsUnit": "Acquisition unit",
"search.contributors": "Contributor",
"search.donor": "Donor",
"search.donor": "Donor (Deprecated)",
"search.details.productIds": "Product ID",
"search.publisher": "Publisher",
"search.selector": "Selector",
Expand Down
2 changes: 1 addition & 1 deletion translations/ui-orders/cs_CZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
"order.lastUpdated": "Poslední aktualizace",
"order.acquisitionsUnit": "Akviziční jednotka",
"search.contributors": "Autor",
"search.donor": "Dárce",
"search.donor": "Dárce (zastaralé)",
"search.details.productIds": "ID produktu",
"search.publisher": "Vydavatel",
"search.selector": "Selektor",
Expand Down
2 changes: 1 addition & 1 deletion translations/ui-orders/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
"order.lastUpdated": "Last updated",
"order.acquisitionsUnit": "Acquisition unit",
"search.contributors": "Contributor",
"search.donor": "Donor",
"search.donor": "Donor (Deprecated)",
"search.details.productIds": "Product ID",
"search.publisher": "Publisher",
"search.selector": "Selector",
Expand Down
2 changes: 1 addition & 1 deletion translations/ui-orders/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@
"errors.orderLineGenericError": "Bestellposten konnte nicht gespeichert werden",
"itemDetails.notConnectedTitle": "Nicht verknüpft",
"itemDetails.notConnectedInfo": "Instanz ist nicht mehr veknüpft. Dies kann dazu führen, dass beim Speichern eine neue Instanz erstellt wird.",
"buttons.line.cancel": "Abbrechen",
"buttons.line.cancel": "Stornieren",
"settings.instanceStatus": "Instanzstatus",
"settings.instanceStatus.select": "Standard-Instanzstatus",
"settings.instanceType": "Instanztyp",
Expand Down
2 changes: 1 addition & 1 deletion translations/ui-orders/en_GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
"order.lastUpdated": "Last updated",
"order.acquisitionsUnit": "Acquisition unit",
"search.contributors": "Contributor",
"search.donor": "Donor",
"search.donor": "Donor (Deprecated)",
"search.details.productIds": "Product ID",
"search.publisher": "Publisher",
"search.selector": "Selector",
Expand Down
2 changes: 1 addition & 1 deletion translations/ui-orders/en_SE.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
"order.lastUpdated": "Last updated",
"order.acquisitionsUnit": "Acquisition unit",
"search.contributors": "Contributor",
"search.donor": "Donor",
"search.donor": "Donor (Deprecated)",
"search.details.productIds": "Product ID",
"search.publisher": "Publisher",
"search.selector": "Selector",
Expand Down
2 changes: 1 addition & 1 deletion translations/ui-orders/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
"order.lastUpdated": "Last updated",
"order.acquisitionsUnit": "Acquisition unit",
"search.contributors": "Contributor",
"search.donor": "Donor",
"search.donor": "Donor (Deprecated)",
"search.details.productIds": "Product ID",
"search.publisher": "Publisher",
"search.selector": "Selector",
Expand Down
2 changes: 1 addition & 1 deletion translations/ui-orders/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
"order.lastUpdated": "Last updated",
"order.acquisitionsUnit": "Acquisition unit",
"search.contributors": "Contributor",
"search.donor": "Donor",
"search.donor": "Donor (Deprecated)",
"search.details.productIds": "Product ID",
"search.publisher": "Publisher",
"search.selector": "Selector",
Expand Down
2 changes: 1 addition & 1 deletion translations/ui-orders/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
"order.lastUpdated": "Last updated",
"order.acquisitionsUnit": "Acquisition unit",
"search.contributors": "Contributor",
"search.donor": "Donor",
"search.donor": "Donor (Deprecated)",
"search.details.productIds": "Product ID",
"search.publisher": "Publisher",
"search.selector": "Selector",
Expand Down
2 changes: 1 addition & 1 deletion translations/ui-orders/hi_IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
"order.lastUpdated": "Last updated",
"order.acquisitionsUnit": "Acquisition unit",
"search.contributors": "Contributor",
"search.donor": "Donor",
"search.donor": "Donor (Deprecated)",
"search.details.productIds": "Product ID",
"search.publisher": "Publisher",
"search.selector": "Selector",
Expand Down
2 changes: 1 addition & 1 deletion translations/ui-orders/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
"order.lastUpdated": "Last updated",
"order.acquisitionsUnit": "Acquisition unit",
"search.contributors": "Contributor",
"search.donor": "Donor",
"search.donor": "Donor (Deprecated)",
"search.details.productIds": "Product ID",
"search.publisher": "Publisher",
"search.selector": "Selector",
Expand Down
2 changes: 1 addition & 1 deletion translations/ui-orders/nb.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
"order.lastUpdated": "Last updated",
"order.acquisitionsUnit": "Acquisition unit",
"search.contributors": "Contributor",
"search.donor": "Donor",
"search.donor": "Donor (Deprecated)",
"search.details.productIds": "Product ID",
"search.publisher": "Publisher",
"search.selector": "Selector",
Expand Down
2 changes: 1 addition & 1 deletion translations/ui-orders/nn.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
"order.lastUpdated": "Last updated",
"order.acquisitionsUnit": "Acquisition unit",
"search.contributors": "Contributor",
"search.donor": "Donor",
"search.donor": "Donor (Deprecated)",
"search.details.productIds": "Product ID",
"search.publisher": "Publisher",
"search.selector": "Selector",
Expand Down
68 changes: 34 additions & 34 deletions translations/ui-orders/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"receipt_status.receiptNotRequired": "Pokwitowanie nie jest wymagane",
"user.barcode": "Kod kreskowy",
"user.name": "Nazwa",
"user.patronGroup": "Grupa czytelników",
"user.patronGroup": "Grupa czytelnika",
"user.username": "Nazwa użytkownika",
"vendor.name": "Nazwa",
"vendor.vendor_status": "Status",
Expand All @@ -55,7 +55,7 @@
"itemDetails.addProductId": "Dodaj identyfikator produktu i typ identyfikatora produktu",
"itemDetails.addProductIdBtn": "Dodaj ID produktu i rodzaj ID produktu",
"itemDetails.removeBtn": "Usuń",
"physical.volumes": "Woluminów",
"physical.volumes": "Woluminy",
"physical.receiptDue": "Wymagany rachunek",
"physical.materialSupplier": "Dostawca materiałów",
"order_type.oneTime": "Jednorazowo",
Expand Down Expand Up @@ -240,8 +240,8 @@
"cost.discount": "Rabat",
"cost.unitPriceOfElectronic": "Cena jednostkowa (elektroniczne)",
"cost.validation.cantBeNegative": "Nie może być ujemna",
"eresource.createInventory": "Utwórz rekord inwentarza",
"physical.createInventory": "Utwórz rekord inwentarza",
"eresource.createInventory": "Utwórz rekord katalogowy",
"physical.createInventory": "Utwórz rekord katalogowy",
"settings.createInventory.eresource": "Domyślnie elektroniczne",
"settings.createInventory.physical": "Domyślnie fizyczne",
"settings.createInventory.other": "Domyślnie inne",
Expand Down Expand Up @@ -545,7 +545,7 @@
"paneBlock.reopenBtn": "Otwórz ponownie",
"order.clone.confirmLabel": "Powiel",
"order.clone.heading": "Powielić zamówienie?",
"order.clone.message": "Czy na pewno chcesz sklonować to zamówienie i wszystkie jego pozycje?",
"order.clone.message": "Czy na pewno chcesz powielić to zamówienie i wszystkie jego pozycje?",
"order.clone.success": "Zamówienie zakupu zostało pomyślnie powielone",
"order.reopen.success": "<b> Zamówienie zakupu - {orderNumber} </b> zostało pomyślnie <b> ponownie otwarte </b>",
"paneBlock.cloneBtn": "Powiel",
Expand All @@ -562,7 +562,7 @@
"errors.ongoingNotAllowed": "Dla zamówień jednorazowych pole Bieżące musi być puste",
"errors.closeOrder": "Zamówienie nie zostało zamknięte",
"line.closedOrderMessage": "Zamówienie zakupowe jest zamknięte - {reason}",
"itemDetails.titleLookUp": "Wyszukiwanie tytułu",
"itemDetails.titleLookUp": "Znajdź tytuł",
"itemDetails.titleLookUpNoPlugin": "[brak wtyczki do wybierania instancji]",
"orderSummary.totalEncumbered": "Łączna kwota obciążenia",
"unopenOrderModal.title": "Nieotwarte - zamówienie zakupowe - {orderNumber}",
Expand Down Expand Up @@ -597,9 +597,9 @@
"errors.incorrectFundDistributionTotal": "Łączna kwota dystrybucji funduszu musi wynosić 100% lub cenę całkowitą",
"errors.piecesNeedToBeCreated": "Części muszą być utworzone",
"cost.discountType": "Rodzaj",
"permission.acq.unit.assignment.assign": "Zamówienia: Przypisywanie działów gromadzenia do nowego zamówienia",
"permission.acq.unit.assignment.manage": "Zamówienia: Zarządzanie działami gromadzenia",
"permission.order.reopen": "Zamówienia: Ponowne otwieranie zamówień",
"permission.acq.unit.assignment.assign": "Zamówienia: przypisywanie jednostek gromadzenia do nowego zamówienia",
"permission.acq.unit.assignment.manage": "Zamówienia: zarządzanie jednostkami gromadzenia",
"permission.order.reopen": "Zamówienia: ponowne otwieranie zamówień",
"settings.poNumber.nameValidation": "Nazwa jest nieprawidłowa",
"errors.openOrder.inactiveExpenseClass": "Zamówienie NIE może zostać <b>otwarte</b>, ponieważ klasa wydatków <b>{expenseClass}</b> jest nieaktywna.",
"eresource.url": "URL",
Expand All @@ -609,7 +609,7 @@
"orderLineList.orderWorkflow": "Status zamówienia",
"errors.budgetExpenseClassNotFound": "W funduszu <b>{fundCode}</b> nie znaleziono klasy wydatków <b>{expenseClassName}</b>",
"button.exportCSV": "Eksportuj wyniki (CSV)",
"permission.order.exportCSV": "Zamówienia: Eksportowanie wyników wyszukiwania",
"permission.order.exportCSV": "Zamówienia: eksportowanie wyników wyszukiwania",
"errors.conversionError": "Nie można pobrać kursu wymiany dla wybranej waluty w pozycjach zamówienia",
"errors.orderLinesNotLoaded": "Błąd podczas ładowania pozycji zamówienia",
"exportSettings.export": "Eksport",
Expand All @@ -629,12 +629,12 @@
"order.updateEncumbrances.error": "Nie zaktualizowano obciążeń zamówienia",
"paneBlock.updateEncumbrances": "Aktualizacja obciążeń",
"settings": "Ustawienia zamówień",
"permission.settings.all": "Ustawienia (Zamówienia): Może wyświetlać i edytować wszystkie ustawienia",
"permission.settings.order-templates.create": "Ustawienia (Zamówienia): Może wyświetlać, edytować, tworzyć nowe Szablony Zamówień",
"permission.settings.order-templates.delete": "Ustawienia (Zamówienia): Może wyświetlać, edytować, usuwać Szablony Zamówień",
"permission.settings.order-templates.edit": "Ustawienia (Zamówienia): Może wyświetlać, edytować Szablony Zamówień",
"permission.settings.order-templates.view": "Ustawienia (Zamówienia): Może wyświetlać Szablony Zamówień",
"permission.settings.view": "Ustawienia (Zamówienia): Może wyświetlać wszystkie ustawienia",
"permission.settings.all": "Ustawienia (Zamówienia): może wyświetlać i edytować wszystkie ustawienia",
"permission.settings.order-templates.create": "Ustawienia (Zamówienia): można wyświetlać, edytować, tworzyć nowe szablony zamówień",
"permission.settings.order-templates.delete": "Ustawienia (Zamówienia): można wyświetlać, edytować, usuwać szablony zamówień",
"permission.settings.order-templates.edit": "Ustawienia (Zamówienia): można wyświetlać, edytować szablony zamówień",
"permission.settings.order-templates.view": "Ustawienia (Zamówienia): można wyświetlać szablony zamówień",
"permission.settings.view": "Ustawienia (Zamówienia): można wyświetlać wszystkie ustawienia",
"vendor.referenceNumbers": "Numery referencyjne sprzedawców",
"lineListing.refNumber": "Numer referencyjny dostawcy",
"search.vendorDetail.referenceNumbers": "Numer referencyjny dostawcy",
Expand Down Expand Up @@ -675,7 +675,7 @@
"settings.instanceMatching.description": "When active, instance matching will cause purchase order lines that are set to create instances, but are not manually linked to an instance record, to first search instances to find a match for one or more of the product IDs provided on the POL. If a product ID is found, that instance will be linked to the POL, and the system will NOT create a new instance for that POL. If no matches are found, the system will create a new instance record and link the POL to that instance.",
"settings.instanceMatching.toggle": "Wyłącz dopasowanie instancji",
"shortcut.addPOL": "Dodaj pozycję zamówienia",
"appMenu.ordersAppSearch": "Orders app Search",
"appMenu.ordersAppSearch": "Szukaj w aplikacji Zamówienia",
"acquisitionMethod.invalid": "Invalid reference",
"button.printOrder": "Drukuj zamówienie",
"button.printLine": "Drukuj pozycje zamówienia",
Expand All @@ -686,15 +686,15 @@
"duplicateLines.confirmation.message": "This appears to be a duplicate order line",
"duplicateLines.confirmation.title": "Possible duplicate order line",
"export.exportDate": "Data eksportu",
"line.accordion.relatedInvoiceLines": "Related invoice lines",
"line.accordion.linkedInstance": "Linked instance",
"line.accordion.relatedInvoiceLines": "Faktura powiązana z pozycjami",
"line.accordion.linkedInstance": "Połączone instancje",
"line.accordion.packageTitles": "Package titles",
"order.hideFields": "Ukryj pola",
"order.showHidden": "Pokaż ukryte pola",
"order.showHidden.info": "Show all fields that were hidden when using template",
"orderDetails.manualPO.info": "Gdy ten checkbox jest aktywny zamówienie, będzie wyłączone z jakichkolwiek automatycznych działań, bez względu na to, jakie inne ustawienia są aktywne dla zamawianych pozycji lub powiązanych organizacji.",
"poLine.automaticExport": "Eksport automatyczny",
"poLine.receivingWorkflow": "Receiving workflow",
"poLine.receivingWorkflow": "Przepływ dostaw",
"poLine.receivingWorkflow.info": "Selecting synchronized will keep the order quantity and the number of pieces to be received, in sync. This also means updating one will update the other. When the order is opened, the system will generate pieces based on the quantity order.",
"poLine.receivingWorkflow.independent": "Independent order and receipt quantity",
"poLine.receivingWorkflow.synchronized": "Synchronized order and receipt quantity",
Expand All @@ -717,14 +717,14 @@
"title.actions.save.success": "The title <b>{title}</b> has been successfully added for <b>PO line {poLineNumber}</b>",
"title.actions.save.error.genericError": "The title {title} has not been added for PO line {poLineNumber}",
"title.actions.save.error.titleExist": "The title {title} for PO line {poLineNumber} already exists",
"permission.order.showHidden": "Orders: Show all hidden fields",
"permission.order.showHidden": "Zamówienia: wyświetl wszystkie ukryte pola",
"differentAccounts.title": "Different account numbers",
"differentAccounts.message": "This order includes <b>{accountNumber}</b> unique account numbers for export. You can not open an order with more than one POL set to export if the POLs have different account numbers. Please edit the account number information of these POLs or move POLs with different account numbers to different orders before opening.",
"order.hideField": "Hide field",
"orderDetails.dateOpened": "Data otwarcia",
"search.dateOpened": "Data otwarcia",
"dateOpened": "Data otwarcia",
"buttons.line.changeInstance": "Change instance connection",
"buttons.line.changeInstance": "Zmień połączoną instancję",
"canceled": "Canceled",
"closeOrderModal.closingReasons.cancelled": "Cancelled",
"errors.deleteConnectedToInvoice": "Nie można edytować dystrybucji funduszy, ponieważ ta pozycja w zamówieniu ma powiązane zatwierdzone lub zapłacone faktury za bieżący rok budżetowy.",
Expand Down Expand Up @@ -754,15 +754,15 @@
"print.shipTo": "Ship to address",
"settings.orderTemplates.accordion.polOngoingOrder": "POL Ongoing order information",
"title.actions.update.error": "The title was not updated",
"permission.orders.view": "Orders: Can view Orders and Order lines",
"permission.orders.create": "Orders: Can create new Orders and Order lines",
"permission.orders.edit": "Orders: Can edit Orders and Order lines",
"permission.orders.delete": "Orders: Can delete Orders and Order lines",
"permission.order.approve": "Orders: Approve purchase orders",
"permission.order.cancel": "Orders: Cancel purchase orders",
"permission.order-lines.cancel": "Orders: Cancel order lines",
"createInvoice.confirmationModal.title": "Create invoice",
"createInvoice.confirmationModal.order.message": "Do you want to create an invoice from this order?",
"permission.orders.view": "Zamówienia: można wyświetlać zamówienia i pozycje zamówienia",
"permission.orders.create": "Zamówienia: można tworzyć nowe zamówienia i pozycje zamówienia",
"permission.orders.edit": "Zamówienia: można edytować zamówienia i pozycje zamówienia",
"permission.orders.delete": "Zamówienia: można usuwać zamówienia i pozycje zamówienia",
"permission.order.approve": "Zamówienia: zatwierdzanie zamówień zakupu",
"permission.order.cancel": "Zamówienia: anulowanie zamówień zakupu",
"permission.order-lines.cancel": "Zamówienia: anulowanie pozycji zamówienia",
"createInvoice.confirmationModal.title": "Utwórz fakturę",
"createInvoice.confirmationModal.order.message": "Czy chcesz utworzyć fakturę na podstawie tego zamówienia?",
"paneBlock.createInvoice": "Nowa faktura",
"button.confirm": "Confirm",
"button.reexport": "Reexport",
Expand Down Expand Up @@ -851,11 +851,11 @@
"relatedInvoiceLines.vendorCode": "Kod dostawcy",
"vendor.accountNumber.inActive": "Wybrany numer konta jest nieaktywny.",
"inactive": "Inactive",
"line.accordion.donorInformation": "Donor information",
"paneBlock.donorInformation": "Donor information",
"line.accordion.donorInformation": "Informacja o darczyńcy",
"paneBlock.donorInformation": "Informacja o darczyńcy",
"poLine.donor.info": "This field has been disabled and will be deprecated in 2025. Please create donor records from the Organizations app. Use the Donor information accordion below to add donors to this POL. Please note that information deleted from this field is NOT recoverable.",
"line.accordion.donor": "Darczyńca",
"poLine.claimingActive": "Claiming active",
"poLine.claimingActive": "Aktywny monit",
"poLine.claimingInterval": "Interwał monitu",
"poLine.donorOrganizationIds": "Informacja o darczyńcy",
"settings.customFields.purchaseOrders": "Pola niestandardowe - Zamówienia zakupowe",
Expand Down
2 changes: 1 addition & 1 deletion translations/ui-orders/pt_PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
"order.lastUpdated": "Last updated",
"order.acquisitionsUnit": "Acquisition unit",
"search.contributors": "Contributor",
"search.donor": "Donor",
"search.donor": "Donor (Deprecated)",
"search.details.productIds": "Product ID",
"search.publisher": "Publisher",
"search.selector": "Selector",
Expand Down
Loading

0 comments on commit 257a11e

Please sign in to comment.