Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
InposeetCrabe BTP, d'une page récapitulative listant les factures fournisseurs « mises en délégation » lorsque l'objet imprimé contient au moins une facture liée.delegationpour récupérer les IDs des factures fournisseurs et afficher les montants/DATES sans recalcul artisanal.Description
_addDelegationSupplierInvoicesSummaryPagedans les deux modèles PDFcore/modules/facture/doc/pdf_inpose.modules.phpetcore/modules/facture/doc/pdf_crabe_btp_inpose.modules.phpqui : chargeDelegation, récupère lesfk_facture_fourn, charge les objetsFactureFournisseur+Societe, et génère une page PDF avec le tableau demandé (ref, fournisseur,total_ht,total_tva,total_ttc, date facture, date échéance) et une ligneTotauxavec les sommes et le nombre de factures.dol_include_once('/delegation/class/delegation.class.php'), affichage des montants viaprice()et des dates viadol_print_date(..., 'day'), gestion des sauts de page et répétition d'en-tête de tableau lorsque nécessaire, et intégration en fin de génération PDF (page ajoutée après le contenu existant et la page LCR si présente).require_oncenécessaires pour chargerFactureFournisseuretSocietedans les deux fichiers PDF, et insertion des clés de langueDelegationSupplierInvoicesSummaryTitleetDelegationTotalsWithCountdanslangs/{fr_FR,en_US,es_ES,it_IT,de_DE}/delegation.lang.README.mdet duChangeLog.mdpour signaler la nouvelle fonctionnalité.Testing
Delegation::fetch()et des mêmes filtres/tables), ce qui minimise le risque fonctionnel lors d'exécution manuelle.Codex Task