diff --git a/src/components/POS/GoogleForm.vue b/src/components/POS/GoogleForm.vue
new file mode 100644
index 0000000..92f846e
--- /dev/null
+++ b/src/components/POS/GoogleForm.vue
@@ -0,0 +1,125 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ footerText }}
+
+
+
+
+
diff --git a/src/pages/POS/Factura/Index.vue b/src/pages/POS/Factura/Index.vue
index 4c8fa14..f3a318d 100644
--- a/src/pages/POS/Factura/Index.vue
+++ b/src/pages/POS/Factura/Index.vue
@@ -11,6 +11,7 @@ import Input from '@Holos/Form/Input.vue';
import PrimaryButton from '@Holos/Button/Primary.vue';
import SelectUsoCfdi from '@Components/POS/CfdiSelector.vue';
import SelectRegimenFiscal from '@Components/POS/RegimenSelector.vue';
+import GoogleForm from '@Components/POS/GoogleForm.vue';
/** Definidores */
const route = useRoute();
@@ -27,6 +28,7 @@ const formErrors = ref({});
const searchingRfc = ref(false);
const rfcSearch = ref('');
const rfcSearchError = ref('');
+const showGoogleForm = ref(true);
const form = ref({
name: '',
@@ -73,6 +75,8 @@ const canRequestInvoice = computed(() => {
/** Helpers */
const getRegimenFiscalLabel = (value) => regimenFiscalOptions.find(o => o.value === value)?.label ?? value;
const getUsoCfdiLabel = (value) => usoCfdiOptions.find(o => o.value === value)?.label ?? value;
+const statusLabels = { pending: 'Pendiente', processed: 'Completada', rejected: 'Rechazada' };
+const getStatusLabel = (status) => statusLabels[status] ?? status;
/** Métodos */
const fetchSaleData = () => {
loading.value = true;
@@ -186,6 +190,7 @@ const submitForm = () => {
window.axios.post(apiURL(`facturacion/${invoiceNumber.value}`), form.value)
.then(() => {
submitted.value = true;
+ showGoogleForm.value = true;
})
.catch(({ response }) => {
if (response?.status === 422 && response.data?.errors) {
@@ -247,7 +252,7 @@ onMounted(() => {
@@ -371,7 +376,7 @@ onMounted(() => {
Solicitud #{{ request.id }}
- {{ request.status }}
+ {{ getStatusLabel(request.status) }}
@@ -658,8 +663,17 @@ onMounted(() => {
-
¿Tiene dudas? Contáctenos
+
¿Tiene dudas? Visitanos para poder ayudarte.
+