asset warranty plus warranty term update
This commit is contained in:
@ -287,11 +287,11 @@ merged_df_ib = merged_df_ib.drop('Floor__c', axis=1)
|
||||
merged_df_ib = merged_df_ib.drop('InstalledBaseLocation__c', axis=1)
|
||||
#merged_df_ib = merged_df_ib.drop('InstalledBaseLocation__r.Id', axis=1)
|
||||
merged_df_ib = merged_df_ib.drop('Id_y', axis=1)
|
||||
merged_df_ib = merged_df_ib.drop('Id_x', axis=1)
|
||||
#merged_df_ib = merged_df_ib.drop('Id_x', axis=1)
|
||||
merged_df_ib = merged_df_ib.drop('ProductUnitClass__c', axis=1)
|
||||
merged_df_ib = merged_df_ib.drop('ProductUnitType__c', axis=1)
|
||||
|
||||
merged_df_ib.columns = ['Name', 'FSL_1st_Ignition_Date__c', 'InstallDate', 'Kind_of_Energy__c', 'Product2.Product_Code__c', 'SerialNumber', 'Serialnumber_Exception__c', 'Location.PKey__c']
|
||||
merged_df_ib.columns = ['PKey__c', 'Name', 'FSL_1st_Ignition_Date__c', 'InstallDate', 'Kind_of_Energy__c', 'Product2.Product_Code__c', 'SerialNumber', 'Serialnumber_Exception__c', 'Location.PKey__c']
|
||||
#merged_df_ib = merged_df_ib.drop('Main_Product_Group__c', axis=1)
|
||||
# assign Main_Product_Group__c based on product2 records
|
||||
merged_df_ib = pd.merge(merged_df_ib,
|
||||
@ -547,14 +547,14 @@ df_servicecontract['Term'] = df_servicecontract['Term'].fillna(0).astype(int)
|
||||
address_df.to_csv('../4_upsert_address_and_parent_location/Address.csv', index=False)
|
||||
parent_df.to_csv('../4_upsert_address_and_parent_location/Location.csv', index=False)
|
||||
child_df.to_csv('../6_upsert_child_location/Location.csv', index=False)
|
||||
merged_df_ib.to_csv('../8_upsert_assets/Asset.csv', index=False)
|
||||
df_ibr.to_csv('../11_upsert_associated_location/AssociatedLocation_beforetransform.csv', index=False)
|
||||
df_pricelist.to_csv('../12_insert_pricebook2_and_pricebookentries/Pricebook2.csv', index=False)
|
||||
df_pricelistitem.to_csv('../12_insert_pricebook2_and_pricebookentries/PricebookEntry.csv', index=False)
|
||||
merged_df_ib.to_csv('../9_upsert_assets/Asset.csv', index=False)
|
||||
df_ibr.to_csv('../12_upsert_associated_location/AssociatedLocation_beforetransform.csv', index=False)
|
||||
df_pricelist.to_csv('../13_insert_pricebook2_and_pricebookentries/Pricebook2.csv', index=False)
|
||||
df_pricelistitem.to_csv('../13_insert_pricebook2_and_pricebookentries/PricebookEntry.csv', index=False)
|
||||
merged_df_location_iot.to_csv('../3_update_address_and_location_data_for_migration/Location.csv', index=False)
|
||||
df_servicecontracttemplates.to_csv('../13_insert_servicecontracttemplates_dummies/ServiceContract.csv', index=False)
|
||||
df_servicecontract.to_csv('../15_insert_servicecontract/ServiceContract_beforetransform.csv', index=False)
|
||||
df_assetwarranty_save.to_csv('../8_upsert_assets/AssetWarranty.csv', index=False)
|
||||
df_servicecontracttemplates.to_csv('../14_insert_servicecontracttemplates_dummies/ServiceContract.csv', index=False)
|
||||
df_servicecontract.to_csv('../16_insert_servicecontract/ServiceContract_beforetransform.csv', index=False)
|
||||
df_assetwarranty_save.to_csv('../9_upsert_assets/AssetWarranty.csv', index=False)
|
||||
## end mapping
|
||||
|
||||
print('Data has been successfully transformed and saved to CSV files.')
|
Reference in New Issue
Block a user