Update new LDCompta Export
This commit is contained in:
parent
16f44b0963
commit
04dc9e957f
@ -930,7 +930,7 @@ class AccountancyExport
|
|||||||
{
|
{
|
||||||
|
|
||||||
$separator = ';';
|
$separator = ';';
|
||||||
$end_line = "\n";
|
$end_line = "\r\n";
|
||||||
|
|
||||||
foreach ($objectLines as $line) {
|
foreach ($objectLines as $line) {
|
||||||
|
|
||||||
@ -984,8 +984,9 @@ class AccountancyExport
|
|||||||
print $separator;
|
print $separator;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
print $separator; // deprecated CPTG & CPTA use instead
|
||||||
// MONT
|
// MONT
|
||||||
print price(abs($line->montant)) . $separator;
|
print price(abs($line->montant), 0, '', 1, 2) . $separator;
|
||||||
// CODC
|
// CODC
|
||||||
print $line->sens . $separator;
|
print $line->sens . $separator;
|
||||||
// CPTG
|
// CPTG
|
||||||
@ -999,15 +1000,54 @@ class AccountancyExport
|
|||||||
// CPTA
|
// CPTA
|
||||||
if (! empty($line->subledger_account)) {
|
if (! empty($line->subledger_account)) {
|
||||||
print length_accounta($line->subledger_account) . $separator;
|
print length_accounta($line->subledger_account) . $separator;
|
||||||
|
} else {
|
||||||
|
print $separator;
|
||||||
}
|
}
|
||||||
// CNAT
|
// CNAT
|
||||||
if ($line->doc_type == 'supplier_invoice' && ! empty($line->subledger_account)) {
|
if ($line->doc_type == 'supplier_invoice' && ! empty($line->subledger_account)) {
|
||||||
print 'F';
|
print 'F' . $separator;
|
||||||
} elseif ($line->doc_type == 'customer_invoice' && ! empty($line->subledger_account)) {
|
} elseif ($line->doc_type == 'customer_invoice' && ! empty($line->subledger_account)) {
|
||||||
print 'C';
|
print 'C' . $separator;
|
||||||
} else {
|
} else {
|
||||||
print '';
|
print $separator;
|
||||||
}
|
}
|
||||||
|
// SECT
|
||||||
|
print $separator;
|
||||||
|
// CTRE
|
||||||
|
print $separator;
|
||||||
|
// NORL
|
||||||
|
print $separator;
|
||||||
|
// DATV
|
||||||
|
print $separator;
|
||||||
|
// REFD
|
||||||
|
print $line->doc_ref . $separator;
|
||||||
|
// CODH
|
||||||
|
print $separator;
|
||||||
|
// NSEQ
|
||||||
|
print $separator;
|
||||||
|
// MTDV
|
||||||
|
print '0' . $separator;
|
||||||
|
// CODV
|
||||||
|
print $separator;
|
||||||
|
// TXDV
|
||||||
|
print '0' . $separator;
|
||||||
|
// MOPM
|
||||||
|
print $separator;
|
||||||
|
// BONP
|
||||||
|
print $separator;
|
||||||
|
// BQAF
|
||||||
|
print $separator;
|
||||||
|
// ECES
|
||||||
|
print $separator;
|
||||||
|
// TXTL
|
||||||
|
print $separator;
|
||||||
|
// ECRM
|
||||||
|
print $separator;
|
||||||
|
// DATK
|
||||||
|
print $separator;
|
||||||
|
// HEUK
|
||||||
|
print $separator;
|
||||||
|
|
||||||
print $end_line;
|
print $end_line;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user