Skip to content
Snippets Groups Projects
Commit b4ca219f authored by Eran Uzan's avatar Eran Uzan
Browse files

BRCD-4224 : add configrable aggregation when doing onetime invoice too

parent 427f41e4
Branches
Tags
No related merge requests found
......@@ -71,10 +71,14 @@ class Billrun_Aggregator_Customeronetime extends Billrun_Aggregator_Customer {
$aggregatedEntity->setUserFields($this->customer_uf);
//Close & Save the billrun document
$aggregatedEntity->closeInvoice($this->min_invoice_id, FALSE, $customCollName);
//Save configurable/aggretaion data
$aggregatedEntity->addConfigurableData();
$aggregatedEntity->save();
} else {
$aggregatedEntity->finalizeInvoice( $aggregatedResults );
$aggregatedEntity->closeInvoice($this->min_invoice_id , $this->isFakeCycle() , $customCollName );
//Save configurable/aggretaion data
$aggregatedEntity->addConfigurableData();
}
Billrun_Factory::dispatcher()->trigger('afterAggregateAccount', array($aggregatedEntity, $aggregatedResults, $this));
return $aggregatedResults;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment