Infralliance Posted September 19, 2013 Report Share Posted September 19, 2013 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. I had to edit the invoice, resave the invoice without modification and the the total got updated: Am I the only one having this issue? Thanks in advance, Link to comment Share on other sites More sharing options...
Cody Posted September 19, 2013 Report Share Posted September 19, 2013 Sounds like there may be an issue with recalculating invoice totals when appending services to an existing invoice. I've added CORE-774 to investigate. Michael 1 Link to comment Share on other sites More sharing options...
Tyson Posted September 20, 2013 Report Share Posted September 20, 2013 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; Michael, Infralliance and Abhineet 3 Link to comment Share on other sites More sharing options...
Recommended Posts