gaowenwei 8 years ago
parent
commit
a683913757
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      BWP.B3ButcherManageExport/BL/U8/script/屠宰场成品入库导U8产成品入库.py

+ 6
- 1
BWP.B3ButcherManageExport/BL/U8/script/屠宰场成品入库导U8产成品入库.py View File

@ -36,7 +36,6 @@ class BLMethodEvents(BLMethodEventsBase):
vouchers.Maxdataitems = "20000";
vouchers.Paginate = "0";
#self.emptyError(dmo.SaleKind_Name,"NO."+str(dmo.ID)+"销售类型为空")
id = id + 1;
inv = StatPayU8();
vouchers.Bills.Add(inv);
@ -65,6 +64,12 @@ class BLMethodEvents(BLMethodEventsBase):
entry.Inventorycode = detail.Goods_Code;#存货编码
entry.Invname = detail.Goods_Name;#存货名称
entry.Cmassunitname = "公斤";#计量单位
if(detail.Number is None):
detail.Number = 0;
if(detail.Price is None):
detail.Price = 0;
if(detail.Money is None):
detail.Money = 0;
entry.Quantity = str(detail.Number);
entry.Price= str(detail.Price);
entry.Cost = str(detail.Money);

Loading…
Cancel
Save