Hi all
I am starting to use work orders and the first thing I did was to read the file DeliveryDetails.php where WOs are created, always referred to a sales order.
Now i have the next question:
When I change a quote to a sales order, the following line is executed:
PHP Code:
if($_SESSION['Items'.$identifier]->Quotation==0)
Where we deduct if the quote has changed, all fine.. But then the following is executed looking for an existing contract:
PHP Code:
$ContractResult = DB_query("SELECT contractref,
requireddate
FROM contracts WHERE orderno='" . $_SESSION['ExistingOrder'.$identifier] ."'
AND status=1");
if(DB_num_rows($ContractResult)==1)
Inside the last if, are executed the sentences for create the WO, but since I do not have contracts created, those sentences are never executed and the WO is never created.
Whenever I change a quote to a sales order, I do not get a work order and it's something I need a lot... some ideas to help me?
Sorry for my english