1 (edited by prayoga.indra 05/26/2011 06:45:50 am)

Topic: Closing Sales Order

Hi...

How to close Sales Order that has been delivered ?

When I click on 'Sales Orders Inquiry' all unit has been delivered but user with salesman,  System Administrator or Accountant privilages still can change and add new item to that sales order ...

is that any way to close that sales order and only system administrator can edit or add that order,
so salesmans or even accountant cannot make new delivery from that sales order ?

because it was very interfered when salesman add new order to the closed sales order - using cheaper price ....

same case in purchase order ...

thx before

Re: Closing Sales Order

HI

I already Add command :

if ($_SESSION['Items']->trans_type == ST_SALESORDER &&
        sales_order_has_deliveries(key($_SESSION['Items']->trans_no))) {   
        display_error(_("This order cannot be modified because some of it has already been invoiced or dispatched."));
        return false;

at Sales_Order_Entry.php -  function can_process
that makes delivered order cannot be updated or add new item again .....

thx