Add remove list needs payment functionality

This commit is contained in:
2014-09-01 10:45:11 +02:00
parent f76c883bb9
commit ef7c242018
10 changed files with 46 additions and 3 deletions
+8
View File
@@ -172,6 +172,14 @@ class List
end
end
def remove_needs_payment!
self.needs_payment = false
if save
broadcast_users 'remove_list_needs_payment', id: id
broadcast_supplier supplier_id, 'remove_list_needs_payment', id: id
end
end
def needs_payment!
self.needs_payment = true
if save