Commit d33888983e7d1f3f711b6b0174f0c30384846a72

Authored by Adhidarma Hadiwinoto
1 parent b8e0a64153
Exists in master

daysummaryall

Showing 3 changed files with 4 additions and 3 deletions Side-by-side Diff

lib/command-handler/daysummary.js
... ... @@ -26,7 +26,8 @@ function execute(tokens, params, cb) {
26 26 origin: params.origin,
27 27 asker_terminal_name: params.from,
28 28 asker_terminal_password: tokens[idxPin],
29   - created_date: tokens.length < 3 ? null : tokens[1]
  29 + created_date: tokens.length < 3 ? null : tokens[1],
  30 + include_downline: params.commandGroup === 'daysummaryall',
30 31 };
31 32  
32 33 coreapi(coreEndpoint, coreParams, 'GET', cb);
lib/command-handler/index.js
... ... @@ -76,7 +76,7 @@ function execute(msg, params, cb) {
76 76 else if (commandGroup === 'enabledownline') {
77 77 handlerEnableDownline(tokens, params, cb);
78 78 }
79   - else if (commandGroup === 'daysummary') {
  79 + else if (commandGroup === 'daysummary' || commandGroup === 'daysummaryall') {
80 80 handlerDaySummary(tokens, params, cb);
81 81 }
82 82 else if (commandGroup === 'depositticket') {
lib/default-command.js
... ... @@ -104,7 +104,7 @@ module.exports = {
104 104 "laporan",
105 105 "rekap",
106 106 ],
107   - _daysummaryall: [
  107 + daysummaryall: [
108 108 "lapall",
109 109 "laporanall",
110 110 "rekapall",