Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def run_fillpdf_manual(year):
- data = {'Antal1': 105,
- 'Antal2': 50,
- 'Antal3': 15,
- 'Antal4': 5,
- 'Beteckning1': '3D Systems Corp',
- 'Beteckning2': '3D Systems Corp',
- 'Beteckning3': 'Biogen Inc',
- 'Beteckning4': 'DDD 1/10',
- 'Datum när blanketten fylls i': '2018-06-26',
- 'Förlust1': 0,
- 'Förlust2': 0,
- 'Förlust3': 263,
- 'Förlust4': 0,
- 'Försäljningspris1': 41712,
- 'Försäljningspris2': 27490,
- 'Försäljningspris3': 14605,
- 'Försäljningspris4': 309,
- 'Namn': 'Gustav H',
- 'Omkostnadsbelopp 11': 21321,
- 'Omkostnadsbelopp 12': 12166,
- 'Omkostnadsbelopp 13': 14868,
- 'Omkostnadsbelopp 14': 62,
- 'Personnr': '19940410-xxxx',
- 'Vinst1': 20391,
- 'Vinst2': 15324,
- 'Vinst3': 0,
- 'Vinst4': 247,
- 'inkomstår': '2013',
- 'vinstSum':'en mille'}
- pdf_file_name = os.path.abspath(os.path.join(
- os.path.dirname(__file__), 'Files/k4_template.pdf'))
- pdf_file_output = os.path.abspath(os.path.join(
- os.path.dirname(__file__), ''.join(['Files/out', year, '-K4.pdf'])))
- populate_k4_form.update_form_values(pdf_file_name, pdf_file_output,data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement