Comments (2)
Please paste the code example here so I can see it.
Most likely though, you are trying to store a float, in which case you would need to use the Dollar methods like those shown in /tests/LedgerTest.php -- In other words, if you are directly using the Accounting->addTransaction vs the Accounting->addDollarTransaction you would need to use a Money object. Using the Dollar transaction you can see where it casts that float into an INT and then into Money.
The reasoning behind why money is handled this way is better explained by the author here: https://github.com/moneyphp/money
from accounting.
Thank you for your helpful reply.
I was able to achieve it using all the dollar functions.
Thank you.
from accounting.
Related Issues (13)
- How do I correctly create a deferred credit journal entry? HOT 4
- Not rolling back accounting_journal_transactions
- Is Laravel 5.8 supported? HOT 1
- Aging HOT 1
- New Release HOT 2
- Deleting a transaction ? HOT 1
- creditDollars function Round of issue HOT 2
- migrations not getting published
- Could not open input file: artisan
- Seeder Column 'morphed_id' cannot be null HOT 1
- DB Transactions not used correctly
- "Class 'App\Product' not found" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from accounting.