invoice line without flatrate term (e.g. selling a book) shall have doctype A and jasper report 1
invoice line with flatrate term but price > 0 (e.g. paid membership) shall have doctype B and jasper report 2
price > 0 can be determined by flatrate_condition.isfree = N
invoice line with flatrate term but price = 0 (e.g. free membership) shall have doctype C and jasper report 3
price = 0 can be determined by flatrate_condition.isfree = Y
general - never mix cases in an invoice
general - combinations can occur. e.g. case 2 + 3 shall have the same doctype or e.g. the same report
one way is to disable consolidated invoicing plus putting lots of logic into the jasper BUT
it would be better to do it generically so we can configure it by system and org somehow
questions:
do we have ways to set the target doctype somehow by invoicecandidate ?
can invoice aggregation header help use with this as its already calculating the case in a way?
what other criterias might exist to determine the case? e.g. product, contract condition, etc.
cases:
one way is to disable consolidated invoicing plus putting lots of logic into the jasper BUT it would be better to do it generically so we can configure it by system and org somehow
questions: