educode_sales 0.9.14 → 0.9.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd9571c825586b6b901720a7acfd9ac401a2e84f1b3bb98224833b5de7578fa7
|
4
|
+
data.tar.gz: 7a6765a20f54183d0381f712b6ec5252ad3ccc23f9878dccd319e554196a3b34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e2896e169cefb432bff39d3c7939ede157dc7b8afdc93e47819eeed88f724153b3687aa6abff9fc97497d724aed80673b3be15c51999abd493fa37aa4303db9
|
7
|
+
data.tar.gz: f3ab93cbdece2c12457716f81a7d0b69f8e1b00d87c8abb68b079ad5c2e98294e0c83162acfca3e391337e326c17fd5883d976e664f12ea339cfa366efb240d4
|
@@ -242,7 +242,8 @@ module EducodeSales
|
|
242
242
|
|
243
243
|
# o类商机增加编号
|
244
244
|
def add_business_number
|
245
|
-
|
245
|
+
# test数据库中 o类商机id=74 pre与线上o类商机=77
|
246
|
+
if ( @business.number.blank?) && Common.find_by(extras: "o_class")
|
246
247
|
totual_count = EducodeSales::Business.unscoped.where("number like :data",data: "#{Time.now.year}%").count + 1 + Time.now.year*1000.to_i
|
247
248
|
@business_number_record = BusinessNumberRecord.find_or_create_by(id: 1)
|
248
249
|
while @business_number_record.value.include?(totual_count) || Business.pluck(:number).include?(totual_count.to_s)
|