fix: actualizar método de envío de factura por WhatsApp
This commit is contained in:
parent
dec134d0f6
commit
8db99aa5ee
@ -158,11 +158,11 @@ const sendInvoiceByWhatsapp = async () => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const ticket = request.sale?.invoice_number || `SOL-${request.id}`;
|
const ticket = request.sale?.invoice_number || `SOL-${request.id}`;
|
||||||
await whatsappService.sendDocument({
|
await whatsappService.sendInvoice({
|
||||||
phone_number: request.client.phone,
|
phone_number: request.client.phone,
|
||||||
document_url: request.invoice_pdf_url,
|
invoice_number: ticket,
|
||||||
filename: `${ticket}.pdf`,
|
pdf_url: request.invoice_pdf_url,
|
||||||
ticket,
|
xml_url: request.invoice_xml_url ?? null,
|
||||||
customer_name: request.client.name
|
customer_name: request.client.name
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user