1 Star 0 Fork 0

jerryliang/成本核算

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
出口商定值调用.py 4.70 KB
一键复制 编辑 原始数据 按行查看 历史
jerryliang 提交于 2021-05-25 20:48 . 增加注释
import os
import math
#成交数量
def cjsl():
yqykv = float(input('预期盈亏率:')) / 100
file = open('./cache/ck/yqykv.txt','a+')
file.write(str(yqykv))
file.close()
cjsl = input('成交数量:')
file = open('./cache/ck/cjsl.txt','a+')
file.write(cjsl)
file.close()
dj = float(input('单价:')) * 0.875 #有汇率
file = open('./cache/ck/dj.txt','a+')
file.write(str(dj))
file.close()
baozhuangsldj = input('包装数量(转换到销售数量):')
djbaozhuangzl=input('包装单件重量:')
djbaozhuangtj=input('包装单件体积:')
zl = float(djbaozhuangzl)/float(baozhuangsldj) * float(cjsl)
tj = float(djbaozhuangtj)/float(baozhuangsldj) * float(cjsl)
bzsl = float(cjsl) / float(baozhuangsldj)
file = open('./cache/ck/bzsl.txt','a+')
file.write(str(bzsl))
file.close()
file2 =open('./cache/ck/djbaozhuangzl.txt','a+')
file2.write(djbaozhuangzl)
file3 =open('./cache/ck/djbaozhuangtj.txt','a+')
file3.write(djbaozhuangtj)
file4 = open('./cache/ck/zl.txt','a+')
file4.write(str(zl))
file5 = open('./cache/ck/tj.txt','a+')
file5.write(str(tj))
file2.close()
file3.close()
file4.close()
file5.close()
return
#运费
def yf():
choose = input('1海运,2航空:')
file = open('./cache/ck/ysfs.txt','a+')
file.write(choose)
file.close()
tj = open('./cache/ck/tj.txt').read()
zl = open('./cache/ck/zl.txt').read()
if choose == '1':
jzx1 = float(input('20集装箱单价:')) * 0.875 #有汇率
jzx2 = float(input('40集装箱单价:')) * 0.875 #有汇率
jzx3 = float(input('40h集装箱单价:')) * 0.875 #有汇率
lclhc = float(input('LCL体积单价:')) * 0.875 #有汇率
lclhm = float(input('LCL重量单价:')) * 0.875 #有汇率
file = open('./cache/ck/jzx1.txt','a+')
file.write(str(jzx1))
file.close()
file = open('./cache/ck/jzx2.txt','a+')
file.write(str(jzx2))
file.close()
file = open('./cache/ck/jzx3.txt','a+')
file.write(str(jzx3))
file.close()
file = open('./cache/ck/lclhc.txt','a+')
file.write(str(lclhc))
file.close()
file = open('./cache/ck/lclhm.txt','a+')
file.write(str(lclhm))
file.close()
else:
msc = float(input('最低运费msc:'))/float(100) * 0.875 #有汇率
awc = float(input('AWC操作费:'))
myc = float(input('MYC燃油费:')) /float(100) * 0.875 #有汇率
file = open('./cache/ck/myc.txt','a+')
file.write(str(myc))
file.close()
file = open('./cache/ck/awc.txt','a+')
file.write(str(awc))
file.close()
file = open('./cache/ck/msc.txt','a+')
file.write(str(msc))
file.close()
cbm = tj * float(167)
hkzl = max(zl,cbm)
file = open('./cache/ck/htzl.txt','a+')
file.write(str(hkzl))
file.close()
if hkzl < float(45):
yunjia = input('小于45运价:')
file = open('./cache/ck/yunjia.txt','a+')
file.write(str(yunjia))
file.close()
elif hkzl >= float('45') and hkzl < float('100'):
yunjia = input('45-100运价:')
file = open('./cache/ck/yunjia.txt','a+')
file.write(str(yunjia))
file.close()
elif hkzl >= float('100') and hkzl < float('300'):
yunjia = input('100-300运价:')
file = open('./cache/ck/yunjia.txt','a+')
file.write(str(yunjia))
file.close()
elif hkzl >= float('300') and hkzl < float('500'):
yunjia = input('300-500运价:')
file = open('./cache/ck/yunjia.txt','a+')
file.write(str(yunjia))
file.close()
elif hkzl >= float('500') and hkzl < float('1000'):
yunjia = input('500-1000运价:')
file = open('./cache/ck/yunjia.txt','a+')
file.write(str(yunjia))
file.close()
else:
yunjia = input('1000以上运价:')
file = open('./cache/ck/yunjia.txt','a+')
file.write(str(yunjia))
file.close()
return
def cgcb():
gcjg = float(input('工厂价格:'))
ts = float(input('退税率:')) / 100
zzs = float(input('增值税:'))/100
file = open('./cache/ck/zzs.txt','a+')
file.write(str(zzs))
file.close()
file=open('./cache/ck/gcjg.txt','a+')
file.write(str(gcjg))
file.close()
file=open('./cache/ck/ts.txt','a+')
file.write(str(ts))
file.close()
#检疫费用
jy = input('有无检疫费用1有/2无:')
file = open('./cache/ck/ckjy.txt','a+')
file.write(str(jy))
file.close()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/jerryliang122/cost-accounting.git
git@gitee.com:jerryliang122/cost-accounting.git
jerryliang122
cost-accounting
成本核算
master

搜索帮助