B70340 il y a 3 ans
Parent
révision
45dc312ff8

BIN
.vs/YD-ERP-SYS/FileContentIndex/2f6d197a-18f8-496d-9f9c-e6c8a6991d54.vsidx → .vs/YD-ERP-SYS/FileContentIndex/84341fd4-f133-4fb1-8b0a-74678cc253b3.vsidx Voir le fichier


BIN
.vs/YD-ERP-SYS/v17/.suo Voir le fichier


+ 1
- 1
YD-ERP-SYS/Module/全域變數.vb Voir le fichier

3
     Public g_conn_type, gUserName, 登入人職稱, 登入人級別, 登入人組別, 登入人IP, 版本號, Target, Target1, Target2, FTP帳號, FTP密碼, FTP物理位置, 業務號碼, AA(99), 類別 As String
3
     Public g_conn_type, gUserName, 登入人職稱, 登入人級別, 登入人組別, 登入人IP, 版本號, Target, Target1, Target2, FTP帳號, FTP密碼, FTP物理位置, 業務號碼, AA(99), 類別 As String
4
     Public BB(99), CC(99), 登入判斷 As Boolean
4
     Public BB(99), CC(99), 登入判斷 As Boolean
5
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6
-    Public 版本 As String = "2022060202"
6
+    Public 版本 As String = "2022071001"
7
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8
     Public 列印用SQL, 列印用SQL2, 公司編號, 公司電話, 公司統編, 公司地址, 關鍵字編號, 進度條後墜 As String
8
     Public 列印用SQL, 列印用SQL2, 公司編號, 公司電話, 公司統編, 公司地址, 關鍵字編號, 進度條後墜 As String
9
     '----系統閒置-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9
     '----系統閒置-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

BIN
YD-ERP-SYS/bin/Debug/YD-ERP-SYS.exe Voir le fichier


+ 3
- 3
YD-ERP-SYS/bin/Debug/YD-ERP-SYS.exe.config Voir le fichier

1
-<?xml version="1.0" encoding="utf-8" ?>
1
+<?xml version="1.0" encoding="utf-8"?>
2
 <configuration>
2
 <configuration>
3
     <startup> 
3
     <startup> 
4
-        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
4
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
5
     </startup>
5
     </startup>
6
-</configuration>
6
+</configuration>

BIN
YD-ERP-SYS/bin/Debug/YD-ERP-SYS.pdb Voir le fichier


BIN
YD-ERP-SYS/obj/Debug/DesignTimeResolveAssemblyReferences.cache Voir le fichier


BIN
YD-ERP-SYS/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache Voir le fichier


BIN
YD-ERP-SYS/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll Voir le fichier


BIN
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.exe Voir le fichier


BIN
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.pdb Voir le fichier


BIN
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbproj.AssemblyReference.cache Voir le fichier


+ 1
- 1
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbproj.CoreCompileInputs.cache Voir le fichier

1
-62c59e7c1b9e66e55d481c6948615ce77109a26c
1
+6fb3fca42b6bd1f05d37328ddc7b52edd1ee8f66

+ 2
- 1
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbproj.FileListAbsolute.txt Voir le fichier

579
 D:\工巧明\YD\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.業績結單控制表.resources
579
 D:\工巧明\YD\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.業績結單控制表.resources
580
 D:\工巧明\YD\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.營運日報表.resources
580
 D:\工巧明\YD\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.營運日報表.resources
581
 D:\工巧明\YD\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.高層客製報表.resources
581
 D:\工巧明\YD\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD_ERP_SYS.高層客製報表.resources
582
-D:\工巧明\YD\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD-ERP-SYS.vbprojAssemblyReference.cache
582
+D:\工巧明\YD\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD-ERP-SYS.vbproj.AssemblyReference.cache
583
+D:\工巧明\YD\YD-ERP-SYS\YD-ERP-SYS\obj\Debug\YD-ERP-SYS.vbproj.SuggestedBindingRedirects.cache

