I have a custom object that users can access to make updates and create new entries. One of the field the users are allowed to update is a pick list field. I need to map each field of the Master object to the Staging Object but I get a compile error below. How do I resolve this? Thanks
public Void GO()
{
mainKey=1;
stagingwrappers=new List<StagingKey1Wrapper>();
List<Catalog_Master__c> Master_Data=[select ID, OPN__c, AQ_Qty__c from Catalog_Master__c Where OPN__c =:OPN_v and Business_Unit__c=:BU_v and Root_Part_Number__c=:Root_v Limit 5];
for (Catalog_Master__c Master : Master_Data)
{
Catalog__c staging_obj = new Catalog__c();
staging_obj.MasterID__c = Master.ID;
staging_obj.AQ_Qty__c = Master.AQ_Qty__c; //Compile Error: Illegal assignment from Decimal to String
Stagingwrappers.add(new StagingKey1Wrapper(mainKey++, staging_obj));
}
}