Hi,
I'm generating shipments and invoices in OE module in a home made software.
What happened today is really weird. When I look at the shipments and invoices created today by my software I realize that they don't have the same date! Some have yesterday's date and some have today's date...All mixed up. All of them where created from the same computer. I can confirm the computer has the right date and time.
Here is a preview of my code (very simplified)
I tried adding the following lines before the Process function. This seems to let me force a date (In the following example 2014-11-07) for the invoice but not the shipment.
I find it strange that Accpac let me do this. Anyway why is Accpac not initializing these fields correctly?
Pleas let me know which fields I should configure to be sure that everything is fine. Or let me know if I'm doing something wrong.
Accpac version :5.6A update 3
Thanks.
I'm generating shipments and invoices in OE module in a home made software.
What happened today is really weird. When I look at the shipments and invoices created today by my software I realize that they don't have the same date! Some have yesterday's date and some have today's date...All mixed up. All of them where created from the same computer. I can confirm the computer has the right date and time.
Here is a preview of my code (very simplified)
Code:
vOEORDH>>Init
vOEORDH>>Fields("ORDNUMBER")>>Value = "OENUMBER"
vOEORDH>>Order = 1
IF vOEORDH>>Exists THEN
vOEORDH>>Read
vOEORDH>>Order = 0
//Add quantity shipped "QTYSHIPPED" to the OE0500 view
vOEORDH>>Fields("INVPRODUCE")>>Value = "1"//Invoice Will Be Produced
vOEORDH>>Fields("OECOMMAND")>>Value = "4"//Process O/E Command
vOEORDH>>Process
vOEORDH>>Update
END IF
I tried adding the following lines before the Process function. This seems to let me force a date (In the following example 2014-11-07) for the invoice but not the shipment.
Code:
vOEORDH>>Fields("SHIPDATE")>>Value = 41950
vOEORDH>>Fields("INVDATE")>>Value = 41950
I find it strange that Accpac let me do this. Anyway why is Accpac not initializing these fields correctly?
Pleas let me know which fields I should configure to be sure that everything is fine. Or let me know if I'm doing something wrong.
Accpac version :5.6A update 3
Thanks.