|
|
|
@ -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); |