| 2026-04-24 14:59:38 |
DM +254721499435 |
import json
import requests
import mylib5
import pandas as pd
from datetime import datetime
# Get the current date and time
now = datetime.now()
# Format the datetime object into the required string format "YYYYMMDDhhmmss"
datel = now.strftime("%Y%m%d%H%M%S")
dates = now.strftime("%Y%m%d")
invcNo = 1
dt = "20180131175302"
tin = "P051189216Y"
tin = "P051436757P"
tin = "P051109164C"
tin = "P600002996A"
dvcSrlNo = 'D04FTQ1'
bhfId = '00'
tin = "P052471029S"
tin = "P600002997A"
dvcSrlNo = 'IPOS 2026'
print("."*100)
data0 = {
"tin": tin,
"bhfId": bhfId,
"dvcSrlNo":dvcSrlNo
}
data2 = {
"tin": tin,
"bhfId": bhfId,
"lastReqDt":dt
}
response = mylib5.selectInitInfo(data0)
response = mylib5.selectCodes(data2)
response = mylib5.selectItemsClass(data2)
data3 = {
"tin": tin,
"bhfId": bhfId,
"custmTin": "A987654321Z"
}
response = mylib5.selectCustomer(data3)
data3 = {
"tin": tin,
"bhfId": bhfId,
"custmTin": "A123456789Z"
}
response = mylib5.selectCustomer(data3)
data3 = {
"tin": tin,
"bhfId": bhfId,
"custmTin": "A006330184N"
}
response = mylib5.selectCustomer(data3)
data3 = {
"tin": tin,
"bhfId": bhfId,
"custmTin": "P052180506J"
}
response = mylib5.selectCustomer(data3)
response = mylib5.selectBranches(data2)
print("-"*100)
data4 = {"tin": tin,"bhfId": bhfId,"custNo": "BEE987","custTin": "P052180506J","custNm": "BEE EAST LTD","adrs": "","telNo": "","email": "","faxNo": "","useYn": "Y","remark": "","regrNm": "sa","regrId": "sa","modrNm": "sa","modrId": "sa"}
response = mylib5.saveBrancheCustomers(data4)
data4 = {"tin": tin,"bhfId": bhfId,"custNo": "F000657X","custTin": "A006330184N","custNm": "BENARD KABUE NJUGUNA","adrs": "","telNo": "","email": "","faxNo": "","useYn": "Y","remark": "","regrNm": "sa","regrId": "sa","modrNm": "sa","modrId": "sa"}
response = mylib5.saveBrancheCustomers(data4)
data3 = {
"tin": tin,
"bhfId": bhfId,
"custmTin": "A006330184N"
}
response = mylib5.selectCustomer(data3)
response = mylib5.selectNotices(data2)
data = {
"tin": tin,
"bhfId": bhfId,
"userId": "userId2",
"userNm": "User Name2 ",
"pwd": "12341234",
"adrs": None,
"cntc": None,
"authCd": None,
"remark": None,
"useYn": "Y",
"regrNm": "Admin",
"regrId": "Admin",
"modrNm": "Admin",
"modrId": "Admin"
}
response = mylib5.saveBrancheUsers(data)
data = {
"tin": tin,
"bhfId": bhfId,
"isrccCd": "ISRCC01",
"isrccNm": "RSSB Insurance",
"isrcRt": 20,
"useYn": "Y",
"regrNm": "Admin",
"regrId": "Admin",
"modrNm": "Admin",
"modrId": "Admin"
}
response = mylib5.saveBrancheInsurances(data)
print("-"*100)
data = {
"tin": tin,
"bhfId": bhfId,
"lastReqDt":dt
}
data = {"tin": tin,"bhfId": bhfId,"itemClsCd": "56100000","itemCd": "KE2GRMBA0000001","itemTyCd": "2","itemNm": "Item 1","itemStdNm": "","orgnNatCd": "KE","pkgUnitCd": "BA","qtyUnitCd": "GRM","taxTyCd": "B","btchNo": "","bcd": "1","dftPrc": 232,"grpPrcL1": 232,"grpPrcL2": 0,"grpPrcL3": 0,"grpPrcL4": 0,"grpPrcL5": 0,"addInfo": "","sftyQty": 0,"isrcAplcbYn": "N","useYn": "N","regrNm": "sa","regrId": "sa","modrNm": "sa","modrId": "sa"}
data = {"tin": tin,"bhfId": bhfId,"itemClsCd": "56100000","itemCd": "KE2BLLAM0010005","itemTyCd": "2","itemNm": "Item 10","itemStdNm": "","orgnNatCd": "KE","pkgUnitCd": "AM","qtyUnitCd": "BLL","taxTyCd": "B","btchNo": "","bcd": "10","dftPrc": 232,"grpPrcL1": 232,"grpPrcL2": 0,"grpPrcL3": 0,"grpPrcL4": 0,"grpPrcL5": 0,"addInfo": "","sftyQty": 0,"isrcAplcbYn": "N","useYn": "N","regrNm": "sa","regrId": "sa","modrNm": "sa","modrId": "sa"}
response = mylib5.saveItems(data)
data = {"tin": tin,"bhfId": bhfId,"itemClsCd": "84110000","itemCd": "KE2KGAM0000002","itemTyCd": "2","itemNm": "Item 2","itemStdNm": "","orgnNatCd": "KE","pkgUnitCd": "AM","qtyUnitCd": "KG","taxTyCd": "B","btchNo": "","bcd": "2","dftPrc": 232,"grpPrcL1": 232,"grpPrcL2": 0,"grpPrcL3": 0,"grpPrcL4": 0,"grpPrcL5": 0,"addInfo": "","sftyQty": 0,"isrcAplcbYn": "N","useYn": "N","regrNm": "sa","regrId": "sa","modrNm": "sa","modrId": "sa"}
response = mylib5.saveItems(data)
data = {"tin": tin,"bhfId": bhfId,"itemClsCd": "12160000","itemCd": "KE2GRMBG0010002","itemTyCd": "2","itemNm": "Item 3","itemStdNm": "","orgnNatCd": "KE","pkgUnitCd": "BG","qtyUnitCd": "GRM","taxTyCd": "B","btchNo": "","bcd": "3","dftPrc": 232,"grpPrcL1": 232,"grpPrcL2": 0,"grpPrcL3": 0,"grpPrcL4": 0,"grpPrcL5": 0,"addInfo": "","sftyQty": 0,"isrcAplcbYn": "N","useYn": "N","regrNm": "sa","regrId": "sa","modrNm": "sa","modrId": "sa"}
response = mylib5.saveItems(data)
data = {"tin": tin,"bhfId": bhfId,"itemClsCd": "31200000","itemCd": "KE2GRMBL0010003","itemTyCd": "2","itemNm": "Item 4","itemStdNm": "","orgnNatCd": "KE","pkgUnitCd": "BL","qtyUnitCd": "GRM","taxTyCd": "B","btchNo": "","bcd": "4","dftPrc": 232,"grpPrcL1": 232,"grpPrcL2": 0,"grpPrcL3": 0,"grpPrcL4": 0,"grpPrcL5": 0,"addInfo": "","sft... |
Text
|
|