suite
This commit is contained in:
parent
0c4a9ed24d
commit
a110f3c490
@ -119,8 +119,7 @@ class PriceDocument < ApplicationRecord
|
||||
|
||||
self.d_index = last_number+1
|
||||
|
||||
if self.price_document_type_id == 1
|
||||
self.d_number = self.d_prefix+self.date.strftime("%y")+self.date.strftime("%m")+('%04d' % self.d_index)
|
||||
self.d_number = self.d_prefix+self.date.strftime("%y")+self.date.strftime("%m")+('%04d' % self.d_index)
|
||||
|
||||
end
|
||||
self.save
|
||||
|
Loading…
x
Reference in New Issue
Block a user