Jump to content
  • 0

Mass Export Of Invoices


a.daniello

Question

14 answers to this question

Recommended Posts

  • 0

i need the same feature , i have this MOD in my personnal TODO list . but until i arrive to this mod , i have almost 20 plugins/modules to finish (personnal) , and about 10 plugins/modules for the cummunity in free version . i don't count the payed plugins/modules :) .

but if you want to make a plugin for this , is not to complicated , i have the scenario -/+ how to do it in my mind .

1 - select generated invoice between date xxxx and date xxxx . (here store just the invoices ID in array)

2 - for each invoice run the donwload invoice function , and store it under a custome folder .

enjoy :)

Link to comment
Share on other sites

  • 0

+1 for this feature.

 

Its not very hard, like naja7host said :)

 

We will also need for our accounting and a few extras like:

 

1º- PDF Final Invoice Exporting (this is in this forum)

2º- SAF-T (Standard Audit File for Tax) - its a XML file standard for exporting all Clients Data + Services Data + Invoices Data in one big XML file for all EU countries for legal accounting

 

More info in here:

http://en.wikipedia.org/wiki/SAF-T

http://ec.europa.eu/taxation_customs/resources/documents/taxation/tax_fraud_evasion/com_2012_722_en.pdf

 

We are using a report that we build for our own WHMCS and we will port to blesta and release here wen time comes to finally go with blesta live :)

Link to comment
Share on other sites

  • 0

i want just to give you more info that can help you todo this task . the TCPDF wrapper support saving file to a local folder , so basically you didn't need to code any thing to save the output , what you need is just a code like this

 

Loader::loadComponents($this, array("SettingsCollection", "Upload"));

$temp = $this->SettingsCollection->fetchSetting(null, Configure::get("Blesta.company_id"), "uploads_dir");
$upload_path = $temp['value'] . Configure::get("Blesta.company_id") . DS . "pdf_files" . DS;
// Create the upload path if it doesn't already exist
$this->Upload->createUploadPath($upload_path, 0777);

$this->pdf->Output($upload_path . $name . "." . $this->getFileExtension($this->mime_type), 'F');
this code will save the files to the upload folder inside the c ompany folder , in pdf_files folder .

you can customise more to add a subfolder fot the dates of the generated invoice .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...