This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from openpyxl import load_workbook | |
import json | |
structure = [ | |
{'id': '1', 'name': 'Equipment', 'category': 'Assets'}, | |
{'id': '122', 'name': 'Fixed assets', 'category': 'Assets'}, | |
{'id': '2', 'name': 'Current assets', 'category': 'Assets'}, | |
{'id': '201', 'name': 'Supplies', 'category': 'Assets'}, | |
{'id': '3', 'name': 'Equity', 'category': 'Equity'}, | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
due_date = Date.parse('2019-03-31') | |
instalments = Installment.delinquent. | |
where(due_date: due_date). | |
joins(:loan => :merchant). | |
where('DATE(loans.delinquent_at) = ?',due_date). | |
merge(Merchant.active) | |
instalments.find_each do |installment| | |
begin | |
if installment.payment_method&.debit? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### EXPORTS ################################################################ | |
export MANPATH=/opt/local/share/man:$MANPATH | |
export LC_CTYPE=en_US.UTF-8 | |
export PATH=/opt/local/bin/:/Applications/MAMP/Library/bin:$PATH | |
export JAVA_HOME=/Library/Java/Home | |
export PATH=$PATH:$EC2_HOME/bin | |
# Editors | |
export EDITOR='mate -w' | |
export SVN_EDITOR='mate -w' |