2016-11-30 5 views
0

請求書を挿入しようとすると問題が発生します。 私はVBデモアプリケーションでこれらのクエリを実行し、両方ともエラーがあります。Quickbooks - QODBC SQLのトラブル

クエリ1

insert into invoiceline 
(CustomerRefFullName,RefNumber,InvoiceLineSerialNumber,InvoiceLineDesc,FQSaveToCache) 
values 
('Esteban Inc.','98908','1','line 1',1) 
--- 
insert into invoice 
(CustomerRefFullName,ARAccountRefListID,TemplateRefFullName,RefNumber,TermsRefFullName,TxnDate,DueDate, 
"BillAddressAddr1", "BillAddressAddr2", "BillAddressAddr3", "BillAddressCity", "BillAddressState", "BillAddressPostalCode", "BillAddressCountry", 
"CustomerSalesTaxCodeRefFullName", "ItemSalesTaxRefFullName","IsPending","IsToBePrinted") 
values 
('Esteban Inc.','80000029-1478460828' ,'Time & Expense Invoice','98908','Net 30',{d'2016-10-31'},{d'2016-11-30'}, 
'Esteban Inc.','Project: TEST','Street 0001 - Dpto H','Rosario', 'Santa Fe', '2000','Argentina', 
'Non','NY - Monroe County',0,1) 

エラー

enter image description here

クエリ2

INSERT INTO "InvoiceLine" ("InvoiceLineItemRefListID", "InvoiceLineSalesTaxCodeRefListID", 
"InvoiceLineType", "InvoiceLineQuantity", 
"InvoiceLineRate", "InvoiceLineAmount", 
"InvoiceLineDesc", 
"InvoiceLineClassRefListID", "FQSaveToCache") 
VALUES (null,'80000002-1478214656', 
'Item', 0.75, 
125, 93.75, 
'10/26/2016 - Regular - Dario Diaz (0.75 hours) // Q4 2016 Retainer - October Retainer Work - Reviewing issue with pdf''s media type with Ale, testing in dev.', 
'80000001-1478457400', 1) 

INSERT INTO "Invoice" ("CustomerRefListID", "ARAccountRefListID", "TemplateRefListID", 
"TxnDate" ,"RefNumber", "BillAddressAddr1", 
"BillAddressAddr2", "BillAddressAddr3", "BillAddressCity", 
"BillAddressState", "BillAddressPostalCode", "BillAddressCountry", 
"IsPending", "IsToBePrinted", "TermsRefListID", 
"DueDate", "CustomerSalesTaxCodeRefListID") 
VALUES ('80000002-1478457181', '80000029-1478460828', '8000000B-1478214656', 
{d'2016-08-23'}, '102400', 'Some Client', 
'Project: Some Client - Q4 2016 Retainer', '190A Street', 'Rochester', 
'NY', '14625', 'USA', 
0, 1, '80000006-1478214663', 
{d'2016-11-30'}, '80000001-1478214656') 

エラー

enter image description here

ありがとうございます!

Esteban.-

+0

がありますアイテムなしでインボイスラインを作成しようとしていますか? InvoiceLineSalesTaxCodeRefListIDとitem type = Itemを指定したが、InvoiceLineItemRefListIDが指定されていないことに気付きました。あなたはQuickBooksアプリケーション(GUI)を介して同じレコードを作成することができますか? ? –

+0

クエリ1:QuickBooksで高度な在庫を有効にしていない可能性があります。 SQLステートメントのSerialNumberであるので、事前在庫が必要です。 –

答えて

1

クエリ1:私はあなたがあなたのQuickBooksで有効に高度な在庫を持っていない可能性がありますと思います。 SQLステートメントのSerialNumberであるので、事前在庫が必要です。

クエリ2:クエリから、InvoiceLineItemRefListIDフィールドにnull値を挿入していることがわかりました。 InvoiceLineItemRefListIDフィールドに有効な値を挿入する必要があります。

QODBC使用して請求書を作成するための下記の記事をご覧ください: http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2389/0/how-to-create-invoices-using-qodbc

- ラジェンドラデワニ

サポートスーパーバイザ、QODBC & QODBC-POS

FLEXquarters.com限定

関連する問題