Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
|
Callback
Support |
If you live in USA, UK, Canada, Australia or New
Zealand, you can leave us details on your question and request us to call you back and discuss
them with you personally (charges apply). |
Click Here
|
Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
|
Credit memo insert gives Invalid operand for operator: assignments error |
Author |
Message |
Suvi |
|
Group | : Members |
Posts | : 4 |
Joined | : 2008-04-02 |
|
Profile |
|
Posted : 2008-04-02 00:48:06 |
Hello all, I am trying to insert a credit memo using the following commands: INSERT INTO CreditMemoLine (CreditMemoLineItemRefListID,CreditMemoLineQuantity,CreditMemoLineAmount,FQSaveToCache) VALUES ('80002-1207031817',1.00,10.00,1)
INSERT INTO CreditMemo (CustomerRefListID, ARAccountRefListID,TxnDate, RefNumber, CustomerRefFullName, BillAddressAddr1, BillAddressAddr2, BillAddressCity, BillAddressState, BillAddressPostalCode, ShipAddressAddr1, ShipAddressAddr2, ShipAddressCity, ShipAddressState, ShipAddressPostalCode, IsToBePrinted) VALUES ('10000-1207029361','2A0000-1207029244',{d'2007-01-11'},'JAN AMOS','POE RAVA GEM COMPANY','PO BOX 2050','STATELINE','NY','89449','POE RAVA GEM COMPANY','PO BOX 2050','STATELINE','NY','89449',0)
I am getting 'Invalid operand for operator: <assignments>" error. What could be the reason? Thanks
With regards, Suvi Joseph |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2008-04-02 07:33:32 |
Your second insert is missing a value for RefNumber:
INSERT INTO CreditMemo (CustomerRefListID, ARAccountRefListID,TxnDate, RefNumber, CustomerRefFullName, BillAddressAddr1, BillAddressAddr2, BillAddressCity, BillAddressState, BillAddressPostalCode, ShipAddressAddr1, ShipAddressAddr2, ShipAddressCity, ShipAddressState, ShipAddressPostalCode, IsToBePrinted) VALUES ('10000-1207029361','2A0000-1207029244',{d'2007-01-11'},,'xxx01', 'JAN AMOS','POE RAVA GEM COMPANY','PO BOX 2050','STATELINE','NY','89449','POE RAVA GEM COMPANY','PO BOX 2050','STATELINE','NY','89449',0)
See: How do I create Credit Memos? to check your insert statement syntax. To get a better idea on what the actual problem may be, try reviewing the end of your QODBC and SDK message logs.
See also: How do I create a new Customer, invoice them and mark the invoice as paid? and: How to I handle Customer credits on account? for more information on the procedure for receiving the payment before the Invoice. |
|
|
|
|