ignore negative transacations

This commit is contained in:
Shihaam Abdul Rahman 2024-12-20 16:51:33 +05:00
parent 244f63e80d
commit af0a122d2b
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

3
tx.sh
View File

@ -5,4 +5,5 @@ source .env 2> /dev/null
curl 'https://faisanet.mib.com.mv/ajaxAccounts/trxHistory' \
-H "cookie: ql_0=${QL_0}; IBSID=${IBSID}" \
--data-raw "accountNo=${ACCOUNT_NUMBER}&trxNo=&trxType=0&sortTrx=date&sortDir=desc&fromDate=&toDate=&start=1&end=20&includeCount=1" -s \
| sed 's/"benefName":"BML - /"benefName":"/g'
| sed 's/"benefName":"BML - /"benefName":"/g' \
| jq '.data |= map(select(.baseAmount | tonumber > 0))'