From: <ice...@us...> - 2013-06-08 16:04:04
|
Revision: 6009 http://sourceforge.net/p/web-erp/reponame/6009 Author: icedlava Date: 2013-06-08 16:04:01 +0000 (Sat, 08 Jun 2013) Log Message: ----------- PO update - fix sql where deladd6 overwritten with tel value Modified Paths: -------------- trunk/PO_Items.php Modified: trunk/PO_Items.php =================================================================== --- trunk/PO_Items.php 2013-06-06 16:33:23 UTC (rev 6008) +++ trunk/PO_Items.php 2013-06-08 16:04:01 UTC (rev 6009) @@ -274,7 +274,7 @@ deladd4='" . $_SESSION['PO'.$identifier]->DelAdd4 . "', deladd5='" . $_SESSION['PO'.$identifier]->DelAdd5 . "', deladd6='" . $_SESSION['PO'.$identifier]->DelAdd6 . "', - deladd6='" . $_SESSION['PO'.$identifier]->Tel . "', + tel='" . $_SESSION['PO'.$identifier]->Tel . "', suppdeladdress1='" . $_SESSION['PO'.$identifier]->SuppDelAdd1 . "', suppdeladdress2='" . $_SESSION['PO'.$identifier]->SuppDelAdd2 . "', suppdeladdress3='" . $_SESSION['PO'.$identifier]->SuppDelAdd3 . "', @@ -389,9 +389,9 @@ $Result = DB_Txn_Commit($db); /* Only show the link to auto receive the order if the user has permission to receive goods and permission to authorise and has authorised the order */ - if ($_SESSION['PO'.$identifier]->Status == 'Authorised' + if ($_SESSION['PO'.$identifier]->Status == 'Authorised' AND in_array($_SESSION['PageSecurityArray']['GoodsReceived.php'], $_SESSION['AllowedPageSecurityTokens'])){ - + echo '<a href="SupplierInvoice.php?SupplierID=' . $_SESSION['PO'.$identifier]->SupplierID . '&ReceivePO=' . $_SESSION['PO'.$identifier]->OrderNo . '&DeliveryDate=' . $_SESSION['PO'.$identifier]->DeliveryDate . '">' . _('Receive and Enter Purchase Invoice') . '</a>'; } @@ -656,7 +656,7 @@ $LeadTime=1; $DeliveryDate = $_SESSION['PO'.$identifier]->DeliveryDate; } - + $_SESSION['PO'.$identifier]->add_to_order ($_SESSION['PO'.$identifier]->LinesOnOrder+1, $ItemCode, 0, /*Serialised */ |