B70340 3 anos atrás
pai
commit
827fbeda79

BIN
.vs/YD-ERP-SYS/v16/.suo Ver arquivo


+ 1
- 1
YD-ERP-SYS/Module/全域變數.vb Ver arquivo

@@ -4,7 +4,7 @@
4 4
     Public 版本號 As String : Public Target As String : Public Target1 As String : Public Target2 As String : Public FTP帳號 As String : Public FTP密碼 As String : Public FTP物理位置 As String
5 5
     Public AA(99) As String : Public BB(99) As Boolean : Public CC(99) As Boolean : Public 登入判斷 As Boolean : Public 業務號碼 As String
6 6
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7
-    Public 版本 As String = "2021082701"
7
+    Public 版本 As String = "2021083001"
8 8
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9 9
     Public 列印用SQL As String = "" : Public 列印用SQL2 As String : Public 公司編號 As String : Public 公司電話 As String : Public 公司統編 As String : Public 公司地址 As String
10 10
     Public 關鍵字編號 As String

BIN
YD-ERP-SYS/bin/Debug/YD-ERP-SYS.exe Ver arquivo


BIN
YD-ERP-SYS/bin/Debug/YD-ERP-SYS.pdb Ver arquivo


BIN
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.exe Ver arquivo


BIN
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.pdb Ver arquivo


BIN
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbproj.GenerateResource.cache Ver arquivo


BIN
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbprojAssemblyReference.cache Ver arquivo


+ 2
- 1
YD-ERP-SYS/業務系統管理/訂單控制表.vb Ver arquivo

@@ -204,6 +204,7 @@ Public Class 訂單控制表
204 204
             End If
205 205
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
206 206
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
207
+                '不含1類銷售小記 = 不含1類銷售小記 - 銷售明細_dgv("成本", i).Value
207 208
             End If
208 209
 
209 210
             If 銷售明細_dgv("含稅", i).Value = True Then
@@ -256,7 +257,7 @@ Public Class 訂單控制表
256 257
                 If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
257 258
                     司機運費_tb.Text = 最低運費_cb.Text
258 259
                 ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
259
-                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text) - Val(其他成本_tb.Text)) / 100 * 3
260
+                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text)) / 100 * 3 ' - Val(其他成本_tb.Text)
260 261
                 End If
261 262
             Else
262 263
                 司機運費_tb.Text = 運費

+ 6
- 3
YD-ERP-SYS/業務系統管理/銷售單審核.vb Ver arquivo

@@ -324,6 +324,7 @@ Public Class 銷售單審核
324 324
             End If
325 325
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
326 326
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
327
+                '不含1類銷售小記 = 不含1類銷售小記 - 銷售明細_dgv("成本", i).Value
327 328
             End If
328 329
 
329 330
             If 銷售明細_dgv("含稅", i).Value = True Then
@@ -376,7 +377,7 @@ Public Class 銷售單審核
376 377
                 If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
377 378
                     司機運費_tb.Text = 最低運費_cb.Text
378 379
                 ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
379
-                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text) - Val(其他成本_tb.Text)) / 100 * 3
380
+                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text)) / 100 * 3 ' - Val(其他成本_tb.Text)
380 381
                 End If
381 382
             Else
382 383
                 司機運費_tb.Text = 運費
@@ -1249,6 +1250,7 @@ Public Class 銷售單審核
1249 1250
             End If
1250 1251
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
1251 1252
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
1253
+                '不含1類銷售小記 = 不含1類銷售小記 - 銷售明細_dgv("成本", i).Value
1252 1254
             End If
1253 1255
 
1254 1256
             If 銷售明細_dgv("含稅", i).Value = True Then
@@ -1300,7 +1302,7 @@ Public Class 銷售單審核
1300 1302
             If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
1301 1303
                 司機運費_tb.Text = 最低運費_cb.Text
1302 1304
             ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
