Skip to content

Commit

Permalink
addapt to medical changes
Browse files Browse the repository at this point in the history
  • Loading branch information
delcroip committed May 22, 2024
1 parent c8c9aa2 commit 4491961
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions claim/tests/test_validations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ def test_submit_claim_with_different_packatypes(self):
service.packagetype = "P"
service.save()
# serviceservice = ServiceService.objects.create(
# servicelinkedService=service,
# parent=service,
# service_id = claimservice1.service_id,
# price_asked = 3,
# qty_provided = 2
Expand All @@ -1215,7 +1215,7 @@ def test_submit_claim_with_different_packatypes(self):
price_asked = 500,
)
serviceitem = ServiceItem.objects.create(
servicelinkedItem=service,
parent=service,
item = clalimitem1.item,
price_asked = 12,
qty_provided = 11
Expand Down
4 changes: 2 additions & 2 deletions claim/validations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ def process_dedrem(claim, audit_user_id=-1, is_process=False):
try:
contunue_service_check = True
if claim_detail.service.packagetype == 'P':
service_services = ServiceService.objects.filter(servicelinkedService=claim_detail.service.id).all()
service_services = ServiceService.objects.filter(parent=claim_detail.service.id).all()
claim_service_services = ClaimServiceService.objects.filter(claim_service=claim_detail.id).all()
if len(service_services) == len(claim_service_services):
for servservice in service_services:
Expand All @@ -1172,7 +1172,7 @@ def process_dedrem(claim, audit_user_id=-1, is_process=False):
logger.debug(f"set_price_adjusted after service check {set_price_adjusted}")
if contunue_service_check:
contunue_item_check = True
service_items = ServiceItem.objects.filter(servicelinkedItem=claim_detail.service.id).all()
service_items = ServiceItem.objects.filter(parent=claim_detail.service.id).all()
claim_service_items = ClaimServiceItem.objects.filter(claim_service=claim_detail.id).all()
logger.debug(f"service_items: {service_items}")
logger.debug(f"claim_service_items: {claim_service_items}")
Expand Down

0 comments on commit 4491961

Please sign in to comment.