Announcement

Collapse
No announcement yet.

Packing invoices to zip

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #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


    Comment

    Working...
    X