BIN
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbproj.GenerateResource.cache Voir le fichier


+ 0
- 0
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbproj.SuggestedBindingRedirects.cache Voir le fichier


BIN
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbprojAssemblyReference.cache Voir le fichier


+ 2
- 2
YD-ERP-SYS/業務系統管理/訂單控制表.vb Voir le fichier

250
             If Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) = 0 Then
250
             If Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) = 0 Then
251
                 通知_lb.Text = "無稅金"
251
                 通知_lb.Text = "無稅金"
252
             ElseIf Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) <> 0 Then
252
             ElseIf Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) <> 0 Then
253
-                通知_lb.Text = "應刷卡稅金小,有刷卡帶入的稅金,所以拆售價以未稅顯示" : 稅金_tb.Text = Val(稅金_tb.Text) : 售價小計_tb.Text = Val(銷售合計_tb.Text) - Val(稅金_tb.Text)
253
+                通知_lb.Text = "因清單中沒有打勾含稅,但有刷卡帶入的稅金,所以稅金以刷卡稅金為主" : 稅金_tb.Text = 刷卡稅金_tb.Text : 售價小計_tb.Text = Val(銷售合計_tb.Text) - Val(稅金_tb.Text)
254
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) > Val(刷卡稅金_tb.Text) Then
254
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) > Val(刷卡稅金_tb.Text) Then
255
-                通知_lb.Text = "應所拆售價稅金大於刷卡稅金,計算正常,利潤中扣除刷卡傭金"
255
+                通知_lb.Text = "售價稅金大於刷卡稅金,計算正常,利潤中扣除刷卡傭金"
256
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) < Val(刷卡稅金_tb.Text) Then
256
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) < Val(刷卡稅金_tb.Text) Then
257
                 通知_lb.Text = "刷卡稅金大於自動計算後的稅金,邏輯有誤,請從新拆售價。"
257
                 通知_lb.Text = "刷卡稅金大於自動計算後的稅金,邏輯有誤,請從新拆售價。"
258
             End If
258
             End If

+ 6
- 6
YD-ERP-SYS/業務系統管理/銷售單審核.vb Voir le fichier

352
             If Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) = 0 Then
352
             If Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) = 0 Then
353
                 通知_lb.Text = "無稅金"
353
                 通知_lb.Text = "無稅金"
354
             ElseIf Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) <> 0 Then
354
             ElseIf Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) <> 0 Then
355
-                通知_lb.Text = "應刷卡稅金小,有刷卡帶入的稅金,所以拆售價以未稅顯示" : 稅金_tb.Text = Val(稅金_tb.Text) : 售價小計_tb.Text = Val(銷售合計_tb.Text) - Val(稅金_tb.Text)
355
+                通知_lb.Text = "因清單中沒有打勾含稅,但有刷卡帶入的稅金,所以稅金以刷卡稅金為主" : 稅金_tb.Text = 刷卡稅金_tb.Text : 售價小計_tb.Text = Val(銷售合計_tb.Text) - Val(稅金_tb.Text)
356
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) > Val(刷卡稅金_tb.Text) Then
356
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) > Val(刷卡稅金_tb.Text) Then
357
-                通知_lb.Text = "應所拆售價稅金大於刷卡稅金,計算正常,利潤中扣除刷卡傭金"
357
+                通知_lb.Text = "售價稅金大於刷卡稅金,計算正常,利潤中扣除刷卡傭金"
358
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) < Val(刷卡稅金_tb.Text) Then
358
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) < Val(刷卡稅金_tb.Text) Then
359
                 通知_lb.Text = "刷卡稅金大於自動計算後的稅金,邏輯有誤,請從新拆售價。"
359
                 通知_lb.Text = "刷卡稅金大於自動計算後的稅金,邏輯有誤,請從新拆售價。"
360
             End If
360
             End If
1345
         If Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) = 0 Then
1345
         If Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) = 0 Then
1346
             通知_lb.Text = "無稅金"
1346
             通知_lb.Text = "無稅金"
1347
         ElseIf Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) <> 0 Then
1347
         ElseIf Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) <> 0 Then
1348
-            通知_lb.Text = "應刷卡稅金小,有刷卡帶入的稅金,所以拆售價以未稅顯示" : 稅金_tb.Text = 刷卡稅金_tb.Text : 售價小計_tb.Text = Val(銷售合計_tb.Text) - Val(稅金_tb.Text)
1348
+            通知_lb.Text = "因清單中沒有打勾含稅,但有刷卡帶入的稅金,所以稅金以刷卡稅金為主" : 稅金_tb.Text = 刷卡稅金_tb.Text : 售價小計_tb.Text = Val(銷售合計_tb.Text) - Val(稅金_tb.Text)
1349
         ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) > Val(刷卡稅金_tb.Text) Then
1349
         ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) > Val(刷卡稅金_tb.Text) Then
1350
-            通知_lb.Text = "應所拆售價稅金大於刷卡稅金,計算正常,利潤中扣除刷卡傭金"
1350
+            通知_lb.Text = "售價稅金大於刷卡稅金,計算正常,利潤中扣除刷卡傭金"
1351
         ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) < Val(刷卡稅金_tb.Text) Then
1351
         ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) < Val(刷卡稅金_tb.Text) Then
1352
             通知_lb.Text = "刷卡稅金大於自動計算後的稅金,邏輯有誤,請從新拆售價。"
1352
             通知_lb.Text = "刷卡稅金大於自動計算後的稅金,邏輯有誤,請從新拆售價。"
1353
         End If
1353
         End If
1464
         If Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) = 0 Then
1464
         If Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) = 0 Then
1465
             通知_lb.Text = "無稅金"
1465
             通知_lb.Text = "無稅金"
1466
         ElseIf Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) <> 0 Then
1466
         ElseIf Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) <> 0 Then
1467
-            通知_lb.Text = "應刷卡稅金小,有刷卡帶入的稅金,所以拆售價以未稅顯示" : 稅金_tb.Text = 刷卡稅金_tb.Text : 售價小計_tb.Text = Val(銷售合計_tb.Text) - Val(稅金_tb.Text)
1467
+            通知_lb.Text = "因清單中沒有打勾含稅,但有刷卡帶入的稅金,所以稅金以刷卡稅金為主" : 稅金_tb.Text = 刷卡稅金_tb.Text : 售價小計_tb.Text = Val(銷售合計_tb.Text) - Val(稅金_tb.Text)
1468
         ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) > Val(刷卡稅金_tb.Text) Then
1468
         ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) > Val(刷卡稅金_tb.Text) Then
1469
-            通知_lb.Text = "應所拆售價稅金大於刷卡稅金,計算正常,利潤中扣除刷卡傭金"
1469
+            通知_lb.Text = "售價稅金大於刷卡稅金,計算正常,利潤中扣除刷卡傭金"
1470
         ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) < Val(刷卡稅金_tb.Text) Then
1470
         ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) < Val(刷卡稅金_tb.Text) Then
1471
             通知_lb.Text = "刷卡稅金大於自動計算後的稅金,邏輯有誤,請從新拆售價。"
1471
             通知_lb.Text = "刷卡稅金大於自動計算後的稅金,邏輯有誤,請從新拆售價。"
1472
         End If
1472
         End If

+ 9
- 10
YD-ERP-SYS/業務系統管理/銷售單申請.vb Voir le fichier

370
             If Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) = 0 Then
370
             If Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) = 0 Then
371
                 通知_lb.Text = "無稅金"
371
                 通知_lb.Text = "無稅金"
372
             ElseIf Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) <> 0 Then
372
             ElseIf Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) <> 0 Then
373
-                通知_lb.Text = "應刷卡稅金小,有刷卡帶入的稅金,所以拆售價以未稅顯示" : 稅金_tb.Text = Val(稅金_tb.Text) : 售價小計_tb.Text = Val(銷售合計_tb.Text) - Val(稅金_tb.Text)
373
+                通知_lb.Text = "因清單中沒有打勾含稅,但有刷卡帶入的稅金,所以稅金以刷卡稅金為主" : 稅金_tb.Text = 刷卡稅金_tb.Text : 售價小計_tb.Text = Val(銷售合計_tb.Text) - Val(稅金_tb.Text)
374
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) > Val(刷卡稅金_tb.Text) Then
374
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) > Val(刷卡稅金_tb.Text) Then
375
-                通知_lb.Text = "應所拆售價稅金大於刷卡稅金,計算正常,利潤中扣除刷卡傭金"
376
-                '--------------------------------------------------------------------------------------------------------------------------
375
+                通知_lb.Text = "因售價稅金大於刷卡稅金,計算正常,利潤中扣除刷卡傭金"
377
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) < Val(刷卡稅金_tb.Text) Then
376
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) < Val(刷卡稅金_tb.Text) Then
378
                 通知_lb.Text = "刷卡稅金大於自動計算後的稅金,邏輯有誤,請從新拆售價。"
377
                 通知_lb.Text = "刷卡稅金大於自動計算後的稅金,邏輯有誤,請從新拆售價。"
379
             End If
378
             End If
1499
             If Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) = 0 Then
1498
             If Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) = 0 Then
1500
                 通知_lb.Text = "無稅金"
1499
                 通知_lb.Text = "無稅金"
1501
             ElseIf Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) <> 0 Then
1500
             ElseIf Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) <> 0 Then
1502
-                通知_lb.Text = "應刷卡稅金小,有刷卡帶入的稅金,所以拆售價以未稅顯示" : 稅金_tb.Text = Val(稅金_tb.Text) : 售價小計_tb.Text = Val(銷售合計_tb.Text) - Val(稅金_tb.Text)
1501
+                通知_lb.Text = "因清單中沒有打勾含稅,但有刷卡帶入的稅金,所以稅金以刷卡稅金為主" : 稅金_tb.Text = 刷卡稅金_tb.Text : 售價小計_tb.Text = Val(銷售合計_tb.Text) - Val(稅金_tb.Text)
1503
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) > Val(刷卡稅金_tb.Text) Then
1502
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) > Val(刷卡稅金_tb.Text) Then
1504
-                通知_lb.Text = "應所拆售價稅金大於刷卡稅金,計算正常,利潤中扣除刷卡傭金"
1503
+                通知_lb.Text = "售價稅金大於刷卡稅金,計算正常,利潤中扣除刷卡傭金"
1505
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) < Val(刷卡稅金_tb.Text) Then
1504
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) < Val(刷卡稅金_tb.Text) Then
1506
                 通知_lb.Text = "刷卡稅金大於自動計算後的稅金,邏輯有誤,請從新拆售價。"
1505
                 通知_lb.Text = "刷卡稅金大於自動計算後的稅金,邏輯有誤,請從新拆售價。"
1507
             End If
1506
             End If
1615
 
1614
 
1616
             If Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) = 0 Then
1615
             If Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) = 0 Then
1617
                 通知_lb.Text = "無稅金"
1616
                 通知_lb.Text = "無稅金"
