GithubHelp home page GithubHelp logo

Comments (4)

PovilasKorop avatar PovilasKorop commented on July 17, 2024

@igun997 very weird, it works perfectly for me.

Your error points to this parameter missing:

$this->currency_decimals            = config('invoices.currency.decimals');

Which should be set by default anyway, but maybe something is missing on your end.

Have you done php artisan invoices:install?
If not, please do so.
If you did, please tell me what is the value of your config/invoices.php file's 'currency' => ['decimals' => X]]

from laravel-invoices.

igun997 avatar igun997 commented on July 17, 2024

'currency' => [ 'code' => 'idr', /** * Usually cents * Used when spelling out the amount and if your currency has decimals. * * Example: Amount in words: Eight hundred fifty thousand sixty-eight EUR and fifteen ct. */ 'fraction' => 'ct.', 'symbol' => 'Rp', /** * Example: 19.00 */ 'decimals' => 2, /** * Example: 1.99 */ 'decimal_point' => '.', /** * By default empty. * Example: 1,999.00 */ 'thousands_separator' => '', /** * Supported tags {VALUE}, {SYMBOL}, {CODE} * Example: 1.99 € */ 'format' => '{VALUE} {SYMBOL}', ],

this

from laravel-invoices.

igun997 avatar igun997 commented on July 17, 2024

yes i have done instalation like on insruction

from laravel-invoices.

PovilasKorop avatar PovilasKorop commented on July 17, 2024

@igun997 no idea, to be honest, tried with exact same config - copy-pasted your values, I get this PDF:
Screen Shot 2020-01-02 at 7 38 23 AM

Maybe try to copy-paste the code once again, and make sure you didn't mix any symbol, maybe some bracket or other symbol is incorrect?

Or, you can put your code to github and attach me as collaborator, then I could debug it for you on your project, maybe.

from laravel-invoices.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.