Skip to content

Commit

Permalink
14 day Payment
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Nov 18, 2015
1 parent 291e314 commit d3f60b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bpe_app.erl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ worker(#process{id=Id}=P) ->
[H|_] -> worker_do(calendar:time_difference(H#history.time,calendar:local_time()),P);
__ -> skip end.

worker_do({Days,Time},P) when Days >= 4 -> skip;
worker_do({Days,Time},P) when Days >= 14 -> skip;
worker_do({Days,Time},P) when P#process.task =:= 'Payment' -> wf:info(?MODULE,"BPE Start: ~p~n",[bpe:start(P,[])]);
worker_do({Days,Time},P) when P#process.task =:= 'Delay' -> wf:info(?MODULE,"BPE Start: ~p~n",[bpe:start(P,[])]);
worker_do({Days,Time},P) when P#process.task =:= 'FirstDelay' -> wf:info(?MODULE,"BPE Start: ~p~n",[bpe:start(P,[])]);
worker_do({Days,Time},P) when P#process.task =:= 'SecondDelay' -> wf:info(?MODULE,"BPE Start: ~p~n",[bpe:start(P,[])]);
Expand Down

0 comments on commit d3f60b6

Please sign in to comment.