POST DiscountPlanSub defect
Posted: Fri Sep 22, 2023 4:44 pm
If posting a discount plan via the API, the Open Dental client does not appear to incorporate the discounts when calculating apt estimates/totals. More specifically, the procedurelog table does not update the DiscountPlanAmt field.
EDIT: This appears to be an issue when you do not set the optional DateEffective and/or DateTerm fields. If both are set, discounts take affect.
EDIT 2: It appears that even with the DateEffective and DateTerm fields included in the POST, the DB will not update the procedurelog table unless the patient is accessed via the Tx Plan module in the Open Dental client. I suspect the intent is to trigger this update with a POST/PUT/DELETE of discountplansub?
Is anyone aware of another API that would trigger the DB to update? Perhaps I can hack a solution with a quick post/delete of a procedure?
EDIT: This appears to be an issue when you do not set the optional DateEffective and/or DateTerm fields. If both are set, discounts take affect.
EDIT 2: It appears that even with the DateEffective and DateTerm fields included in the POST, the DB will not update the procedurelog table unless the patient is accessed via the Tx Plan module in the Open Dental client. I suspect the intent is to trigger this update with a POST/PUT/DELETE of discountplansub?
Is anyone aware of another API that would trigger the DB to update? Perhaps I can hack a solution with a quick post/delete of a procedure?