diff --git a/application/Contractqueue/ContractqueueController.php b/application/Contractqueue/ContractqueueController.php index 3b60a8d72..953747105 100644 --- a/application/Contractqueue/ContractqueueController.php +++ b/application/Contractqueue/ContractqueueController.php @@ -286,7 +286,7 @@ class ContractqueueController extends mfBaseController { * if required */ - if($cq->approved_credit) { + if($cq->crediting_partner_id) { $credit = ContractModel::createFromContractQueue($cq, "credit"); if(!$credit->save()) { $this->log->log("Zu einer Position in Bestellung ".$cq->order_id." konnte keine Gutschrift erstellt werden: Fehler beim Speichern");