rangka / quickbooks

PHP Library for connecting to QuickBooks.
MIT License
8 stars 11 forks source link

Service Request: can you add uploading of attachment for invoice #8

Closed richardhdc closed 7 years ago

richardhdc commented 7 years ago

Service Request: can you add service for uploading of attachment for invoice

khairulashraff commented 7 years ago

Hello @richardhdc. I have implement it.

Usage;

$files = [
    [
        'path' => '/path/to/file', // Required
        'type' => 'image/png'      // Optional
        'name' => 'filename.png'   // Optional
    ]
];

$service = new \Rangka\Quickbooks\Services\Invoice;
$service->attach($id, $files);

You can refer to the README.md for some more info.

richardhdc commented 7 years ago

Wow! I've been trying to code it myself but you done it better. I will try it today. Good job mate!