Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DA025251 #486

Merged
merged 2 commits into from
Jul 16, 2024
Merged

DA025251 #486

merged 2 commits into from
Jul 16, 2024

Conversation

atm-jonathan
Copy link

FIX|Fix #[issue_number Short description]

[Long description]
Non affichage du tableau de paiement sur les pdf facture

Quand on a des lignes de type prélévements négative et positive
Et que le somme des lignes est égal a 0

Avant l'affichage était conditionné par le fait que la somme des lignes de paiement était positive, maintenant on prend aussi en compte le fait qu'il existe bien des lignes pour les afficher sur la PDF.

@@ -257,8 +257,7 @@ public function write_file($object, $outputlangs, $srctemplatepath = '', $hidede

if ($conf->facture->dir_output) {
$object->fetch_thirdparty();

$deja_regle = $object->getSommePaiement((isModEnabled("multicurrency") && $object->multicurrency_tx != 1) ? 1 : 0);
$deja_regle = $object->getSommePaiement((isModEnabled("multicurrency") && $object->multicurrency_tx != 1) ? 1 : 0, $hasPaiements);

Choose a reason for hiding this comment

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

tu n'as pas initialisé ta variable

@@ -290,7 +290,7 @@ public function write_file($object, $outputlangs, $srctemplatepath = '', $hidede
if ($conf->facture->multidir_output[$conf->entity]) {
$object->fetch_thirdparty();

$deja_regle = $object->getSommePaiement((isModEnabled("multicurrency") && $object->multicurrency_tx != 1) ? 1 : 0);
$deja_regle = $object->getSommePaiement((isModEnabled("multicurrency") && $object->multicurrency_tx != 1) ? 1 : 0, $hasPaiements);

Choose a reason for hiding this comment

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

tu n'as pas initialisé ta variable

@atm-quentin atm-quentin merged commit 418bf92 into 19.0_securidis Jul 16, 2024
3 checks passed
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.

2 participants