First you need to create a new accounting method by creating a copy of the standard accounting method.
Create a custom journal entry rule set.
put an end date to standard journal lines with accounting class as
Create a new account rule as depicted
Item expense
Tax
Misc
Freight
Create a new account rule as depicted
Now attach the custom account rule to the custom journal line for expense item , misc , Freight and Tax.
Note: in order to copy the POET details from the item expense to the Misc and freight line type, users need to select the 'Prorate to all line items' checkbox on the AP invoice line.
Tax lines are by default prorated to the line item invoice type.
activate your accounting method and now the system will override the invoice distribution account and replace it with the WIP if the project task is Capex.
for any questions please contact me at sameh11i@yahoo.com