bmd export change
This commit is contained in:
@@ -623,7 +623,7 @@ class InvoiceController extends mfBaseController {
|
|||||||
$this->layout->set("filter", $filter);
|
$this->layout->set("filter", $filter);
|
||||||
$filter = $this->getPreparedFilter($filter);
|
$filter = $this->getPreparedFilter($filter);
|
||||||
|
|
||||||
$filter["bmd_export_date"] = null;
|
//$filter["bmd_export_date"] = null;
|
||||||
|
|
||||||
if($type == "credit") {
|
if($type == "credit") {
|
||||||
$filter["vatgroup_id"] = TT_VATGROUP_CREDIT;
|
$filter["vatgroup_id"] = TT_VATGROUP_CREDIT;
|
||||||
@@ -691,6 +691,14 @@ class InvoiceController extends mfBaseController {
|
|||||||
|
|
||||||
$mandatskz = ($last_invoice_date ? "1" : "0");
|
$mandatskz = ($last_invoice_date ? "1" : "0");
|
||||||
|
|
||||||
|
$three_years_ago = new DateTime("now");
|
||||||
|
$three_years_ago->modify("-3 years");
|
||||||
|
|
||||||
|
if($mandatskz == "0") {
|
||||||
|
while($sepa_date->format("Y-m-d") < $three_years_ago->format("Y-m-d")) {
|
||||||
|
$sepa_date->modify("+1 year");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user