The Wayback Machine - http://web.archive.org/web/20200708023121/https://github.com/topics/money
Skip to content
#

money

Here are 719 public repositories matching this topic...

jonasesr
jonasesr commented Dec 4, 2019

Currently there is no possibility to set up a custom rounding function. Therefore you are limited to the ones that are implemented by default. For my case I need a rounding function that always rounds up (e.g. 0.002 => 0.01 with precision 2, commercial rounding)

It would be nice to pass a callback or a string that describes the rounding mode. If it is a string and the string matches the suppo

broberts-mrmc
broberts-mrmc commented Apr 18, 2018

While I've looked through the code and documentation, I have not found a built-in method for rounding, using any of the available rounding methods (http://moneyphp.org/en/latest/features/operation.html#rounding-modes), to the "nearest" whole unit of currency. Am I just over looking it? If so, what is the method?

Inputs and [expected] corresponding outputs:

ROUND(0.01 USD) = 0.00 USD
ROU
venantius
venantius commented May 26, 2018

Long time listener, first time caller.

I couldn't see any documentation on this, so I thought I'd ask: is there a reason that support for JSON serialization to a specified number of decimal places isn't supported via a struct tag? I'm thinking something like:

type Foo struct {
    Bar decimal.Decimal `json:"bar",decimalPlaces:"2"`
}

The advantage here being that if my API r

wearebasti
wearebasti commented Oct 24, 2019

With the merge of #501 the Money objects are automatically using the decimal_places of the underlying DB-MoneyField (if it exists).

This leads to weird localization behaviour in templates. We use a rather high number of decimal places to ensure correct calculations while displaying rounded localized values to the users.

Expected behaviour would be imo that by default the localization sho

Sonaryr
Sonaryr commented Jul 1, 2019

Name of Defective Feature

  • Days Of Buffering

System Settings (Required)

  • ToolKit Version: 2.12.0
  • Operating System (Mac/Windows/Etc): Windows
  • Browser (Chrome/Firefox/Safari): Chrome
  • Browser Version: 75.0.3770.100
  • Other Extensions: /

Export of Toolkit Settings (Bottom Left of Settings Page)

Settings Export
[{"key":"AccountsDisplayDen
Changaco
Changaco commented Apr 14, 2020

The Giving page should have a button to edit the donations in bulk. The button would probably be a simple link to a new www/%username/giving/bulk-edit.spt sub-page. That page would probably display the donations in a table on wide screens, like the original version of the Giving page.

simao4ever84
simao4ever84 commented Apr 24, 2020

Hello,
i'm writing to signal mmex crashes when I open reports
Summary of accounts
both monthly and yearly.
Let me know if you need more information about.
Thanks


Version: 1.3.4
• db 7 • (aes128cbc)


Libs:
• wxWidgets 3.1.3 (wxMac 10.14)
• wxSQLite3 4.4.8 (SQLite 3.30.1)
• RapidJSON 1.1.0
• Lua 5.3.5
• libcurl/7.54.0 LibreSSL
WulfP
WulfP commented Jan 7, 2019

Instead on Tab-out the original value ist restored.

suggested solution:

unformat (value) {
  var emptyString = typeof value === 'string' && value === ''
  value = parseFloat(value.replace ? value.replace(",",".") : value)
  const toUnformat = emptyString ? this.emptyValue : value
  return accounting.unformat(toUnformat, this.decimalSeparatorSymbol)
}

The condition

Improve this page

Add a description, image, and links to the money topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the money topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.