metasfresh / metasfresh-dist-orgs

GNU General Public License v2.0
3 stars 2 forks source link

use product printing format for different cases for selecting invoice document #37

Open metasnw opened 7 years ago

metasnw commented 7 years ago

cases:

  1. invoice line without flatrate term (e.g. selling a book) shall have doctype A and jasper report 1
  2. 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
  3. 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:

  1. do we have ways to set the target doctype somehow by invoicecandidate ?
  2. can invoice aggregation header help use with this as its already calculating the case in a way?
  3. what other criterias might exist to determine the case? e.g. product, contract condition, etc.
metasnw commented 7 years ago

feedback from @metas-ts

metasnw commented 7 years ago

latest state of discussion:

  1. have feature like partner format that allows to define a printing format per doctype and product
  2. configure aggregation to create on invoice per product