Skip to content

fix: changed custom dollar_rounded format key and numFmtId to 188 #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

xergiodf
Copy link
Contributor

Pull Request

Description

dollar_2 and dollar_rounded defined 2 different formatCode, although they have the same key and numFmtId set to 183.

This causes an issue when using both formats in a sheet, where only 1 is applied because the 183 id is used for reference in the spreadsheet context.

The fix is to set dollar_rounded id to something else: 188 (last used key value was 187).

Also, ordered the object by key value for better readability.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)

Testing

  • I have tested my changes locally.

Steps:

  • Pull latest changes from main
  • Added the change for dollar_rounded
  • Build locally
  • Added local module in my project
  • Test through my project

image

mohammadrezaeicode and others added 2 commits February 16, 2025 21:34
* Create manually_test.yml

* feature: init V7.0.0

* add comment to interface and main func & update readme

---------

Co-authored-by: m.r <mr@example.com>
## Description

`dollar_2` and `dollar_rounded` defined 2 different `formatCode`, although they have the same `key` and `numFmtId` set to 183.

This cause an issue when using both formats in a sheet, where only 1 is applied because the `183` id is used for reference in the spreadsheet context.

The fix is to set `dollar_rounded` id to something else: 188 (last used key value was 187).

Also, ordered the object by key value for better readability.
@xergiodf
Copy link
Contributor Author

@mohammadrezaeicode can you please review? 🙏

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can rollback the ordering if needed

Comment on lines +144 to +145
key: 188,
value: '<numFmt numFmtId="188" formatCode="&quot;$&quot;#,##0" />',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actual change

@mohammadrezaeicode mohammadrezaeicode changed the base branch from main to V7.0.0 March 12, 2025 21:50
@mohammadrezaeicode
Copy link
Owner

Hi,

Thank you for participating again. I’ve merged the changes. Please note that we have a formatMap option available, which can override existing formats and add new formats to the current ones.

@mohammadrezaeicode mohammadrezaeicode merged commit ac9d7f5 into mohammadrezaeicode:V7.0.0 Mar 12, 2025
@xergiodf
Copy link
Contributor Author

Hi,

Thank you for participating again. I’ve merged the changes. Please note that we have a formatMap option available, which can override existing formats and add new formats to the current ones.

Oh! thanks for the advice. I'm still getting familiar with the library features. I'll keep contributing as possible 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants