Packing invoices to zip

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • emillod
    Active Community Member
    • Apr 2017
    • 1405

    Packing invoices to zip

    Hello
    we have salespack and we're thinking about packing all invoices after we close month and sending them all to our account department.
    Wa already did script which is saving invoice as attachment after status change to confirm.
    Anyone did this?

    I'm thinking about script which will:
    1. Fetch all invoices from last month through GET api
    2. Selecting all attachments ids
    3. Copying all files from upload folder based on ids which i fetched earlier
    4. packing all attachments to archive

    Maybe there is a better way?
  • item
    Active Community Member
    • Mar 2017
    • 1476

    #2
    Hello Emilod,

    i do somthing same but not with salePack.
    i have some jobs who do same think.. but not with salePack :
    - job who read all a xlsx file for a period, each row is a contact data.. then make pdf/docx from this.. and then send to contact ftp and attach the result to stream of contact.
    - button who launch a service, and get (pdf) from entity for a period .. zip all and the user download this.

    it's easy to make pdf, it's easy to zip .. it's easy to loop on entity with your filter.. and it's easy to attach to account
    I think you need somethink same think ... i prefere (job) ...this is my opinion

    Regards


    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

    Comment

    Working...