You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SDK you're using (please complete the following information):
4.14
Describe the bug
I have created an invoice and uploaded a pdf as an attachment. This pdf represent the sales invoice that i want to mail to the client.
However, when i click on the send email button and i send the email with the sales invoce, the one that is sent in the email is not the one i uploaded. but one created by xero using a different template. How can a an attachment to an invoice and mark it to be the pdf is to be included in the email sent to the customer?
To Reproduce
Here is the code i use to upload the attachemtn:
SDK you're using (please complete the following information):
4.14
Describe the bug
I have created an invoice and uploaded a pdf as an attachment. This pdf represent the sales invoice that i want to mail to the client.
However, when i click on the send email button and i send the email with the sales invoce, the one that is sent in the email is not the one i uploaded. but one created by xero using a different template. How can a an attachment to an invoice and mark it to be the pdf is to be included in the email sent to the customer?
To Reproduce
Here is the code i use to upload the attachemtn:
Invoice newinvoice = result.getInvoices().get(0); logger.debug("line 462, returning invoice=" + newinvoice.toString()); UUID invoiceid = newinvoice.getInvoiceID(); Invoices retinvoices = accountingApi.getInvoice(access_token, xero_tenant_id, invoiceid, null); //logger.debug("line 448, returning invoice=" + retinvoices.getInvoices().get(0).getAmountDue()); String basename= FilenameUtils.getName(filename); logger.debug("line 447, invoice created for customerorder " + customerorderid + " invoiceid=" + invoiceid + " basename=" + basename);
Expected behavior
The uploaded pdf becomes the sale invoice pdf emailed to a client
The text was updated successfully, but these errors were encountered: