Skip to content
Browse files

WHISTLE-788: remove restriction on pvt_type in transaction view

  • Loading branch information...
1 parent bd39960 commit f2dae68f770de0eb79109005e4f0a084a8bef4dd @jamesaimonetti jamesaimonetti committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 whistle_apps/apps/crossbar/priv/couchdb/account/transactions.json
View
2 whistle_apps/apps/crossbar/priv/couchdb/account/transactions.json
@@ -3,7 +3,7 @@
,"language": "javascript"
,"views": {
"credit_remaining": {
- "map": "function(doc) { if ( (doc.pvt_type != 'credit' && doc.pvt_type != 'debit') || doc.pvt_deleted || doc.call_type !== 'per_min') return; var modifier = doc.pvt_type == 'credit' ? 1 : -1; emit(null, doc.amount * modifier); }"
+ "map": "function(doc) { if ( (doc.pvt_type != 'credit' && doc.pvt_type != 'debit') || doc.pvt_deleted) return; var modifier = (doc.pvt_type == 'credit' ? 1 : -1); emit(null, doc.amount * modifier); }"
,"reduce": "_sum"
},
"minutes_consumed": {

0 comments on commit f2dae68

Please sign in to comment.
Something went wrong with that request. Please try again.