Merge branch 'fronkdev' into 'master'
Manual Invoice BMD Export: not splitting if only 1 gkonto See merge request fronk/thetool!2089
This commit is contained in:
@@ -955,13 +955,17 @@ class InvoiceController extends mfBaseController {
|
||||
$csv_out .= $mandatskz.";";
|
||||
$csv_out .= ($last_invoice_date ? $last_invoice_date->format("d.m.Y") : "").";";
|
||||
$csv_out .= ($is_sepa ? 0 : 10).";";
|
||||
$csv_out .= ($is_sepa ? 1 : 0);
|
||||
$csv_out .= ($is_sepa ? 1 : 0).";";
|
||||
|
||||
if(count($kostentraeger) == 1) {
|
||||
$gkonto_num = array_key_first($kostentraeger);
|
||||
$csv_out .= $gkonto_num;
|
||||
}
|
||||
|
||||
if(count($kostentraeger) >= 2) {
|
||||
foreach($kostentraeger as $gkonto_num => $kobetrag) {
|
||||
$kobetrag_text = number_format($kobetrag, 2, ",", "");
|
||||
$csv_out .= "\n1;;;;;;;;;;;;;;;;;;;;;;$gkonto_num;$kobetrag_text;";
|
||||
$csv_out .= "\n1;;;;;;;;;;;;;;;;;;;;;;$gkonto_num;$kobetrag_text";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user