Printing invoices and estimates grouped by product template

Donate to this project

Development Project Status: Completed

Total cost estimate (ex-Tax): 
$2830
Due date for completion of this stage: 
03/09/2014
Release: 
1.8
Current Percentage Funded: 
100.00%
Project funding: 

You can either donate money to this project by entering the amount above and clicking the 'Add to cart' button, or you can pledge an amount by clicking here to email your commitment. If you make a pledge, then when we have 100% funding commitments, you will be notified by email and you can then make your actual donation. Note that development will not commence until all funds are received.

Project description: 

When customer invoices and estimates are printed, line items are grouped by patient.

Any product templates that may been used to construct the invoice or estimate has been lost, so it cannot be displayed in terms of the procedures the patient has received.

This project will:

  1. extend invoices and estimates to include the product template used, per line-item
  2. copy the product templates used when invoicing an estimate
  3. allow line items associated with a template to be displayed as an aggregate total in reports, or enumerated
  4. allow individual line items to be excluded from printing
  5. change the invoice, counter, credit and estimate reports to:
    1. group line items by both patient and product template
    2. aggregate line items associated with product templates that indicate they should be aggregated
    3. suppress printing of line items that indicate they should be suppressed

E.g. given:

  • Surgery Procedure 1 template - includes Product 1 and Product 2
  • Surgery Procedure 2 template - includes Product 3 and Product 4

This is currently displayed in invoice and estimate reports as:

Patient Service Provided Quantity Amount
       
Fido Product 1 1 10
  Product 2 2 0
  Product 3 1 7
  Product 4 2 4
Fluffy Product 5 1 5
  Product 6 1 13

This could be changed to:

Patient Service Provided Quantity Amount
       
Fido Surgery Procedure 1    
  Product 1 1 10
  Surgery Procedure 2   11
Fluffy      
  Product 5 1 5
  Product 6 1 13

In the above:

  • Product 2 has been suppressed from printing
  • Surgery Procedure 2 is the template linked to Product 3 and Product 4. It is being displayed as an aggregate
  • If a line item isn't associated with a template, the group heading will be blank, as shown for Fluffy

Archetype Changes

In order to support the above, the:

  • Product Template archetype needs to include a:
    • Print Aggregate flag - if true, line items linked to a Product Template will be omitted, and the template name will be displayed with the total of all items linked to that template
    • per-include Print flag - see below
  • Customer Invoice/Credit/Counter/Estimate Item archetypes need to include a Print flag. This controls the display of zero-total charge/estimate item in reports.

Charge Editor Changes

Customer Invoice, Credit and Counter and Estimate Items will display a Print checkbox to control when the item is displayed in reports.

This checkbox will only be displayed when the item total is 0.

For items:

  • linked to a template, the default value will be that of the Print flag from the product include
  • not linked to a template, the default value will be true (i.e. the box will be checked)

Where an item total is non-zero:

  • the Print checkbox will be hidden
  • the corresponding value for the Print node will be true.

Report Changes

Reports will be modified to:

  • group line items by patient and product template
  • aggregate line items associated with product templates that have their Print Aggregate flag set to true.

The product template name will be displayed with the aggregate total, and the individual line items suppressed.

  • suppress printing of line items that are have a non-zero total, and their Print flag is false

The following report templates will be updated:

  • Invoice
  • Estimate
  • Counter Sale
  • Credit

Each of these has A4, A5 and Letter versions that need to be changed.

JIRA: OVPMS-1605

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Printing invoices and estimates grouped by product template

Will it be possible to supress quantities?  For example, if we have  surgery that includes 20minutes of soft tissue surgery time, we would not want to show the 20 minutes, just the amount (client might argue about the time).

 

Re: Printing invoices and estimates grouped by product template

I've updated the specification to include Print Aggregate and Print flags.

In your case, you would include the soft tissue surgery time in a product template that has Print Aggregrate = true. Here, all of the line items associated with the product template are suppressed, and just the total displayed for the template.

Re: Printing invoices and estimates grouped by product template

sorry, just to be 100% clear. If I have an invoice item that is for stock purposes only (and thus does not have a charge associagted with it) and it is NOT part of a template.... Can it have a print flag that is set to "false"?

Re: Printing invoices and estimates grouped by product template

Yes - so long as the total of the item is zero.

If the total is non-zero, the Print flag will be disabled.

Re: Printing invoices and estimates grouped by product template

This has been fully funded by a valuable member of our community. Thank you!

Re: Printing invoices and estimates grouped by product template

We (and at least 3 other practices that I provided the templates to) control the order of item printing using the product type's Invoice Sort Order.

Templates do not currently have a Product Type.

I think that they should.  This would allow the ordering of the 'aggregate' products to be controlled in the same manner as normal (non-aggregate) products.

Currently I sort (and group) as follows:

where the date ordering is used to order hospital stay charges to group them day by day.

If the template is given a product type, the all I have to do is add a sort and group by the aggregate id between the product type sort order and the product name.

Regards, Tim G

Re: Printing invoices and estimates grouped by product template

Done.

Syndicate content