|
|
@ -146,6 +146,7 @@ from |
|
|
|
dics.Add("tax", item.Tax.ToString()); |
|
|
|
dics.Add("SQCode", item.SQCode); |
|
|
|
dics.Add("SQLineNo", item.SQLineNo); |
|
|
|
dics.Add("ProduceArea", item.ITEMCODE.Substring(item.ITEMCODE.Length-2,2)); |
|
|
|
dics.Add("Mtime", item.Mtime.ToString("yyyy-MM-dd HH:mm:ss")); |
|
|
|
dics.Add("Free1", item.Free1); |
|
|
|
dics.Add("Free2", item.Free2); |
|
|
@ -175,12 +176,13 @@ from |
|
|
|
insertSql += @"
|
|
|
|
insert into IcsSaleOrder |
|
|
|
(SoCode,SoType,[SoOrderDate],[RequestedDeliveryDate],[CusCode],[CusName],[SoLineNo],[ItemCode],[CASNo],[Qty] |
|
|
|
,[Tax],[SqCode],[SqLineNo] |
|
|
|
,[Tax],[SqCode],[SqLineNo],ProduceArea |
|
|
|
,Default1,Default2,Default3,Default4 |
|
|
|
,CreationTime,CreatorUserId,CreatorUserName,TenantId) |
|
|
|
|
|
|
|
select a.SoCode,a.SoType,a.SOORDERDATE,a.RequestedDeliveryDate,a.CUSCODE,a.CUSNAME,a.SOLineNo ,a.ITEMCODE,a.CASNo,a.Qty |
|
|
|
,a.tax,a.SQCode,a.SQLineNo |
|
|
|
,a.ProduceArea |
|
|
|
, a.Free1,a.Free2,a.Free3,a.Free4 |
|
|
|
,Mtime,'job','job','{0}' |
|
|
|
from #tempFromErp4SaleOrder a |
|
|
|