I have seen the tutorials, but they do not help me. Here is the problem stated more clearly:
I create an estimate with a single group item from the demo qb file. The group item is called Rock Fountain Group. The estimate is created with the following lines:
Rock Fountain - Group Header
Fountain - Group Item $275.00
Pump - Group Item $56.00
Concerete - Group Item $0.00
Installation - Group Item $35.00
Group Footer $385.00
I then want to copy this estimate into an invoice. To do so I use:
Insert into InvoiceLine(InvoiceLineGroupItemGroupRefListID,FQSaveToCache) Values ('1C0000-934380927',true)
Insert into "Invoice" (CustomerRefListID) Values ('840001-1197739634')
The above sql statement generates the following line estimate:
Rock Fountain - Group Header
Fountain - Group Item $275.00
Pump - Group Item $56.00
Concerete - Group Item $0.00
Installation - Group Item $30.00 //THIS PRICE IS DIFFERENT THEN ON THE ESTIMATE
Group Footer $380.00 //THIS PRICE IS DIFFERENT ALSO
The problem is that qodbc does not create Estimates and Invoices the same way for the same item group. The Estimate TotalAmount does not match the Invoice TotalAmount. How can this be fixed?
//Note: I have tried to add use the following query and received xml parse error after running the insert into Invoice
Insert into InvoiceLine(InvoiceLineGroupItemGroupRefListID, InvoiceLineGroupTotalAmount,FQSaveToCache) Values ('1C0000-934380927', 391.13,true)
Insert into "Invoice" (CustomerRefListID) Values ('840001-1197739634') |