-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Inpatient Record): change Inpatient Record layout
Discharge btn visible before Discharge Summary creation generate_billables on Schedule for Discharging
- Loading branch information
1 parent
b66c2e4
commit a6a1c49
Showing
15 changed files
with
332 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
import frappe | ||
|
||
|
||
@frappe.whitelist() | ||
def set_paid_amount_in_treatment_counselling(doc, method): | ||
if doc.treatment_counselling and doc.paid_amount: | ||
treatment_counselling_doc = frappe.get_doc("Treatment Counselling", doc.treatment_counselling) | ||
treatment_counselling_doc.paid_amount = doc.paid_amount | ||
treatment_counselling_doc.outstanding_amount = treatment_counselling_doc.amount - treatment_counselling_doc.paid_amount | ||
treatment_counselling_doc.save() | ||
if doc.treatment_counselling and doc.paid_amount: | ||
treatment_counselling_doc = frappe.get_doc("Treatment Counselling", doc.treatment_counselling) | ||
treatment_counselling_doc.paid_amount = doc.paid_amount | ||
treatment_counselling_doc.outstanding_amount = ( | ||
treatment_counselling_doc.amount - treatment_counselling_doc.paid_amount | ||
) | ||
treatment_counselling_doc.save() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.