...
 
Commits (2)
(ns easy.customers
"An example customers file looks like this:
```
- name: vr
- name: acme
year: 2015
number: 3
address: |
Voice Republic Media AG
Langstr. 10
Acme Corp
Langstr. 1
8004 Zürich
rate: 100
deadline: 14
contact: info
- name: sva
- name: wile
year: 2014
number: 2
rate: 100
address: |
SVA Zürich
Röntgenstrasse 17
Postfach
8087 Zürich
contact: phil
Wile E. Coyote
Langstr. 2
8004 Zürich
contact: staff
```"
(:require [cljs.spec.alpha :as s]
[clojure.pprint :refer [pprint]]
......
......@@ -3,18 +3,18 @@
```
- type: invoice
date: 2018-04-08
description: VR Development
description: Acme Development
settled: 2018-07-11
customer-id: 3
number: 5
version: 1
items:
- rate: 100.0
- rate: 220.0
hours: 12.5
beneficiary: Alain
- rate: 100.0
beneficiary: employee1
- rate: 220.0
hours: 19.25
beneficiary: Phil
beneficiary: employee2
```"
(:require [cljs.spec.alpha :as s]
[easy.util :as util :refer [assoc*]]
......
......@@ -5,9 +5,9 @@
date: 2018-01-01
items:
- account: 'Aktiva:1010-Postfinance'
amount: 8779.01
amount: 1234.12
- account: 'Aktiva:1100-Forderungen-aus-Lieferungen-und-Leistungen'
amount: 23436
amount: 4321.21
- account: 'Aktiva:1109-Wertberichtigungen-FLL'
amount: -2340
...
......
......@@ -3,7 +3,7 @@
```
- type: outlay
description: Spesen 2018
beneficiary: Phil
beneficiary: employee1
date: 2018-12-31
amount: 2919.79
receipt: 10
......
......@@ -4,9 +4,9 @@
- type: redistribution
date: 2018-12-31
accounts:
- payer: Phil
- payer: employee1
amount: 10000
- payer: Alain
- payer: employee2
amount: 50000
```"
(:require [cljs.spec.alpha :as s]
......
......@@ -4,7 +4,7 @@
- type: refund
date: 2018-08-22
description: Rückz. Direkte Bundesst. 2016
amount: 122.30
amount: 1234.56
source: 8900-Direkte-Steuern
```"
(:require [cljs.spec.alpha :as s]
......
......@@ -2,10 +2,10 @@
"A *settlement* example:
```
- type: settlement
description: Nick
description: Freelance Design
date: 2018-02-01
invoice-no: 7.2.1
amount: 323.1
amount: 5678.99
```"
(:require [cljs.spec.alpha :as s]
[easy.util :as util :refer [assoc*]]
......
......@@ -23,7 +23,7 @@
(defn sanitize-latex [text]
(-> text
(replace "_" " ") ;; FIXME this is a hack
(replace "_" " ") ; FIXME: this is a hack
(replace "#" "\\#")
(replace "&" "\\&")))
......