[FIX] purchase_analytic_plans: keep reference to analytic distribution

Purchase orders created with invoice policy 'Based on incoming shipments' were not keeping the reference to the account analytic distribution when invoiced. opw 607577