Beruflich Dokumente
Kultur Dokumente
Txoldqty.Text = GD("Quantity")
GD.MoveNext
Loop
End If
quan = (Val(Tx_qty.Text) + Val(Txoldqty.Text))
End If
End If
If tNo = 0 Then
Productcount = Productcount + 1
End If
End Sub
Com_Add.Enabled = True
End Sub
Private Sub Com_Invoice_Click()
If Screen.MousePointer = vbHourglass Then Exit Sub
If Com_Invoice.ListIndex <> -1 Then
Lab_RA.Caption = Rrset("Receive_Amt")
Tx_Invoice.Text = Rrset("Invoice_No")
Tx_bal.Text = Rrset("Balance_Amt")
setClient.Text = Rrset("Client_No")
setSalesHistory.Text = Rrset("SalesHistory")
Combo_InvoiceType.Text = Rrset("Invoice_Type")
Rrset.MoveNext
Loop
End If
Combo_CategeryView.Text = ""
Combo_SubCategeryView.Text = ""
Tx_oldstock.Text = ""
Tx_retailprice.Text = ""
Tx_qty.Text = ""
tot = 0
tota = 0
LblTotal.Caption = "0"
Combo_Item.Clear
Set Trset = lgConn.Execute("Select * from N_SalesPayment where Invoice_No ='" &
Trim(Tx_Invoice.Text) & "' and SalesHistory ='" & Trim(setSalesHistory.Text) & "'
and Cancelled = 'N'order by No")
End If
End Sub
RA = Val(Lab_RA.Caption) + Val(Tx_rec.Text)
Tx_bal.Text = Val(LblTotal.Caption) - Val(RA)
End If
Else
TP = Val(Tx_rec.Text) + Val(Lab_RA.Caption)
afld = Array("Total", "Invoice_Type", "Invoice_No", "SalesHistory", "Client_No",
"UserEditID", "Cancelled", "State", "Receive_Amt", "Balance_Amt")
vfld = Array(Trim(LblTotal.Caption), Trim(Combo_InvoiceType.Text),
Trim(Tx_Invoice.Text), Trim(setSalesHistory.Text), Trim(setClient.Text),
Trim(mCurUserID), "N", States, TP, Trim(Tx_bal.Text))
Sql = GetSQLString("N_SalesEntry", "U", afld, vfld, " where Invoice_No ='" &
Trim(Tx_Invoice.Text) & "' and SalesHistory = '" & Trim(setSalesHistory.Text) & "'
")
lgConn.Execute (Sql)
Call Form_Load
Call Entry
End If
End Sub
End If
Tx_oldstock.Enabled = False
Com_Stock.Visible = False
End Sub
Exit Sub
End Sub
Exit Sub
End Sub
Else
answer = MsgBox("Update", vbYesNo + vbQuestion)
lgConn.Execute "Update N_ClientName set ClientName ='" &
Trim(Tx_Clientname.Text) & "' ,ClientPhone ='" & Trim(Tx_phone.Text) & "' ,
ClientMail ='" & Trim(Tx_mail.Text) & "', SetCity ='" &
GetTexttoID(Trim(Combo_citysel.Text), "N_City", "CityName", "SetCity") & "' where
SetClient ='" & Trim(setClient.Text) & "'"
End If
Call Form_Load
End Sub
Exit Sub
End Sub
Tx_retailprice.Text = ""
Tx_oldstock.Text = ""
Txoldqty.Text = ""
End Sub
End Sub
lgConn.Execute (Sql)
Call Entry
End If
End If
ComboInvoice.Clear
ComboInvoice.Text = ""
Combo_CategeryView.Clear
Combo_CategeryView.Text = ""
Combo_SubCategeryView.Clear
Combo_SubCategeryView.Text = ""
Combo_citysel.Clear
Combo_Client.Clear
Combo_citysel.Text = ""
Combo_Client.Text = ""
Tx_Clientname.Text = ""
setClient.Text = ""
Tx_phone.Text = ""
Tx_mail.Text = ""
LblTotal.Caption = ""
Tx_rec.Text = ""
Tx_bal.Text = ""
setSalesHistory.Text = ""
Combo_InvoiceType.Clear
Combo_InvoiceType.AddItem "Cash"
Combo_InvoiceType.AddItem "Credit"
Combo_InvoiceType.Text = "Cash"
Combo_Item.Clear
Combo_Item.Text = ""
Com_Invoice.Clear
Com_Invoice.Text = ""
Lab_RA.Caption = ""
TP = 0
tprice = 0
TotalPrice = 0
Productcount = 0
Txoldqty.Text = ""
End Sub
Combo_citysel.Text = ""
Combo_Client.Text = ""
setClient.Text = ""
Tx_mail.Text = ""
End If
End Sub
lgConn.Execute (Sql)
Call Entry
End If
End If
End Sub