1303
-                司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text) - Val(其他成本_tb.Text)) / 100 * 3
1305
+                司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text)) / 100 * 3 ' - Val(其他成本_tb.Text)
1304 1306
             End If
1305 1307
         End If
1306 1308
         存檔1()
@@ -1360,6 +1362,7 @@ Public Class 銷售單審核
1360 1362
             End If
1361 1363
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
1362 1364
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
1365
+                '不含1類銷售小記 = 不含1類銷售小記 - 銷售明細_dgv("成本", i).Value
1363 1366
             End If
1364 1367
 
1365 1368
             If 銷售明細_dgv("含稅", i).Value = True Then
@@ -1405,7 +1408,7 @@ Public Class 銷售單審核
1405 1408
                 If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
1406 1409
                     司機運費_tb.Text = 最低運費_cb.Text
1407 1410
                 ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
1408
-                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text) - Val(其他成本_tb.Text)) / 100 * 3
1411
+                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text)) / 100 * 3 ' - Val(其他成本_tb.Text)
1409 1412
                 End If
1410 1413
             Else
1411 1414
                 司機運費_tb.Text = 運費

+ 22
- 22
YD-ERP-SYS/業務系統管理/銷售單申請.Designer.vb Ver arquivo

@@ -30,12 +30,12 @@ Partial Class 銷售單申請
30 30
         Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31 31
         Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
32 32
         Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33
+        Dim DataGridViewCellStyle13 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
34
+        Dim DataGridViewCellStyle14 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33 35
         Dim DataGridViewCellStyle9 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
34 36
         Dim DataGridViewCellStyle10 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
35 37
         Dim DataGridViewCellStyle11 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
36 38
         Dim DataGridViewCellStyle12 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
37
-        Dim DataGridViewCellStyle13 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
38
-        Dim DataGridViewCellStyle14 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
39 39
         Dim DataGridViewCellStyle15 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
40 40
         Dim DataGridViewCellStyle16 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
41 41
         Me.銷售單據_dgv = New System.Windows.Forms.DataGridView()
@@ -1000,7 +1000,6 @@ Partial Class 銷售單申請
1000 1000
         Me.Panel1.Controls.Add(Me.新增衍生運費_bt)
1001 1001
         Me.Panel1.Controls.Add(Me.項次4_tb)
1002 1002
         Me.Panel1.Controls.Add(Me.Label49)
1003
-        Me.Panel1.Controls.Add(Me.銷售衍生運費_dgv)
1004 1003
         Me.Panel1.Controls.Add(Me.刷卡可刪除_ch)
1005 1004
         Me.Panel1.Controls.Add(Me.通知_lb)
1006 1005
         Me.Panel1.Controls.Add(Me.刷卡總和_tb)
@@ -1056,15 +1055,16 @@ Partial Class 銷售單申請
1056 1055
         Me.Panel1.Controls.Add(Me.訂製編碼_cb)
1057 1056
         Me.Panel1.Controls.Add(Me.流水號_tb)
1058 1057
         Me.Panel1.Controls.Add(Me.Label1)
1059
-        Me.Panel1.Controls.Add(Me.銷售明細_dgv)
1060 1058
         Me.Panel1.Controls.Add(Me.收款事項_dgv)
1061 1059
         Me.Panel1.Controls.Add(Me.Label28)
1062 1060
         Me.Panel1.Controls.Add(Me.刪除單據上點選的資料_bt)
1063 1061
         Me.Panel1.Controls.Add(Me.Label20)
1064 1062
         Me.Panel1.Controls.Add(Me.Label39)
1065 1063
         Me.Panel1.Controls.Add(Me.Label40)
1066
-        Me.Panel1.Controls.Add(Me.銷售備註_dgv)
1067 1064
         Me.Panel1.Controls.Add(Me.Label51)
1065
+        Me.Panel1.Controls.Add(Me.銷售明細_dgv)
1066
+        Me.Panel1.Controls.Add(Me.銷售衍生運費_dgv)
1067
+        Me.Panel1.Controls.Add(Me.銷售備註_dgv)
1068 1068
         Me.Panel1.Location = New System.Drawing.Point(1, 172)
1069 1069
         Me.Panel1.Name = "Panel1"
1070 1070
         Me.Panel1.Size = New System.Drawing.Size(924, 502)
@@ -1123,8 +1123,8 @@ Partial Class 銷售單申請
1123 1123
         '
1124 1124
         '銷售衍生運費_dgv
1125 1125
         '
1126
-        DataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
1127
-        Me.銷售衍生運費_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle9
1126
+        DataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
1127
+        Me.銷售衍生運費_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle13
1128 1128
         Me.銷售衍生運費_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
1129 1129
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1130 1130
         Me.銷售衍生運費_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
@@ -1132,9 +1132,9 @@ Partial Class 銷售單申請
1132 1132
         Me.銷售衍生運費_dgv.Location = New System.Drawing.Point(3, 542)
1133 1133
         Me.銷售衍生運費_dgv.Name = "銷售衍生運費_dgv"
1134 1134
         Me.銷售衍生運費_dgv.RowHeadersWidth = 5
1135
-        DataGridViewCellStyle10.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1136
-        DataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1137
-        Me.銷售衍生運費_dgv.RowsDefaultCellStyle = DataGridViewCellStyle10
1135
+        DataGridViewCellStyle14.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1136
+        DataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1137
+        Me.銷售衍生運費_dgv.RowsDefaultCellStyle = DataGridViewCellStyle14
1138 1138
         Me.銷售衍生運費_dgv.RowTemplate.Height = 24
1139 1139
         Me.銷售衍生運費_dgv.Size = New System.Drawing.Size(725, 102)
1140 1140
         Me.銷售衍生運費_dgv.TabIndex = 1334
@@ -1398,7 +1398,7 @@ Partial Class 銷售單申請
1398 1398
         '
1399 1399
         Me.項次3_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1400 1400
         Me.項次3_tb.Enabled = False
1401
-        Me.項次3_tb.Location = New System.Drawing.Point(419, 391)
1401
+        Me.項次3_tb.Location = New System.Drawing.Point(419, 390)
1402 1402
         Me.項次3_tb.Name = "項次3_tb"
1403 1403
         Me.項次3_tb.Size = New System.Drawing.Size(32, 23)
1404 1404
         Me.項次3_tb.TabIndex = 1290
@@ -1660,17 +1660,17 @@ Partial Class 銷售單申請
1660 1660
         '
1661 1661
         '客戶資料_dgv
1662 1662
         '
1663
-        DataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
1664
-        Me.客戶資料_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle11
1663
+        DataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
1664
+        Me.客戶資料_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle9
1665 1665
         Me.客戶資料_dgv.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1666 1666
         Me.客戶資料_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
1667 1667
         Me.客戶資料_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
1668
-        Me.客戶資料_dgv.Location = New System.Drawing.Point(17, 14052)
1668
+        Me.客戶資料_dgv.Location = New System.Drawing.Point(17, 14326)
1669 1669
         Me.客戶資料_dgv.Name = "客戶資料_dgv"
1670 1670
         Me.客戶資料_dgv.RowHeadersWidth = 5
1671
-        DataGridViewCellStyle12.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1672
-        DataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1673
-        Me.客戶資料_dgv.RowsDefaultCellStyle = DataGridViewCellStyle12
1671
+        DataGridViewCellStyle10.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1672
+        DataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1673
+        Me.客戶資料_dgv.RowsDefaultCellStyle = DataGridViewCellStyle10
1674 1674
         Me.客戶資料_dgv.RowTemplate.Height = 24
1675 1675
         Me.客戶資料_dgv.Size = New System.Drawing.Size(191, 92)
1676 1676
         Me.客戶資料_dgv.TabIndex = 1254
@@ -1678,8 +1678,8 @@ Partial Class 銷售單申請
1678 1678
         '
1679 1679
         '收款事項_dgv
1680 1680
         '
1681
-        DataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
1682
-        Me.收款事項_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle13
1681
+        DataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
1682
+        Me.收款事項_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle11
1683 1683
         Me.收款事項_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
1684 1684
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1685 1685
         Me.收款事項_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
@@ -1687,9 +1687,9 @@ Partial Class 銷售單申請
1687 1687
         Me.收款事項_dgv.Location = New System.Drawing.Point(3, 669)
1688 1688
         Me.收款事項_dgv.Name = "收款事項_dgv"
1689 1689
         Me.收款事項_dgv.RowHeadersWidth = 5
1690
-        DataGridViewCellStyle14.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1691
-        DataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1692
-        Me.收款事項_dgv.RowsDefaultCellStyle = DataGridViewCellStyle14
1690
+        DataGridViewCellStyle12.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1691
+        DataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1692
+        Me.收款事項_dgv.RowsDefaultCellStyle = DataGridViewCellStyle12
1693 1693
         Me.收款事項_dgv.RowTemplate.Height = 24
1694 1694
         Me.收款事項_dgv.Size = New System.Drawing.Size(725, 102)
1695 1695
         Me.收款事項_dgv.TabIndex = 1282

+ 6
- 3
YD-ERP-SYS/業務系統管理/銷售單申請.vb Ver arquivo

@@ -324,6 +324,7 @@ Public Class 銷售單申請
324 324
             End If
325 325
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
326 326
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
327
+                '不含1類銷售小記 = 不含1類銷售小記 - 銷售明細_dgv("成本", i).Value
327 328
             End If
328 329
 
329 330
             If 銷售明細_dgv("含稅", i).Value = True Then
@@ -376,7 +377,7 @@ Public Class 銷售單申請
376 377
                 If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
377 378
                     司機運費_tb.Text = 最低運費_cb.Text
378 379
                 ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
379
-                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text) - Val(其他成本_tb.Text)) / 100 * 3
380
+                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text)) / 100 * 3 ' - Val(其他成本_tb.Text)
380 381
                 End If
381 382
             Else
382 383
                 司機運費_tb.Text = 運費
@@ -1327,6 +1328,7 @@ Public Class 銷售單申請
1327 1328
             End If
1328 1329
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
1329 1330
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
1331
+                '不含1類銷售小記 = 不含1類銷售小記 - 銷售明細_dgv("成本", i).Value
1330 1332
             End If
1331 1333
 
1332 1334
             If 銷售明細_dgv("含稅", i).Value = True Then
@@ -1378,7 +1380,7 @@ Public Class 銷售單申請
1378 1380
             If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
1379 1381
                 司機運費_tb.Text = 最低運費_cb.Text
1380 1382
             ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
1381
-                司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text) - Val(其他成本_tb.Text)) / 100 * 3
1383
+                司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text)) / 100 * 3 ' - Val(其他成本_tb.Text)
1382 1384
             End If
1383 1385
         End If
1384 1386
         存檔1()
@@ -1432,6 +1434,7 @@ Public Class 銷售單申請
1432 1434
             End If
1433 1435
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
1434 1436
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
1437
+                '不含1類銷售小記 = 不含1類銷售小記 - 銷售明細_dgv("成本", i).Value
1435 1438
             End If
1436 1439
 
1437 1440
             If 銷售明細_dgv("含稅", i).Value = True Then
@@ -1477,7 +1480,7 @@ Public Class 銷售單申請
1477 1480
                 If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
1478 1481
                     司機運費_tb.Text = 最低運費_cb.Text
1479 1482
                 ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
1480
-                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text) - Val(其他成本_tb.Text)) / 100 * 3
1483
+                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text)) / 100 * 3 ' - Val(其他成本_tb.Text)
1481 1484
                 End If
1482 1485
             Else
1483 1486
                 司機運費_tb.Text = 運費

Carregando…
Cancelar
Salvar