Commit b7a8f008 authored by gwendal's avatar gwendal
Browse files

fix: do not check for balance_deposit if invoice is subscription

parent 79bf1394
......@@ -471,7 +471,9 @@ class Invoice < InvoicingLedgerItem
def prepare_to_close
self.status = 'closed'
self.generate_deposit_payment
unless self.subscription
self.generate_deposit_payment
end
self.ensure_identifier_number_and_prefix_are_set
self.ensure_blob_is_set
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment