SELECT
*
FROM
Estimates
WHERE
Estimate_Type = 'Quote'
INSERT INTO
Estimates (
Contact,
Dated_On,
[Status],
Estimate_Type,
Currency,
Reference,
Estimate_Items
)
VALUES
(
'https://api.freeagent.com/v2/contacts/18494140',
'2024-11-27',
'Draft',
'Quote',
'USD',
'Customer Ref 2',
'[{"item_type":"Days","quantity":"2","price":"999.99","description":"Consultancy Days"}]'
)
UPDATE Estimates
SET
Estimate_Items = '[{"item_type":"Days","quantity":"4","price":"999.99","description":"Consultancy Days"},{"item_type":"Hours","quantity":"32","price":"172.22","description":"Developer Hours"}]'
WHERE
Id = '5771094'
DELETE FROM Estimates
WHERE
Id = '5771094'