Item
table
Column | Type |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Examples
INSERT INTO
Item (
[Name],
Description,
tax_id,
item_type,
product_type,
unit_id,
rate,
account_id,
purchase_rate,
purchase_description,
purchase_account_id,
vendor_id
)
VALUES
(
'1TB Hard Disk',
'WD 1TB HDD 3.5"',
'579676000000050178',
'sales_and_purchases',
'goods',
'579676000000050038',
'299',
'579676000000000376',
'249',
'1 x WD 1TB HDD 3.5"',
'579676000000000509',
'579676000000081069'
)
DELETE FROM Item
WHERE
[Name] = '1TB Hard Disk'
UPDATE Item
SET
Rate = Rate * 1.1
WHERE
product_type = 'goods'