Skip to content
Code-Schnipsel Gruppen Projekte
Commit 1b82eb30 erstellt von Patrick Müller's avatar Patrick Müller
Dateien durchsuchen

fix: set correct interval settings to plan product if created from membership

Übergeordneter 94159c07
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -638,8 +638,10 @@ public function createProduct()
// Add fields for contract product type
if ($this->isAutoExtend() && Utils::isQuiqqerErpPlansInstalled()) {
ErpPlansHandler::turnIntoPlanProduct($Product, [
ErpPlansHandler::FIELD_DURATION => $this->getAttribute('duration'),
ErpPlansHandler::FIELD_AUTO_EXTEND => true
ErpPlansHandler::FIELD_DURATION => $this->getAttribute('duration'),
ErpPlansHandler::FIELD_AUTO_EXTEND => true,
ErpPlansHandler::FIELD_INVOICE_INTERVAL => $this->getAttribute('duration'),
ErpPlansHandler::FIELD_MIN_DURATION => $this->getAttribute('duration')
]);
}
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren