Skip to content

Commit

Permalink
Release v3.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaSedyx committed May 9, 2022
1 parent 20b265a commit 1a1f914
Show file tree
Hide file tree
Showing 19 changed files with 107 additions and 30 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## (IN PROGRESS)

## [3.0.3](https://github.com/folio-org/ui-invoice/tree/v3.0.3) (2022-05-09)
[Full Changelog](https://github.com/folio-org/ui-invoice/compare/v3.0.2...v3.0.3)

* Previous invoice is fetched when Approve and Pay action is called. Refs UINV-396.

## [3.0.2](https://github.com/folio-org/ui-invoice/tree/v3.0.2) (2021-11-25)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@folio/invoice",
"version": "3.0.2",
"version": "3.0.3",
"description": "Invoice",
"main": "src/index.js",
"repository": {
Expand All @@ -14,7 +14,7 @@
"scripts": {
"start": "yarn stripes serve",
"build": "yarn stripes build --output ./output",
"test": "yarn run test:unit && yarn run test:e2e",
"test": "yarn run test:unit",
"test:unit": "jest --ci --coverage",
"test:unit:watch": "jest --ci --coverage --watch",
"test:e2e": "yarn stripes test karma --karma.singleRun --karma.browsers ChromeDocker --karma.reporters mocha junit --coverage",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ exports[`AdjustmentsDetails should display adjustments table 1`] = `
style="position: static;"
>
<div
aria-label="[object Object]: undefined...[object Object]: null...[object Object]: undefined...[object Object]: null"
aria-label=""
class="mclRow mclIsOdd"
data-row-inner="0"
style="min-width: 0px;"
Expand Down Expand Up @@ -139,7 +139,7 @@ exports[`AdjustmentsDetails should display adjustments table 1`] = `
style="position: static;"
>
<div
aria-label="[object Object]: undefined...[object Object]: 25.5%...[object Object]: undefined...[object Object]: null"
aria-label=""
class="mclRow"
data-row-inner="1"
style="min-width: 0px;"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ exports[`AdjustmentsForm should render correct structure with defined adjustment
aria-disabled="false"
aria-expanded="false"
aria-haspopup="listbox"
aria-invalid="false"
aria-labelledby="sl-label-stripes-selection-1 selected-stripes-selection-1-item"
aria-owns="sl-undefined"
class="selectionControl formControl"
Expand Down Expand Up @@ -492,7 +491,6 @@ exports[`AdjustmentsForm should render correct structure without adjustments 1`]
aria-disabled="false"
aria-expanded="false"
aria-haspopup="listbox"
aria-invalid="false"
aria-labelledby="sl-label-stripes-selection-5 selected-stripes-selection-5-item"
aria-owns="sl-undefined"
class="selectionControl formControl"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,9 @@ exports[`DocumentsDetails should render invoice documents 1`] = `
style="position: static;"
>
<div
aria-label="[object Object]: null"
class="mclRow mclIsOdd"
data-row-inner="0"
style="min-width: 0px;"
tabindex="0"
>
<div
class="mclCell mclCellStyle"
Expand All @@ -111,11 +109,9 @@ exports[`DocumentsDetails should render invoice documents 1`] = `
style="position: static;"
>
<div
aria-label="[object Object]: null"
class="mclRow"
data-row-inner="1"
style="min-width: 0px;"
tabindex="0"
>
<div
class="mclCell mclCellStyle"
Expand Down
2 changes: 1 addition & 1 deletion src/invoices/InvoiceDetails/InvoiceDetailsContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ export function InvoiceDetailsContainer({
setIsLoading(true);

return mutateInvoice({ ...invoice, status: INVOICE_STATUS.approved })
.then(() => mutator.invoice.GET({ path: `${INVOICES_API}/${invoice.id}` }))
.then(() => mutator.invoice.GET({ path: `${INVOICE_API}/${invoice.id}` }))
.then(invoiceResponse => {
return mutateInvoice({ ...invoiceResponse, status: INVOICE_STATUS.paid });
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ exports[`InvoiceLines should render correct structure 1`] = `
style="position: static;"
>
<div
aria-label="[object Object]: null...[object Object]: null...[object Object]: EDI import invoice line...[object Object]: null...[object Object]: 20...[object Object]: null...[object Object]: null...[object Object]: null...[object Object]: null...null: null"
class="mclRow mclIsOdd mclIsInteractive alignLastColToEnd"
aria-label=""
class="mclRow mclIsOdd mclIsInteractive mclClickableRow alignLastColToEnd"
data-row-inner="0"
style="min-width: 0px;"
tabindex="0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,9 @@ exports[`VoucherInformation should render correct structure for invoice voucher
style="position: static;"
>
<div
aria-label="[object Object]: 54321098...[object Object]: null"
class="mclRow mclIsOdd mclIsInteractive"
data-row-inner="0"
style="min-width: 0px;"
tabindex="0"
>
<div
class="mclCell mclCellStyle"
Expand Down
Loading

0 comments on commit 1a1f914

Please sign in to comment.