> Invoice = #daisy_invoice{
id = "12345",
seller = age_unicode:string_to_cp1251("Петър Георгиев"),
client = #daisy_client{
id = "201531721",
vat = "BG201531721",
name = age_unicode:string_to_cp1251("БИНЕТИКС ЕООД"),
address = age_unicode:string_to_cp1251("ул. Княз Борис I №58"),
receiver = age_unicode:string_to_cp1251("Иван Петров")
},
items = [
#daisy_sell_item{
title = age_unicode:string_to_cp1251("Макарони 'DaVinci'"),
note = age_unicode:string_to_cp1251("Макарони - пакет"),
tax_group = tax_b, quantity = 2.02, discount = -5.4, price = 7.80
},
#daisy_sell_item{title = age_unicode:string_to_cp1251("Преглед на качеството"), tax_group = tax_a, price = 2.50},
#daisy_sell_item{title = age_unicode:string_to_cp1251("Преглед на опаковката (екстра)"), tax_group = tax_a, price = 1.0, discount = 10}
],
header = age_unicode:string_to_cp1251("BINETIX ® PTM\nДОБРЕ ДОШЛИ!"),
footer = age_unicode:string_to_cp1251("ДОВИЖДАНЕ!"),
barcode = postnet,
payments = [
#daisy_payment_item{title = age_unicode:string_to_cp1251("Начин на плащане:"), type = credit, amount = 7.01},
#daisy_payment_item{title = age_unicode:string_to_cp1251("Начин на плащане:")}
]
}.
> sytela_daisy:print_invoice(Handle, 1, 1, Invoice, false).
|