Skip to content
Code-Schnipsel Gruppen Projekte
  1. Feb 25, 2025
  2. Feb 22, 2025
    • Henning Leutz's avatar
      chore(phpstan): address unknown classes for PHPStan analysis · 81afaecb
      verfasst von Henning Leutz
      This commit addresses the issue of PHPStan not recognizing certain classes for type validation
      within our PHP codebase. This is done by adding these classes to the PHPStan configuration as
      ignored errors. This ensures accuracy in our static analysis for errors and warnings. Key classes
      such as QUI\\ERP\\Process, QUI\\ERP\\Accounting\\Calc and QUI\\ERP\\Accounting\\ArticleList have
      been catered to.
      81afaecb
    • Henning Leutz's avatar
      refactor: ignore phpstan warnings in calc.php · 23b6910c
      verfasst von Henning Leutz
      Updated calcArticleList method in Calc.php to ignore PHPStan warnings using the
      `@phpstan-ignore-line` and `@phpstan-ignore-next-line` directives. Also, added a TODO comment
      regarding net calculations.
      23b6910c
    • Henning Leutz's avatar
      fix(phpstan): optimize attribute checks and method calls in erp classes · 9233e394
      verfasst von Henning Leutz
      In this commit, several changes have been made to streamline the Manufacturer and Process classes
      within the ERP module:
      
      - Replaced the non-empty check for 'firstname' and 'lastname' attributes in the User class with an
      `empty()` function, resulting in cleaner code without changing the functionality.
      - Replaced the argument in `User->activate()` from `false` to `''` for consistency.
      - Removed unnecessary annotations and some unused `protected` properties from the Process class.
      - Altered the procedure to retrieve `salesOrder` from the Entity in the Process class. Now, the
      method first tries to retrieve it via `getPaymentDataEntry()`, and if unavailable, it attempts to
      fetch it using `getCustomDataEntry()`. This ensures a more robust and reliable retrieval of the
      'salesOrder' property.
      - Added `@phpstan-ignore-next-line` in the Processes class to prevent phpstan from throwing
      unwarranted warnings regarding the following code line in specific scenarios.
      
      Related: #103
      9233e394
    • Henning Leutz's avatar
      fix(phpstan): price calculation, logging, and file handling improvements · 511794c3
      verfasst von Henning Leutz
      In this commit, several enhancements are made in the ajax price calculation PHP files including
      more verbose error logging and minor refactoring of the calculation itself. Instead of adding an
      error message in QUI, we now add detailed error handling using QUI\System\Log.
      
      Additionally, we have improved file handling in `ajax/output/sendMail.php` by ensuring the file is
      an instance of `QUI\Projects\Media\File` or `QUI\Projects\Media\Image` before attaching it.
      
      Lastly, we added an option for parsing in method getCustomerFiles of the ErpEntityInterface. This
      commit will make the scripts more efficient and robust against errors.
      511794c3
    • Henning Leutz's avatar
      fix(phpstan): php8.4 null deprecated · dba1b6d6
      verfasst von Henning Leutz
      Related: #103
      dba1b6d6
  3. Feb 19, 2025
    • Henning Leutz's avatar
      fix: update payment status constants in calc.php · 1d048c81
      verfasst von Henning Leutz
      Changed the constants 'TYPE_INVOICE_REVERSAL' and 'TYPE_INVOICE_CANCEL' to 'PAYMENT_STATUS_ERROR'
      and 'PAYMENT_STATUS_CANCELED' respectively. This will ensure that the payment status are correctly
      identified and processed.
      1d048c81
  4. Feb 10, 2025
    • Henning Leutz's avatar
      fix(phpstan): added exception handling for missing html2pdf module in OutputTemplate · 4fbeb229
      verfasst von Henning Leutz
      In OutputTemplate.php, a check has been added to ensure the existence of the
      'QUI\\HtmlToPdf\\Document' class before using it. If the class does not exist, an error message is
      logged, and an exception is thrown indicating that the html2pdf module is missing. This fix is
      aimed at avoiding potential errors that may occur due to the absence of the required module.
      4fbeb229
    • Henning Leutz's avatar
      fix: argument must be of type OutputProviderInterface · 8fe7b2ed
      verfasst von Henning Leutz
      Changed the variable name `$OutputProvider` to `$outputProvider` to adhere to camelCase naming
      standards. Also moved the instantiation of `$outputProvider` inside an if block to prevent
      unnecessary instantiation when `$outputProvider` is empty.
      
      Related: pcsg/kunden/libellio/b2c/core#196
      8fe7b2ed
  5. Feb 04, 2025
  6. Jan 15, 2025
  7. Dez 30, 2024
  8. Dez 28, 2024
  9. Nov 28, 2024
  10. Nov 26, 2024
  11. Nov 19, 2024
  12. Nov 18, 2024
  13. Nov 05, 2024
  14. Nov 04, 2024
  15. Okt 31, 2024
  16. Okt 23, 2024
  17. Okt 18, 2024
  18. Okt 14, 2024
  19. Okt 10, 2024
  20. Sep 18, 2024
  21. Sep 10, 2024
  22. Aug 29, 2024