lib/xeroizer/models/invoice.rb in xeroizer-0.4.0 vs lib/xeroizer/models/invoice.rb in xeroizer-0.4.1

- old
+ new

@@ -155,10 +155,10 @@ delete_or_void_invoice!('VOIDED') end protected - def delete_or_void_authorised_invoice!(new_status) + def delete_or_void_invoice!(new_status) raise CannotChangeInvoiceStatus.new(record, new_status) unless self.payments.size == 0 self.status = new_status self.save end