Jump to content

Invoice Total


Infralliance

Recommended Posts

Hello,

 

Today, I created a new client in Blesta (running 3.0.3), and added a new Cpanel Service to the account. An invoice was created successfully.

Then, I added a new namecheap service (not provisionned automatically) and appended the item to the pending invoice.

 

The total was not correct.

 

post-100-0-56214700-1379556788_thumb.png

 

I had to edit the invoice, resave the invoice without modification and the the total got updated:

 

post-100-0-18629200-1379556789_thumb.png

 

Am I the only one having this issue?

 

Thanks in advance,

Link to comment
Share on other sites

This has been fixed in CORE-774 for v3.0.4.

 

To patch yourself, update /app/models/invoices.php (line 885):

 

Replace:

		// Increment the used quantity for all coupons used
		foreach ($coupons as $coupon_id => $coupon)
			$this->Coupons->incrementUsage($coupon_id);
			
		return $invoice_id;

With:

		// Increment the used quantity for all coupons used
		foreach ($coupons as $coupon_id => $coupon)
			$this->Coupons->incrementUsage($coupon_id);
		
		// Update invoice totals
		$this->updateTotals($invoice_id);
		
		return $invoice_id;
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...