This article outlines the steps to resolve issues when a part in a vendor invoice appears blank or has a zero Parts ID. This typically requires manually adding the part and updating the SQL database.
Ensure you are connected to the clientโs server environment before proceeding.
Navigate to Parts > Vendor Invoices.
View Closed and Posted invoices.
Locate the relevant invoice by entering the vendor invoice number.
Right-click on the invoice and select Edit.
Within the invoice, right-click on the part line item and choose View Part Master Record.
If the part information is blank and shows a 0 in the lower-left corner, this indicates a missing or unlinked Parts Master ID.
Go to Parts > Parts List.
Create a new part record in the inventory.
Make note of the Parts Master ID in the lower-left corner of the part entry screen.
Save and close the new record.
โ ๏ธ Note: Ensure you have appropriate permissions and a backup before making any SQL changes.
Launch SQL Server Management Studio (SSMS) and connect to the database.
Open the table dbo.RestockDet
.
Locate the relevant row for the invoice/part.
Enter the new Parts ID in the ItemID
column.
Set the ItemType
column to 1
.
Then open the table dbo.Parts
.
Search for the newly created part by part number.
Update the OnHand
quantity to 1
(or adjust based on customer input).
Verify that the part is now correctly listed in the invoice and inventory.
Double-check all quantities and make any additional changes if requested by the customer.