Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21906

how to calculate remain quantity from inventory after selling

$
0
0
hey
this is a liitle difficult
i have 2 tabels one with inventory and one with cashregister
now lets say i purchased 10 iphones and saved it in the inventory
a customer comes buy and i sale him 5
so the remainng Quantity in the inventory is 5.
how do i calculate remain quantity from inventory after selling.
BTW i want the total to show in each line of the product i sold
this are the names of the tables and there values.

Code:

Table Name - Inventory
InvID - Long
InvDate - Date/Time
InvItem - Text
InvQuantity - Currency
InvBeforeTax - Currency
InvInvoice - Text
InvSupplier - Text
InvEmail - Text
InvPhone - Text
InvBranch - Text
InvFax - Text
InvCompany - Text
InvPaymentMethod - Text
InvPayments - Text
InvParts - Text
InvExpire - Date/Time
InvTax -  Currency
InvAfterTax - Currency
InvForCust -Text
InvTotal - Currency
InvPhoto - Text
InvRemarks - Text

Code:

Table Name - CashBox
CashID - Long
CashNameEmp - Text
CashDate - Date/Time
CashDay - Date/Time
CashTime - Date/Time
CashCust - Text
CashItem - Text
CashPartNumber - Text
CashQuantity - Currency
CashPrice - Currency
CashDiscount - Currency
CashTotal - Currency
CashMethod - Text
CashPayments - Currency
CashRemarks - Text

if more information is needed i will add.
Regards salsa

Viewing all articles
Browse latest Browse all 21906

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>