Home > Back-end > "Seek enthusiastic help warehouse management system"
"Seek enthusiastic help warehouse management system"
Time:10-12
Warehouse management system have a problem with a disability to get rid of inventory quantity after receipt submitted into plus GRN number is now a submit GRN inventory quantity becomes 0 here is the small number of code//warehouse to check whether there is a certain position in the library the item selstr:='select * from store_info where' + 'pro_code=' "+ ComboBox2. Text + ' ' 'and place_code='" + ComboBox5. Text + "'" '; If store. StoreRec (selstr)=false thenbegin//if not, just insert the information of the inventory items inventory information in the table instr:="insert into store_info (pro_code store_pro_num, unit, place_code '+') values (' ' '+ edit1. Text +' ' ', ' ' '+ SpinEdit1. Text +' ' ', ' ' '+ ComboBox3. Text +' ' ', ' ' '+ ComboBox5. Text +' ' ') '. Store. StoreRecInsert (instr); Endelsebegin//if there is, you need the original number and the storage quantity added, and the inventory information in the table number changes as the result of the combined pro_num:=strtoint (pro_numed. Text) + strtoint (store. GetStoreNum (selstr)); Modstr:='update store_info set store_info. STORE_PRO_NUM=' "+ inttostr (pro_num) +" '"' + 'where pro_code=' "+ ComboBox2. Text + ' ' 'and place_code='" + ComboBox5. Text + "'" '; Store. StoreRecUpdate (modstr); end; If you modify the code above will not solve the problem I hope the great god can leave a small email a unit code change is not very trouble to help me thank you very much
CodePudding user response:
No one help you,
CodePudding user response:
Submit the receipt, then perform the SQL query inventory,
CodePudding user response:
Generally do not change the standing crop data directly, but will be in receipt of a specific data! Then the executive summary of existing scale to query the stock on hand! Directly change the data more dangerous! Deal with the irreversible!