Skip to content

Commit e02cca3

Browse files
committed
inti
1 parent 7870334 commit e02cca3

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
/env/
44
.idea
55
/__pycache__/
6+
.DS_Store

pages/proforma-invoices/create-a-pfi.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
Creating a Proforma Invoice can be done by simply supplying the `amount`, the `client` who you want to create it for,
44
and whether you want to send it immediately (`send_pfi`). If you have `send_pfi` set to `True`, the PFI will have the
5-
status 'Unpaid', and an email will be sent to them with the details about the PFI including the PDF.
5+
status 'Unpaid', and an email will be sent to them with the details about the PFI including the PDF. You can choose to
6+
exclude the sending of the email by passing (`email_pfi`) set to `False`.
67

78
**Note that, if a Proforma Invoice exists that is either Draft or Confirmed, TutorCruncher will simply add a
89
new item to it and it will NOT be raised, even if `send_pfi` is set to `true`.**

pages/proforma-invoices/create-a-pfi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
'amount': 120,
66
'client': 312,
77
'send_pfi': True,
8+
'email_pfi': False,
89
'description': 'Credit Request for Billy Holiday'
910
}
1011
r = requests.post('https://secure.tutorcruncher.com/api/proforma-invoices/', json=data, headers=headers)

0 commit comments

Comments
 (0)