Overwrite Date on Complete - doesn't update dateacct

Description

problem: Sales Order Doctype (POS, Credit Order, Warehouse) with "Overwrite Date on Complete" parameter = Y - doesn't update dateacct field on m_inout and c_invoice - when documents being completed.

steps to reproduce
1. open sales order - doctype = credit order
2. set up on shipment doctype - Overwrite Date on Complete = Yes
3. set up on invoice doctype - Overwrite Date on Complete = Yes
4. create a new order with Credit Order - complete order

use case
User create Order for 2014-10-10 complete order 2014-10-12. With above setup i'm await Shipment will be created with movementdate/dateacct to 2014-10-12 and Invoice (Customer) with date dateinvoiced/dateacct to date 2014-10-12.

BUG: dateacct in case of m_inout and c_invoice stay 2014-10-10 (just copied from order) instead consider parameter Overwrite Date on Complete" parameter = Y so 2014-10-12

Environment

2.0.0.v20141030-1516

Assignee

Carlos Ruiz

Reporter

Norbert Bede

Labels

None

Tested By

None

Priority

Minor
Configure