Skip to content

Conversation

@HaddadJoe
Copy link
Contributor

This will allow generation of ref objects for the invoice class.

invoice = Invoice()
attachment = Attachable()  # object to create an attachment on quickbooks

attachable_ref = AttachableRef()  # object to attach references to the attachment object

attachable_ref.EntityRef = invoice.to_ref()
attachment.AttachableRef.append(attachable_ref)

attachment.FileName = "test.txt"
attachment.ContentType = "text/plain"
attachment._FilePath = f"/temp/dir/test.txt"  # full path to file
attachment.save(qb=quickbooks_client)

@ej2 ej2 merged commit 629130b into ej2:master Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants