From f6bcef5e0e60ba795d7e1cacbab65ffaf07fb266 Mon Sep 17 00:00:00 2001 From: GichanaMayaka Date: Sun, 28 Apr 2024 18:15:38 +0200 Subject: [PATCH] Fix: corrected information being sent for stock movements. --- .../kenya_compliance/overrides/server/stock_ledger_entry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kenya_compliance/kenya_compliance/overrides/server/stock_ledger_entry.py b/kenya_compliance/kenya_compliance/overrides/server/stock_ledger_entry.py index 03d3050..e075eb6 100644 --- a/kenya_compliance/kenya_compliance/overrides/server/stock_ledger_entry.py +++ b/kenya_compliance/kenya_compliance/overrides/server/stock_ledger_entry.py @@ -32,9 +32,9 @@ def on_update(doc: Document, method: str | None = None) -> None: "sarNo": series_no, "orgSarNo": series_no, "regTyCd": "M", - "custTin": get_warehouse_branch_id(doc.warehouse) or None, + "custTin": None, "custNm": None, - "custBhfId": "00", + "custBhfId": get_warehouse_branch_id(doc.warehouse) or "00", "ocrnDt": record.posting_date.strftime("%Y%m%d"), "totTaxblAmt": 0, "totItemCnt": len(record.items),