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

Merge branch 'dev'

Übergeordnete ab4457e0 55da2718
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -277,7 +277,7 @@ public static function onQuiqqerOrderSuccessful($Order)
}
/**
* quiqqer/contracts: onQuiqqerContractCreateFromOrder
* quiqqer/contracts: onQuiqqerContractsCreateFromOrder
*
* If a contract is created from an order, check if the Order also contains a
*
......@@ -285,13 +285,13 @@ public static function onQuiqqerOrderSuccessful($Order)
* @param Order $Order
* @return void
*/
public static function onQuiqqerContractCreateFromOrder(Contract $Contract, Order $Order)
public static function onQuiqqerContractsCreateFromOrder(Contract $Contract, Order $Order)
{
$MembershipField = Handler::getProductMembershipField();
if ($MembershipField === false) {
QUI\System\Log::addError(
self::class.' :: onQuiqqerContractCreateFromOrder -> Could not parse membership'
self::class.' :: onQuiqqerContractsCreateFromOrder -> Could not parse membership'
.' from Order #'.$Order->getPrefixedId().' because no membership field'
.' is configured. Please execute a system setup.'
);
......@@ -326,7 +326,7 @@ public static function onQuiqqerContractCreateFromOrder(Contract $Contract, Orde
}
/**
* quiqqer/contracts: onQuiqqerContractCancel
* quiqqer/contracts: onQuiqqerContractsCancel
*
* Cancel a membership if a contract is cancelled
*
......@@ -335,7 +335,7 @@ public static function onQuiqqerContractCreateFromOrder(Contract $Contract, Orde
* @throws \QUI\Exception
* @throws \Exception
*/
public static function onQuiqqerContractCancel(Contract $Contract)
public static function onQuiqqerContractsCancel(Contract $Contract)
{
$MembershipUsers = MembershipUsersHandler::getInstance();
......@@ -363,14 +363,14 @@ public static function onQuiqqerContractCancel(Contract $Contract)
}
/**
* quiqqer/contracts: onQuiqqerContractDelete
* quiqqer/contracts: onQuiqqerContractsDelete
*
* Delete contract from all MembershipUsers
*
* @param Contract $Contract
* @throws QUI\Database\Exception
*/
public static function onQuiqqerContractDelete(Contract $Contract)
public static function onQuiqqerContractsDelete(Contract $Contract)
{
$MembershipUsers = MembershipUsersHandler::getInstance();
......
......@@ -14,6 +14,7 @@
use QUI\ERP\Products\Handler\Products as ProductsHandler;
use QUI\ERP\Products\Handler\Fields as ProductFields;
use QUI\ERP\Plans\Handler as ErpPlansHandler;
use QUI\ERP\Plans\Utils as ErpPlansUtils;
class Membership extends Child
{
......@@ -517,6 +518,7 @@ public function getProducts()
* of previous calls!
*
* @return QUI\ERP\Products\Product\Product|false
* @throws \QUI\Exception
*/
public function createProduct()
{
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren