Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

A library of PowerShell functions to automate processes at law firms.

Here is a bit of illustration of the library's usage to generate a request for payment:

param (
    [string]$Vertragvom = $(Read-Host "Vertrag vom"),
    [string]$Kuendigungam = $(Read-Host "Kündigung am"),
    [decimal]$Schuldbisher = $(Read-Host "Schuld bisher (EUR)"),
    [decimal]$GesamtsummebisEnde = $(Read-Host "Gesamtsumme bis Ende (EUR)"),
    [decimal]$Anwaltskosten = $(Read-Host "Anwaltskosten (EUR)")
)

$culture = [System.Globalization.CultureInfo]::GetCultureInfo("de-DE")

Import-Module iurfnlib.psm1

KillHeadLessWord

# figure out the case number from your document's head as generated by your law practice management software
$Rubrum = Rubrumauslese
$Az = $Rubrum.Az # looks for something like 5353/25

[decimal]$Gesamtforderung = $Schuldbisher + $GesamtsummebisEnde
[decimal]$GesamtforderungmitKosten = $Gesamtforderung + $Anwaltskosten
[decimal]$Vergleichssumme=$GesamtsummebisEnde/5+$Schuldbisher/2

insertintoword "Vorlage.rtf" # insert a template into the document

# fill the inserted template with data
replaceinword "phVertragvom" $Vertragvom
replaceinword "phKuendigungam" $Kuendigungam 
replaceinword "phSchuldbisher" $Schuldbisher.ToString("C", $culture)
replaceinword "phFrist" $((Get-Date).AddDays(14).ToString("dd.MM.yyyy"))
replaceinword "phGesamtsummebisEnde" $GesamtsummebisEnde.ToString("C", $culture)
replaceinword "phVergleichssumme" $Vergleichssumme.ToString("C", $culture)
replaceinword "phAnwaltskosten" $Anwaltskosten.ToString("C", $culture)
replaceinword "phGesamtforderung" $Gesamtforderung.ToString("C", $culture)
replaceinword "phGesamtforderungmitKosten" $GesamtforderungmitKosten.ToString("C", $culture)
replaceinword "phAz" $Az

Also supports heuristic space-holder fillings based on JSON, folders, etc. Advanced functions are jet to be documented.

-- Evgeny Fishgalov

About

A library of PowerShell functions to automate processes at law firms.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages