Skip to content

Commit

Permalink
fix: bug fixes
Browse files Browse the repository at this point in the history
Fixed bug causing failure in serialization when submitting inventory information through background job. Fixed bug in submission of stock entries of type d-note and sales invoice where non-existent fields were being referenced.
  • Loading branch information
GichanaMayaka committed May 21, 2024
1 parent 16ac475 commit d670843
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kenya_compliance/kenya_compliance/apis/apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def submit_inventory(request_data: str) -> None:
endpoints_builder.headers = headers
endpoints_builder.url = url
endpoints_builder.payload = payload
endpoints_builder.success_callback = lambda response: frappe.errprint(
endpoints_builder.success_callback = lambda response: frappe.msgprint(
f"{response}"
)
endpoints_builder.error_callback = on_error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ def on_update(doc: Document, method: str | None = None) -> None:

payload["itemList"] = current_item
payload["totItemCnt"] = len(current_item)
payload["custNm"] = doc.customer
payload["custTin"] = doc.tax_id
payload["custNm"] = record.customer
payload["custTin"] = record.tax_id

# TODO: opposite of previous, and use qty change field
# TODO: These map to sales returns
Expand Down

0 comments on commit d670843

Please sign in to comment.