mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 15:54:31 -04:00
Fix for invoice items in subscriptions
This commit is contained in:
parent
04884e8e40
commit
1bd0ef12e4
@ -129,12 +129,12 @@ class SubscriptionListener
|
|||||||
private function checkSubscriptions($eventId, $entity, $transformer, $include = '')
|
private function checkSubscriptions($eventId, $entity, $transformer, $include = '')
|
||||||
{
|
{
|
||||||
if (! EntityModel::$notifySubscriptions) {
|
if (! EntityModel::$notifySubscriptions) {
|
||||||
//return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$subscription = $entity->account->getSubscription($eventId);
|
$subscription = $entity->account->getSubscription($eventId);
|
||||||
|
|
||||||
if (true || $subscription) {
|
if ($subscription) {
|
||||||
$manager = new Manager();
|
$manager = new Manager();
|
||||||
$manager->setSerializer(new ArraySerializer());
|
$manager->setSerializer(new ArraySerializer());
|
||||||
$manager->parseIncludes($include);
|
$manager->parseIncludes($include);
|
||||||
@ -146,8 +146,8 @@ class SubscriptionListener
|
|||||||
if (isset($data['client_id'])) {
|
if (isset($data['client_id'])) {
|
||||||
$data['client_name'] = $entity->client->getDisplayName();
|
$data['client_name'] = $entity->client->getDisplayName();
|
||||||
}
|
}
|
||||||
\Log::info($data);
|
|
||||||
//Utils::notifyZapier($subscription, $data);
|
Utils::notifyZapier($subscription, $data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user