From 9b43327af08bd0296625ce7c23049ab574efc200 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 17 Aug 2021 01:06:26 +0200 Subject: [PATCH] Update accountancyexport.class.php --- htdocs/accountancy/class/accountancyexport.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/accountancy/class/accountancyexport.class.php b/htdocs/accountancy/class/accountancyexport.class.php index f5ef8114e7b..bad25217139 100644 --- a/htdocs/accountancy/class/accountancyexport.class.php +++ b/htdocs/accountancy/class/accountancyexport.class.php @@ -1462,14 +1462,14 @@ class AccountancyExport print $date_lim_reglement.$separator; // CNPI if ($line->doc_type == 'supplier_invoice') { - if (($line->amount) < 0) { // Currently, only the sign of amount allows to know the type of invoice (warning: not reliable). TODO Add column doc_type_long + if (($line->amount) < 0) { // Currently, only the sign of amount allows to know the type of invoice (standard or credit note). Other solution is to analyse debit/credit/role of account. TODO Add column doc_type_long $nature_piece = 'AF'; } else { $nature_piece = 'FF'; } } elseif ($line->doc_type == 'customer_invoice') { if (($line->amount) < 0) { - $nature_piece = 'AC'; // Currently, only the sign of amount allows to know the type of invoice (warning: not reliable). TODO Add column doc_type_long + $nature_piece = 'AC'; // Currently, only the sign of amount allows to know the type of invoice (standard or credit note). Other solution is to analyse debit/credit/role of account. TODO Add column doc_type_long } else { $nature_piece = 'FC'; }