Skip to content

Commit

Permalink
chore - minor changes removal of testing code😂(Normal print debugging)
Browse files Browse the repository at this point in the history
  • Loading branch information
maniamartial committed Dec 5, 2024
1 parent 2546808 commit d1484c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions kenya_compliance/kenya_compliance/apis/apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,8 +871,8 @@ def create_purchase_invoice_from_request(request_data: str) -> None:
"custom_packaging_unit": item["packaging_unit_code"],
"custom_unit_of_quantity": item["quantity_unit_code"],
"custom_taxation_type": item["taxation_type_code"],
"task_code": item["task_code"],
},
"task_code": item.get("task_code", ''),
},
)
validate_mapping_and_registration_of_items(data["items"])
purchase_invoice.insert(ignore_mandatory=True)
Expand Down Expand Up @@ -951,6 +951,6 @@ def validate_mapping_and_registration_of_items(items):
)
if items:
item_name = items[0].name
from kenya_compliance.kenya_compliance.overrides.server.purchase_invoice import validation_message
validation_message(item_name)
from kenya_compliance.kenya_compliance.overrides.server.purchase_invoice import validation_message
validation_message(item_name)

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def before_cancel(doc: Document, method: str) -> None:
"If you need to make adjustments, please create a Credit Note instead."
)
elif doc.doctype == "Purchase Invoice" and doc.custom_submitted_successfully:
frappe.throw("Here")
frappe.throw(
"This invoice has already been <b>submitted</b> to eTIMS and cannot be <span style='color:red'>Canceled.</span>.\nIf you need to make adjustments, please create a Debit Note instead."
)

0 comments on commit d1484c8

Please sign in to comment.