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 {
|
||||
const ticket = request.sale?.invoice_number || `SOL-${request.id}`;
|
||||
await whatsappService.sendDocument({
|
||||
await whatsappService.sendInvoice({
|
||||
phone_number: request.client.phone,
|
||||
document_url: request.invoice_pdf_url,
|
||||
filename: `${ticket}.pdf`,
|
||||
ticket,
|
||||
invoice_number: ticket,
|
||||
pdf_url: request.invoice_pdf_url,
|
||||
xml_url: request.invoice_xml_url ?? null,
|
||||
customer_name: request.client.name
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user