Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-Rename Drag & Drop Attachments for Vendor Invoices #32873

Open
Markusi13 opened this issue Jan 30, 2025 · 1 comment
Open

Auto-Rename Drag & Drop Attachments for Vendor Invoices #32873

Markusi13 opened this issue Jan 30, 2025 · 1 comment
Labels
Feature request This is a feature request

Comments

@Markusi13
Copy link
Contributor

Feature Request

Currently, when uploading a file via the Linked Files tab in a vendor invoice, Dolibarr automatically renames the file to the format:

InvoiceNumber-OriginalFilename

Image

However, when using the Drag & Drop feature to upload files directly into the invoice, the file is uploaded with its original filename, without the invoice number prefix.

Image

It would be highly beneficial to introduce a configuration option that ensures files uploaded via Drag & Drop in a vendor invoice are automatically renamed in the same format as the Linked Files tab.

Additional Notes:

This feature should not apply only to vendor invoices, but also to normal invoice.

Use case

Benefits:

  • Improves consistency between different upload methods.
  • Makes it easier to identify files associated with specific invoices.
  • Reduces manual renaming efforts and improves document organization.

Suggested implementation

Requested Behavior:

When a file is uploaded using Drag & Drop within a vendor invoice, Dolibarr should rename the file to:

InvoiceNumber-OriginalFilename

This should function identically to how files are renamed when uploaded via the Linked Files tab.
The feature should be controlled by an optional setting in the configuration, so users who prefer the default behavior can disable it.

Suggested steps

No response

@Markusi13 Markusi13 added the Feature request This is a feature request label Jan 30, 2025
@Markusi13
Copy link
Contributor Author

Could maybe be interessting for every drag & drop function. Not only limited to invoices and vendor invoices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request This is a feature request
Projects
None yet
Development

No branches or pull requests

1 participant