|
@@ -118,7 +118,7 @@ const CreateInvoice: React.FC = ({ |
|
|
try { |
|
|
try { |
|
|
// Make an API request to generate the JasperReport |
|
|
// Make an API request to generate the JasperReport |
|
|
|
|
|
|
|
|
const response = await fetch(`https://tsms-uat.2fi-solutions.com/invoices/pdf`, { |
|
|
|
|
|
|
|
|
const response = await fetch(`https://tsms-uat.2fi-solutions.com/back-api/invoices/pdf`, { |
|
|
method: 'POST', |
|
|
method: 'POST', |
|
|
headers: { |
|
|
headers: { |
|
|
'Content-Type': 'application/json', |
|
|
'Content-Type': 'application/json', |
|
|