vyapari 0.1.5dev5 → 0.1.5dev6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 012cb49e490b0f0a829872d7ee2a4c5a4f0c0e44
4
- data.tar.gz: 418f2a3843582231112746e98e4ab31dd3623d61
3
+ metadata.gz: 77082c9dd19cd963d7c96b8b4a43133743571513
4
+ data.tar.gz: 963cb3c4cb2a9bc7d43adb6e2afc4d5acfab8d39
5
5
  SHA512:
6
- metadata.gz: dd93339402b8bafd445a717f5b572e29c4ad82ed73eb6244035e1e514ca318e2927ff29df91c9d0ab950c249b9d3984b1129eaef880a3a6987b83ae300e8c5e6
7
- data.tar.gz: 746fcc1afb3603153b8e370a6976ca7929fca195a15f434fa7399b4780fd275cb1b5f761b0aacf3c4d4231d02f91a1cd2ab95996ca7d3d56d7db1fa51c9af64c
6
+ metadata.gz: b41a5d12cc1a633fc218b7522d14f3842db6c33cd20af5be8bb59b7ea3e488e937b14e65aa1147b13101cf693f27f78f67e04f2f3016fa9dc2a90ea354c8c6d5
7
+ data.tar.gz: 3ed2aed1a6ce119c1fbd3915d5baec5d194da97321c2b5758e6ea368aeaff4e8ff66c47563ed046db6f900da495d12af6cb829b3567b6bb664d58991525ba227
@@ -1,10 +1,12 @@
1
1
  <%
2
- active_invoices = @terminal.invoices.active.today.count
3
- draft_invoices = @terminal.invoices.draft.today.count
4
- active_amount = @terminal.invoices.active.today.sum(:net_total_amount)
5
- draft_amount = @terminal.invoices.draft.today.sum(:net_total_amount)
6
- cash_invoices = @terminal.invoices.active.today.where(payment_method: :cash).count
7
- cash_in_hand = @terminal.invoices.active.today.cash_invoices.sum(:net_total_amount)
2
+ active_invoices = @terminal.invoices.active.count
3
+ draft_invoices = @terminal.invoices.draft.count
4
+ active_amount = @terminal.invoices.active.sum(:net_total_amount)
5
+ draft_amount = @terminal.invoices.draft.sum(:net_total_amount)
6
+ cash_invoices = @terminal.invoices.active.where(payment_method: :cash).count
7
+ credit_card_invoices = @terminal.invoices.active.where(payment_method: :credit_card).count
8
+ cash_in_hand = @terminal.invoices.active.cash_invoices.sum(:net_total_amount)
9
+ credit_card_amount = @terminal.invoices.active.credit_card_invoices.sum(:net_total_amount)
8
10
  total_sales = 100
9
11
  %>
10
12
 
@@ -47,16 +49,16 @@
47
49
  <i class="fa-floppy-o"></i>
48
50
  </div>
49
51
  <div class="xe-label">
50
- <strong class="num"><%= active_invoices %></strong>
51
- <span>Invoices Created</span>
52
+ <strong class="num"><%= number_to_currency credit_card_amount, unit: "AED " %></strong>
53
+ <span>Total CC AMount</span>
52
54
  </div>
53
55
 
54
56
  </div>
55
57
  <div class="xe-lower">
56
58
  <div class="border"></div>
57
59
 
58
- <span>Total Amount Billed Today</span>
59
- <strong><%= number_to_currency active_amount, unit: "AED " %></strong>
60
+ <!-- <span>Total Amount Billed Today</span> -->
61
+ <!-- <strong><%#= number_to_currency active_amount, unit: "AED " %></strong> -->
60
62
  </div>
61
63
  </div>
62
64
  </div>
@@ -1,3 +1,3 @@
1
1
  module Vyapari
2
- VERSION = '0.1.5dev5'
2
+ VERSION = '0.1.5dev6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vyapari
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5dev5
4
+ version: 0.1.5dev6
5
5
  platform: ruby
6
6
  authors:
7
7
  - kpvarma