suggest some fix to debug situation invoices
This commit is contained in:
parent
6d62e92e12
commit
434341316b
@ -83,7 +83,7 @@ print '<td class="linecoldiscount right">'.$langs->trans('ReductionShort').'</td
|
|||||||
// Fields for situation invoice
|
// Fields for situation invoice
|
||||||
if ($this->situation_cycle_ref) {
|
if ($this->situation_cycle_ref) {
|
||||||
print '<td class="linecolcycleref right">' . $langs->trans('Progress') . '</td>';
|
print '<td class="linecolcycleref right">' . $langs->trans('Progress') . '</td>';
|
||||||
print '<td class="linecolcycleref2 right">' . $langs->trans('TotalHT100Short') . '</td>';
|
print '<td class="linecolcycleref2 right">' . $form->textwithpicto($langs->trans('TotalHT100Short'), $langs->trans('UnitPriceXQtyLessDiscount')) . '</td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($usemargins && ! empty($conf->margin->enabled) && empty($user->societe_id))
|
if ($usemargins && ! empty($conf->margin->enabled) && empty($user->societe_id))
|
||||||
|
|||||||
@ -475,6 +475,11 @@ UPDATE llx_accounting_bookkeeping set date_creation = tms where date_creation IS
|
|||||||
-- UPDATE llx_facturedet_rec set label = NULL WHERE label IS NOT NULL;
|
-- UPDATE llx_facturedet_rec set label = NULL WHERE label IS NOT NULL;
|
||||||
|
|
||||||
|
|
||||||
|
-- Test inconsistency of data into situation invoices: If it differs, it may be the total_ht that is wrong and situation_percent that is good.
|
||||||
|
-- select f.rowid, f.type, qty, subprice, situation_percent, total_ht, total_ttc, total_tva, multicurrency_total_ht, multicurrency_total_tva, multicurrency_total_ttc, (situation_percent / 100 * subprice * qty * (1 - (fd.remise_percent / 100)))
|
||||||
|
-- from llx_facturedet as fd, llx_facture as f where fd.fk_facture = f.rowid AND (total_ht - situation_percent / 100 * subprice * qty * (1 - (fd.remise_percent / 100))) > 0.01 and f.type = 5;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- Note to migrate from old counter aquarium to new one
|
-- Note to migrate from old counter aquarium to new one
|
||||||
-- drop table tmp;
|
-- drop table tmp;
|
||||||
|
|||||||
@ -555,3 +555,4 @@ AutoFillDateTo=Set end date for service line with next invoice date
|
|||||||
AutoFillDateToShort=Set end date
|
AutoFillDateToShort=Set end date
|
||||||
MaxNumberOfGenerationReached=Max number of gen. reached
|
MaxNumberOfGenerationReached=Max number of gen. reached
|
||||||
BILL_DELETEInDolibarr=Invoice deleted
|
BILL_DELETEInDolibarr=Invoice deleted
|
||||||
|
UnitPriceXQtyLessDiscount=Unit price x Qty - Discount
|
||||||
Loading…
Reference in New Issue
Block a user