Skip to content

Bug sendmail sales purchases#1764

Merged
NeoRazorX merged 5 commits intoNeoRazorX:masterfrom
daniel89fg:bug-sendmail-sales-purchases
Oct 1, 2025
Merged

Bug sendmail sales purchases#1764
NeoRazorX merged 5 commits intoNeoRazorX:masterfrom
daniel89fg:bug-sendmail-sales-purchases

Conversation

@daniel89fg
Copy link
Copy Markdown
Contributor

Al enviar un documento de compras da error en la línea 197 porque no existen las propiedades adecuadas.

¿Cómo has probado los cambios?

Toda modificación debe haber sido mínimamente probada. Marca o describe las pruebas que has realizado:

  • He revisado mi código antes de enviarlo.
  • He probado que funciona correctamente en mi PC.
  • He probado que funciona correctamente con una base de datos vacía.
  • He ejecutado los tests unitarios.

…piedades alternativas para 'nombrecliente' y 'numero2'.
Copilot AI review requested due to automatic review settings July 23, 2025 07:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug in the SendMail controller where sending purchase documents was failing due to missing properties on line 197. The fix adds dynamic property checking to handle different document types that may use different property names for customer/supplier names and document numbers.

  • Replaces direct property access with conditional property checking using property_exists()
  • Updates copyright year to 2025 in template files
  • Adds version parameters to CSS/JS assets for cache busting

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
Core/Controller/SendMail.php Implements dynamic property checking to handle different document types with varying property names
Core/View/Master/MicroTemplate.html.twig Updates copyright year and adds version parameters to asset URLs
Core/View/Master/MenuTemplate.html.twig Updates copyright year and adds version parameters to asset URLs

Comment thread Core/Controller/SendMail.php
Comment thread Core/Controller/SendMail.php
Comment thread Core/Controller/SendMail.php Outdated
@NeoRazorX NeoRazorX merged commit e2f3e85 into NeoRazorX:master Oct 1, 2025
22 checks passed
@daniel89fg daniel89fg deleted the bug-sendmail-sales-purchases branch October 1, 2025 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants