提交 37a9ba4b authored 作者: Chris Harris's avatar Chris Harris

add: 2024-02-19 另一关联箱标(汉得称转角码 C005)

上级 fa173297
......@@ -1571,7 +1571,7 @@ def sync_order(request,company_id,vendor,action=None):
# 2024-02-05 酒鬼TMS可能会传分销商信息
if 'distributor' in d:
o.distributor=d['distributor']
o.save()
#2022-01-14
......@@ -2115,6 +2115,7 @@ def get_order_infor(company,dn_number):
return data
d=ds[0]
# 2024-02-05 酒鬼TMS有可能删除了发货单
if d.is_delete:
......@@ -2122,7 +2123,6 @@ def get_order_infor(company,dn_number):
data['e']='发货单 '+dn_number+' '+tm+' 已删除'
return data
if d.dn_number:
data['data']['dn_number']=d.dn_number
......@@ -2392,9 +2392,6 @@ def label_redirect(request,company_id,vendor=None):
#return JsonResponse(data)
# 2022-06-30 传过来的也可能不是加密码,如万里走单骑,新世纪(恒和商务)独产箱标
# 2024-02-01
label_code=c
pass
else:
......@@ -3156,21 +3153,31 @@ def query_label(request,company_id,vendor):
# 主箱标
ck=q.infor['label_pk_code']
# 副箱标
atts=[]
atts=[]
# 2024-02-19 汉得需要返回转角码C005
C005=''
att=''
for c in rls['cartons']:
if c['label']!=ck:
atts.append(c['label'])
if atts:
att=atts[0]
else:
att=''
# 2024-02-19 另一关联箱标(汉得称转角码 C005)
if len(atts)>1:
C005=atts[1]
d={
"prodCode": p['external_code'],
"prodName": p['name'],
"acctCode": code,
"acctName": name,
"cartonCode":ck ,
"cartonOtherCode": att,
"cartonOtherCode": att,
# 2024-02-19
"C005":C005
}
if q.package['id']==1:
# 瓶标
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论