educode_sales 1.0.6 → 1.0.7

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: 6b8eb210d7095cfc2bfc9eded67a0ccd365c69ea32a1d40ff9708611a4d6e914
4
- data.tar.gz: 4aef89a38ff10ea255e252ae0a10ce02918b4c23797445d87c0f02d09acc7147
3
+ metadata.gz: 2d712b412e49eb32e9cc26fa64bbbd60f058562e3a808157ff45c8b20d71e83e
4
+ data.tar.gz: ca670038425288a4c176fd178dc987a5f0b89268ee42b6d1bc5e85edd3dedf00
5
5
  SHA512:
6
- metadata.gz: d941248d1f719724eefc1ece705b18054b55b6408b358c90c30d698baf479894f8dd44a0c21d13add7a92dbb1cd7257438f727379e679db01b3564d993956c46
7
- data.tar.gz: 618d22270adcf2a882eae5cbdaf2770bc1f747a65dde8201336fcbe40a66be8e023127a865b9e631fcfb7305ee2ebc78ad47a11a2d5985280c269ca46297d891
6
+ metadata.gz: 78b9c00d9b20064d1e4b03a981c3cfba1ab9bd5c6119d715e2a55f57b60e1767684451c51f3d9fd4e967c53a5a51bf6d9030f80af70c33fc91573be4e82ae7b0
7
+ data.tar.gz: bb6eca9c74b213e006f9dade37907e9585968f7b54215521f4011f29debcf9a4c2d95388b3e735ffd28a4b29326dee19934283e49b26a4bdf22d7ad5f66471f6
@@ -69,8 +69,8 @@ module EducodeSales
69
69
  def invoice_amount
70
70
  business = Business.find(params[:id])
71
71
  render json: {
72
- actual_amount: business&.last_follow_up&.actual_amount,
73
- invoice_pass: business&.invoice_details&.sum(:amount),
72
+ actual_amount: business&.last_follow_up&.actual_amount.to_f.round(6),
73
+ invoice_pass: business&.invoice_details&.sum(:amount).to_f.round(6),
74
74
  invoice_category: business&.invoice_apply&.category || '',
75
75
  is_tax_rebate: business&.invoice_apply&.is_tax_rebate.to_s,
76
76
  ticket_at: business&.invoice_apply&.ticket_at || '',
@@ -125,6 +125,10 @@
125
125
  field: 'busireceipt_state',
126
126
  width: 120,
127
127
  title: '开票状态',
128
+ }, {
129
+ field: 'created_at',
130
+ width: 170,
131
+ title: '添加计划时间',
128
132
  }, {
129
133
  title: '操作',
130
134
  minWidth: 200,
@@ -46,6 +46,7 @@ json.data do
46
46
  end
47
47
 
48
48
  end
49
+ json.created_at d.created_at.to_s
49
50
 
50
51
  end
51
52
  end
@@ -1,3 +1,3 @@
1
1
  module EducodeSales
2
- VERSION = '1.0.6'
2
+ VERSION = '1.0.7'
3
3
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: educode_sales
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - anke1460
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2023-06-07 00:00:00.000000000 Z
@@ -105,7 +105,6 @@ files:
105
105
  - app/assets/images/educode_sales/icon-login.png
106
106
  - app/assets/images/educode_sales/icon.png
107
107
  - app/assets/images/educode_sales/indexLogo.png
108
- - app/assets/images/educode_sales/indexlogo.png
109
108
  - app/assets/images/educode_sales/loading-0.gif
110
109
  - app/assets/images/educode_sales/loading-1.gif
111
110
  - app/assets/images/educode_sales/loading-2.gif
@@ -726,7 +725,7 @@ homepage: https://www.educoder.net
726
725
  licenses:
727
726
  - MIT
728
727
  metadata: {}
729
- post_install_message:
728
+ post_install_message:
730
729
  rdoc_options: []
731
730
  require_paths:
732
731
  - lib
@@ -741,8 +740,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
741
740
  - !ruby/object:Gem::Version
742
741
  version: '0'
743
742
  requirements: []
744
- rubygems_version: 3.0.9
745
- signing_key:
743
+ rubygems_version: 3.0.0
744
+ signing_key:
746
745
  specification_version: 4
747
746
  summary: Summary of EducodeSales.
748
747
  test_files: []