giveBill export
server Uses the same data format as vms_cityhall’s giveBill. Its argument order (source, type, data, giveItem, cb) is accepted too.
Optional fields:
society, jobLabel, comments, taxFromInvoice / taxFromReceipt (percent added on top), percentageForSociety.
When the bill is paid, the society share (percentageForSociety, default Config.Society.defaultPercent) goes to the society / job account — see Compatibility.
Unpaid bills past their due date are marked overdue automatically. Config.OnBillIssued and Config.OnBillPaid let you react.