diff --git a/app/models/price_document.rb b/app/models/price_document.rb index c624ce3..25831f0 100644 --- a/app/models/price_document.rb +++ b/app/models/price_document.rb @@ -121,7 +121,7 @@ class PriceDocument < ApplicationRecord self.d_number = self.d_prefix+self.date.strftime("%y")+self.date.strftime("%m")+('%04d' % self.d_index) - end + self.save