-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix zero value in money cell, improve show discount type in order pay…
…ment summary (#4685) * Display zero value in money cell * Add promotion type to order payment details * Fix types * Add changeset * Extract messages * Update src/components/Datagrid/customCells/Money/utils.test.ts Co-authored-by: Michał Droń <droniu@droniu.dev> * Improve shipping methods update test --------- Co-authored-by: Michał Droń <droniu@droniu.dev>
- Loading branch information
Showing
9 changed files
with
61 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"saleor-dashboard": patch | ||
--- | ||
|
||
Fix showing empty price when value is zero | ||
Improve showing discount type in order payment details |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { hasDiscountValue } from "./utils"; | ||
|
||
describe("MoneyCell utils", () => { | ||
describe("hasDiscountValue", () => { | ||
it("should return true if value is not undefined, null", () => { | ||
expect(hasDiscountValue(0)).toBe(true); | ||
expect(hasDiscountValue(144)).toBe(true); | ||
expect(hasDiscountValue(undefined)).toBe(false); | ||
expect(hasDiscountValue(null)).toBe(false); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters