@anand
Revisiting this issue again since we are now serious about the migration.
In version 3. the field name for “Expense Code” in “Purchase Invoice Item” doctype is‘expense_head’. Since we wanted to capture “Expense Code” at creation of purchase order, we create a custom field called “expense_head” for “Purchase Order Item” doctype. This way when we create “Purchase Invoice” from “Purchase Order” page, the expense_head fields of “Purchase Invoice Item” gets populated automatically. We did same for “Purchase Receipt Item” doctype. But in the new version it seems that this fields has been renamed to ‘expense_account’ from “expense_head”. Because of this the Expense code from Purchase Order Item/Purchase Receipt Item is not being automatically mapped on Purchase Invoice (for each line item) Page.
How do we resolve it? Do I need to add new custom field called expense_head for Purchase receipt item/purchase order item and manually copy over the data at database level for existing purchase orders/receipts? This also means rewriting the custom reports that depends on this field. Is there any other way to handle this?
Kind regards,
MP