Nested product templates

Donate to this project

Development Project Status: Completed

Total cost estimate (ex-Tax): 
$1510
Due date for completion of this stage: 
07/01/2015
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: 

This project will enable Product Templates to include other Product Templates.

Included product templates will be expanded when the parent template expands in charges and estimates. E.g. given the following templates:

Template A

  • include 1 Template B
  • include 2 Template C

Template B

  • include 5 Medication X
  • include 2 Medication Y

Template C

  • include 10 Medication Z

Expanding Template A in a charge will generate the following line items:

  • 5 Medication X
  • 2 Medication Y
  • 20 Medication Z

Duplicate Products

If the same product is included multiple times via different templates, only one line item will be created, with the aggregate quantity.

Nested template recursion

A product template may not contain itself; trying to save one that does will be prevented with a validation error.

If a product template includes itself indirectly (via another template), this will be detected when the template expands, and an error displayed.

Invoice Notes

If a template contains Invoice Notes, these are added to the existing Notes on the Invoice. If a nested template contains Invoice Notes, these will not be added.

Relationship to other projects

Weight-based Product Templates

Included templates will be subject to weight based-restrictions. i.e. an included template will not be expanded if the patient doesn't fall in the required weight range.

Printing invoices and estimates grouped by product template 

The charge/estimate item will be linked to the outermost product template. This is necessary to handle the situation where products are aggregated.

 

JIRA: OVPMS-1559

Comments

Comment viewing options

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

Re: Nested product templates

This looks like an amazing new feature. we will support this.

Re: Nested product templates

Thank you for your support Benjamin. This project is now fully funded and will be able to be used by the whole user community.

Syndicate content