Git Product home page Git Product logo

syliusinvoicingplugin's Issues

Invoice path should be stored relatively to invoices_root_dir

Once invoice file has been generated, its absolute path is hardcoded in database. This could be a problem if you want to move your Sylius project elsewhere!

Could we just store path relative to invoices_root_dir parameter, so that we just store 19be581a08453.pdf in database. This would much more portable.

[FR] Generate invoices at «complete» Order state and invoice number template

I will try to create a PR for this.

French law requires e-commerce resellers to:

  • send invoices for their customers even if they’re not professional and even without VAT number,
  • have unique and consecutive invoice numbers for the same selling unit (channel)

So I suggest to enhance this plugin to subscribe to the Sylius order completed state to generate invoice only if payment has succeded, not to generate invoices all the time (kind of boring to generate cancelled invoices if user changes his mind before payment). In this case, invoices are acting like order receipts that resellers have to print and include into the shipping box at least, but it occurs after payment and not before.

For the unique and consecutive invoice numbers, I suggest to add configurable and automatic number template. For example: WEB-YYYY-XXXXX should stand for WEB-2018-00001 for the first invoice generated in 2018. We can even use channel code such as in $channel-YYYY-XXXXX. This invoice number template could be editable in the config.yml or, even better, in the CompanyData entity.

  • I can provide this invoice number generator feature in a Composer lib as I’ve already developed this for an other PHP project.

These features may lead too far from this original plugin goal, but we can add this as an optional
and configurable features.

Sorry for the long issue… 🥔

Call to a member function get() on null

Hi, when I want to add or edit address in frontstore in my account I'm getting this error:

screen shot 2018-03-13 at 01 06 14

Moreover I'm still not able to get this plugin works. I've override two twig templates that you are describing in the readme, but still without success. My bitbag_invoicing_invoice table is still empty. I'm I missing something? wkhtmltopdf installed, company data filled, billing adress in checkout step filled. Is it supposed to generate invoice after every complete step? I'm on sylius-standard 1.1.1 and invoice-plugin:dev-master. Thx!

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.