Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Added Ward Items and Physical Therapy to invoice.
Browse files Browse the repository at this point in the history
Resolves #54
and #55
  • Loading branch information
jkleinsc committed Jul 24, 2015
1 parent a2cacd6 commit 59dc06d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion app/invoices/edit/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,25 @@ export default AbstractEditController.extend(NumberFormat, PatientSubmodule, Pub
lineItems.addObject(lineItem);

lineItem = this.store.createRecord('billing-line-item', {
name: 'Others/Misc',
name: 'Ward Items',
category: 'Hospital Charges'
});
lineItem.get('details').addObjects(this.get('wardCharges'));
lineItems.addObject(lineItem);

lineItem = this.store.createRecord('billing-line-item', {
name: 'Physical Therapy',
category: 'Hospital Charges'
});
lineItems.addObject(lineItem);

lineItem = this.store.createRecord('billing-line-item', {
name: 'Others/Misc',
category: 'Hospital Charges'
});
lineItems.addObject(lineItem);


this.send('update', true);
},

Expand Down

0 comments on commit 59dc06d

Please sign in to comment.