Pub 225 Compliance
This commit is contained in:
@@ -32,6 +32,8 @@ const assetColumns = [
|
||||
'passenger_auto',
|
||||
'business_use_percent',
|
||||
'investment_use_percent',
|
||||
'soil_water_deductions',
|
||||
'cost_sharing_excluded',
|
||||
'disposal_date',
|
||||
'disposal_price',
|
||||
'disposal_expense',
|
||||
@@ -64,6 +66,8 @@ function assetFromRow(row) {
|
||||
...row,
|
||||
listed_property: Boolean(row.listed_property),
|
||||
passenger_auto: Boolean(row.passenger_auto),
|
||||
soil_water_deductions: Number(row.soil_water_deductions || 0),
|
||||
cost_sharing_excluded: Number(row.cost_sharing_excluded || 0),
|
||||
custom_fields: parseJson(row.custom_fields, {}),
|
||||
books: row.books ? parseJson(row.books, []) : undefined
|
||||
};
|
||||
@@ -213,6 +217,8 @@ function normalizeAssetInput(body) {
|
||||
input.prior_depreciation = Number(input.prior_depreciation || 0);
|
||||
input.business_use_percent = Number(input.business_use_percent || 100);
|
||||
input.investment_use_percent = Number(input.investment_use_percent || 0);
|
||||
input.soil_water_deductions = Number(input.soil_water_deductions || 0);
|
||||
input.cost_sharing_excluded = Number(input.cost_sharing_excluded || 0);
|
||||
input.custom_fields = json(input.custom_fields || {});
|
||||
input.listed_property = input.listed_property ? 1 : 0;
|
||||
input.passenger_auto = input.passenger_auto ? 1 : 0;
|
||||
|
||||
Reference in New Issue
Block a user