本文整理汇总了Python中InvoiceGenerator.api.Invoice.setVS方法的典型用法代码示例。如果您正苦于以下问题:Python Invoice.setVS方法的具体用法?Python Invoice.setVS怎么用?Python Invoice.setVS使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类InvoiceGenerator.api.Invoice
的用法示例。
在下文中一共展示了Invoice.setVS方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Item
# 需要导入模块: from InvoiceGenerator.api import Invoice [as 别名]
# 或者: from InvoiceGenerator.api.Invoice import setVS [as 别名]
client.address = "Houští 474"
client.city = "Lanškroun"
client.zip = "563 01"
client.phone = "+420777636388"
client.email = "[email protected]"
client.bank_name = "GE Money Bank"
client.bank_account = "181553009/0600"
client.note = "Blablabla"
item1 = Item()
item1.name = "Položka 1"
item1.count = 5
item1.price = 100
item2 = Item()
item2.name = "Položka 2"
item2.count = 10
item2.price = 750
invoice = Invoice()
invoice.setClient(client)
invoice.setProvider(provider)
invoice.setTitle("Faktura")
invoice.setVS("00001")
invoice.setCreator("Adam Štrauch")
invoice.addItem(item1)
invoice.addItem(item2)
f = open("test.pdf", "w")
f.write(invoice.getContent())
f.close()