From 23509d154b0868617eab2924b9eba351ebf3d898 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Tue, 14 Apr 2020 10:16:08 +0200 Subject: [PATCH] suite --- app/models/price_document.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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