Fix supplier counters

This commit is contained in:
2014-06-26 18:09:54 +02:00
parent 6f3c22a167
commit a5e8d38882
5 changed files with 15 additions and 6 deletions
@@ -48,9 +48,9 @@ root.Qsupplier=
$('.order-row-'+e.data.id).remove()
$('.section-table-list-'+e.data.list_id).removeClass('active_order')
else if e.event == 'orders_in_process_count'
$('.supplier-orders-in-process-count').text e.data.count
$('.supplier-orders-in-process-count-number').text e.data.count
else if e.event == 'orders_placed_count'
$('.supplier-orders-placed-count').text e.data.count
$('.supplier-orders-placed-count-number').text e.data.count
else if e.event == 'list_changed_table'
Qsupplier.App && Qsupplier.App.List.updateOrAdd(e.data.list)
@@ -58,6 +58,11 @@ App.ApplicationController = Ember.Controller.extend
list_changed_table: ->
@setCurrentList()
orders_in_process_count: (data)->
@set 'list.supplier.orders_in_process_count', data.count
orders_placed_count: (data)->
@set 'list.supplier.orders_placed_count', data.count
setCurrentList: (callback)->
success = (list)=>
@@ -12,5 +12,6 @@
width: 100%
.mark_order_active
+button-icon-only
margin-right: 0.6em
.mark_order_delivered
+button-icon-only
@@ -17,11 +17,11 @@ header.top-menu
.table-number
.supplier-info-row
.counter.supplier-orders-placed-count
= current_supplier.orders_placed_count
span.orders-placed-count-number= current_supplier.orders_placed_count
span.orders-placed-count-icon
.counter.supplier-orders-in-process-count
= current_supplier.orders_in_process_count
span.orders-in-process-count-icon
span.supplier-orders-in-process-count-number= current_supplier.orders_in_process_count
span.supplier-orders-in-process-count-icon
aside.side-menu
ul
li
+4 -1
View File
@@ -23,8 +23,8 @@ Release
- Section table view
- click on table side menu buttons
- Do not show side menu if there is no active list
- Edit mode section is out of order and styling
- Add border around a section
- Edit mode section is out of order and styling
- Settings
- html structure
- styling
@@ -43,6 +43,8 @@ Release
General:
- search for class btn and replace with font awesome correct styling if
needed
Bugs:
- New order in supplier main board has no price yet
Post release
------------
@@ -52,3 +54,4 @@ Waiter app
Users can disable their own help request (maak ongedaan?)
Users can disable their own bill request (maak ongedaan?)
Think about extra confirmation box for these requests
Supplier section 100% on ember :)