1618
-            ElseIf Val(稅金_tb.Text) = 0 Or Val(刷卡稅金_tb.Text) <> 0 Then
1619
-                通知_lb.Text = "應刷卡稅金小,有刷卡帶入的稅金,所以拆售價以未稅顯示" : 稅金_tb.Text = 刷卡稅金_tb.Text : 售價小計_tb.Text = Val(銷售合計_tb.Text) - Val(稅金_tb.Text)
1617
+            ElseIf Val(稅金_tb.Text) = 0 And Val(刷卡稅金_tb.Text) <> 0 Then
1618
+                通知_lb.Text = "因清單中沒有打勾含稅,但有刷卡帶入的稅金,所以稅金以刷卡稅金為主" : 稅金_tb.Text = 刷卡稅金_tb.Text : 售價小計_tb.Text = Val(銷售合計_tb.Text) - Val(稅金_tb.Text)
1620
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) > Val(刷卡稅金_tb.Text) Then
1619
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) > Val(刷卡稅金_tb.Text) Then
1621
-                通知_lb.Text = "應所拆售價稅金大於刷卡稅金,計算正常,利潤中扣除刷卡傭金"
1620
+                通知_lb.Text = "售價稅金大於刷卡稅金,計算正常,利潤中扣除刷卡傭金"
1622
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) < Val(刷卡稅金_tb.Text) Then
1621
             ElseIf (Val(稅金_tb.Text) <> 0 Or Val(刷卡稅金_tb.Text) <> 0) And Val(稅金_tb.Text) < Val(刷卡稅金_tb.Text) Then
1623
                 通知_lb.Text = "刷卡稅金大於自動計算後的稅金,邏輯有誤,請從新拆售價。"
1622
                 通知_lb.Text = "刷卡稅金大於自動計算後的稅金,邏輯有誤,請從新拆售價。"
1624
             End If
1623
             End If
1821
                 xlSheet.Cells(i + 9, 1) = 銷售明細_dgv.Rows(i).Cells("料號").Value
1820
                 xlSheet.Cells(i + 9, 1) = 銷售明細_dgv.Rows(i).Cells("料號").Value
1822
                 xlSheet.Cells(i + 9, 3) = 銷售明細_dgv.Rows(i).Cells("品名").Value & " " & 銷售明細_dgv.Rows(i).Cells("備註").Value
1821
                 xlSheet.Cells(i + 9, 3) = 銷售明細_dgv.Rows(i).Cells("品名").Value & " " & 銷售明細_dgv.Rows(i).Cells("備註").Value
1823
                 xlSheet.Cells(i + 9, 8) = 銷售明細_dgv.Rows(i).Cells("數量").Value : xlSheet.Cells(i + 9, 9) = 銷售明細_dgv.Rows(i).Cells("單價").Value
1822
                 xlSheet.Cells(i + 9, 8) = 銷售明細_dgv.Rows(i).Cells("數量").Value : xlSheet.Cells(i + 9, 9) = 銷售明細_dgv.Rows(i).Cells("單價").Value
1824
-                xlSheet.Cells(i + 9, 11) = 銷售明細_dgv.Rows(i).Cells("售價").Value : xlSheet.Cells(i + 9, 13) = 銷售明細_dgv.Rows(i).Cells("成本").Value
1825
-                xlSheet.Cells(i + 9, 12) = 銷售明細_dgv.Rows(i).Cells("成本").Value * 1.06
1823
+                xlSheet.Cells(i + 9, 11) = 銷售明細_dgv.Rows(i).Cells("售價").Value : xlSheet.Cells(i + 9, 13) = 銷售明細_dgv.Rows(i).Cells("成本").Value * 銷售明細_dgv.Rows(i).Cells("數量").Value
1824
+                xlSheet.Cells(i + 9, 12) = 銷售明細_dgv.Rows(i).Cells("成本").Value * 1.06 * 銷售明細_dgv.Rows(i).Cells("數量").Value
1826
                 PA30 = Strings.Left(銷售明細_dgv.Rows(i).Cells("料號").Value.ToString, 4) : Set_料號轉簡稱() : xlSheet.Cells(i + 9, 14) = 轉換_tb.Text
1825
                 PA30 = Strings.Left(銷售明細_dgv.Rows(i).Cells("料號").Value.ToString, 4) : Set_料號轉簡稱() : xlSheet.Cells(i + 9, 14) = 轉換_tb.Text
1827
                 With xlApp.Selection
1826
                 With xlApp.Selection
1828
                     .Font.Bold = True
1827
                     .Font.Bold = True

Loading…
Annuler
Enregistrer