File indexing completed on 2024-12-22 04:50:58

0001 #!/bin/bash
0002 if [[ $1 = "ls" ]]; then
0003   #Simulate: boobank ls -q -f csv -v -s id,balance
0004   echo "id;label;balance"
0005   echo "12345@creditcooperatif;;"
0006 else
0007     if [[ $5 = "12345@creditcooperatif" ]]; then
0008         if [[ $5 = "1" ]]; then
0009           echo "rdate;date;type;raw;label;amount"
0010           echo "2013-06-05;2013-06-05;0;TOTAL;TOTAL;-40" 
0011         else
0012           echo "rdate;date;type;raw;label;amount"
0013           echo "2013-06-02;2013-06-02;0;TOTAL;TOTAL;-30"        
0014           echo "2013-06-04;2013-06-04;0;TOTAL;TOTAL;-30"
0015           echo "2013-06-05;2013-06-05;0;TOTAL;TOTAL;-40"         
0016         fi
0017     fi
0018 fi