Skip to content
Code-Schnipsel Gruppen Projekte
  1. Mär 18, 2025
    • Henning Leutz's avatar
      Merge branch 'next-3.x' into 'main' · 6a5d731c
      verfasst von Henning Leutz
      fix: adjust uuid usage
      
      See merge request !177
      3.11.1
      6a5d731c
    • Henning Leutz's avatar
      fix: adjust uuid usage · 5bf21ccc
      verfasst von Henning Leutz
      Multiple changes were made to improve code quality and functionality. Here's a summary of the
      changes:
      
      - Debug log statements were removed from `ArticleList.js` and `ArticleSummary.js` for calculation
      enabling and disabling methods. This helps to keep the console clean and focussed on critical
      issues.
      - Changed a misused property name from `hash` to `uuid` in `CopyErpEntityDialog.js`. This ensures
      correct usage of identifiers.
      - Multiple formatting changes for function declarations in `ERPEntities.js`, functions now follow
      the format `function () {}` for unnamed functions.
      - A `#id` field is newly included in `openPanelByUUID` function of `ERPEntities.js`.
      
      These changes are expected to augment the performance of ERP modules, and improve the overall
      readability of the code.
      5bf21ccc
  2. Mär 07, 2025
  3. Mär 06, 2025
  4. Feb 26, 2025
    • Henning Leutz's avatar
      Merge branch 'next-3.x' into 'main' · fcf8f609
      verfasst von Henning Leutz
      fix: allow null user type in setuser methods and improve type hinting
      
      See merge request !173
      3.10.11
      fcf8f609
    • Henning Leutz's avatar
      fix: allow null user type in setuser methods and improve type hinting · eefbf9a0
      verfasst von Henning Leutz
      This commit includes changes made to both the Article.php and ArticleList.php classes in the
      QUI\ERP\Accounting directory. The setUser methods now accept a null type for the 'User' parameter,
      giving more flexibility when calculating user details.
      
      Type hinting was also improved in the ArticleList class. The variable type indicators were changed
      from 'int|float' to 'int | float', and from 'Factor|QUI\\ERP\\Products\\Utils\\PriceFactor' to
      'Factor | QUI\\ERP\\Products\\Utils\\PriceFactor', improving readability and clarity of code.
      
      Lastly, the 'template' and 'articleTemplate' parameters in the 'toHTMLWithCSS' method now support
      both 'bool' and 'string' types, adding flexibility to template usage.
      eefbf9a0
  5. Feb 25, 2025
  6. Feb 22, 2025
    • Henning Leutz's avatar
      Merge branch 'next-3.x' into 'main' · 2810542c
      verfasst von Henning Leutz
      fix(phpstan): added exception handling for missing html2pdf module in OutputTemplate
      
      See merge request !169
      3.10.9
      2810542c
    • 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
  7. 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
  8. Feb 10, 2025
  9. Feb 04, 2025
  10. Jan 15, 2025
  11. Dez 30, 2024
  12. Dez 28, 2024
  13. Nov 28, 2024
  14. Nov 26, 2024
  15. Nov 19, 2024
  16. Nov 18, 2024