Comments (9)
Oh sorry
I meant orderId_app_name_snake_case.pdf
from cashier-mollie.
Yeah, looks great. Filenames will be unique and traceable.
from cashier-mollie.
I agree @MSnoeren that the automatically generated invoice reference (id) would be a better default.
Perhaps we could bind an InvoiceFilenameGenerator
into the container with this behaviour?
It could take the Invoice object as input.
from cashier-mollie.
Yeah, that would be great. If neccesary, others can create a custom class to generate their own filenames.
from cashier-mollie.
How about this for default: YYY-MM-DD-app_name_snake_case.pdf
?
from cashier-mollie.
Putting it on my list. Feel free to submit a PR, otherwise I'll pick it up whenever I find the time.
from cashier-mollie.
Hi guys,
I'm going to use mollie with cashier package and can help on enhancements if needed.
Here in italy we organize phisical invoice archives by a number (called protocol, similar to invoice number) but when we needs to manage digital invoices a common patters is:
yyyymmdd_invnumber.pdf
Is unclear what app_name is for? if you refer to config('app.name') this can be userd by company with more than one department or for invoices downloaded by customer then you can simply:
yyyymmdd_invnumber_appname.pdf
from cashier-mollie.
Thanks @Mindexperiment,
The app name indeed refers to the config app name. Invoices tend to end up in a customer’s download folder, appending the app name will make it more readable there.
from cashier-mollie.
I have prepared this for the v1 release. The separate filename generator is not yet included. Feel free to send in a PR for that.
from cashier-mollie.
Related Issues (20)
- Same plan with different intervals HOT 1
- Questions HOT 3
- First 1500 customer one year €25 discount / Exclude customers from discount when they have already have one HOT 3
- Guzzle timeout when trying to create a new customer. HOT 5
- PHP8 update confilct HOT 1
- Recurrent payment HOT 17
- Testing webhooks locally HOT 3
- Question about events HOT 6
- Get checkout URL for failed order payments HOT 1
- user id rounded up HOT 1
- Question regarding API KEY HOT 1
- Not Understanding HOT 1
- See when a subscription is up for renewal HOT 1
- Event OrderInvoiceAvailable is dispatched multiple times HOT 1
- 1305 SAVEPOINT trans2 does not exist HOT 1
- Charge based on days of the month left HOT 1
- How to create different pricings for subscriptions based on user country? HOT 2
- Current subscription end date HOT 5
- Is it possible to mandate multiple subscriptions in one initial payment HOT 3
- Interval of subscription not updating
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 cashier-mollie.