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

Qual - Optimize requests in sells journal for situation invoices #30609

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions htdocs/accountancy/journal/sellsjournal.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,7 @@
$line->fetch($obj->fdid);

// Situation invoices handling
$prev_progress = $line->get_prev_progress($obj->rowid);

$prev_progress = $line->getPrevProgressFromInvoiceCycleRefAndType($obj->situation_cycle_ref, $obj->type);
$situation_ratio = ($obj->situation_percent - $prev_progress) / $obj->situation_percent;
}
}
Expand Down
1 change: 1 addition & 0 deletions htdocs/compta/facture/class/facture-rec.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
require_once DOL_DOCUMENT_ROOT.'/core/class/notify.class.php';
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/factureligne.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';


Expand Down
Loading