mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Importador rama con ajuste del precio
This commit is contained in:
@ -159,7 +159,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
const result = await response.json();
|
const result = await response.json();
|
||||||
|
|
||||||
if (response.ok && result.status === 200) {
|
if (response.ok && result.status === 200) {
|
||||||
const skUrl = result.data?.sk_url ?? null;
|
const skUrl = result.data?.sk_url?.replace('presupuestocliente', 'presupuestoadmin') ?? null;
|
||||||
|
|
||||||
// Actualizar campo "Notas" con el enlace
|
// Actualizar campo "Notas" con el enlace
|
||||||
if (skUrl) {
|
if (skUrl) {
|
||||||
@ -266,7 +266,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
const result = await response.json();
|
const result = await response.json();
|
||||||
|
|
||||||
if (response.ok && result.status === 200) {
|
if (response.ok && result.status === 200) {
|
||||||
const skUrl = result.data?.sk_url ?? null;
|
const skUrl = result.data?.sk_url?.replace('presupuestocliente', 'presupuestoadmin') ?? null;
|
||||||
|
|
||||||
if (skUrl) {
|
if (skUrl) {
|
||||||
fila.rowData[6] = `<a href="${skUrl}" target="_blank" class="btn btn-sm btn-primary">Ver presupuesto</a>`;
|
fila.rowData[6] = `<a href="${skUrl}" target="_blank" class="btn btn-sm btn-primary">Ver presupuesto</a>`;
|
||||||
|
|||||||
Reference in New Issue
Block a user