This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Bb 214 implement export new calculation (#232)
* Add template nmp, empty nmp file * Save empty file to localStorage on New calc * Renamed emptyNMP/templateNMP * Rename templateNMP * FARM_DETAILS Constant and Stringify
- Loading branch information
Showing
5 changed files
with
56 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const Names = { | ||
FARM_DETAILS: 'farmDetails', | ||
}; | ||
|
||
export default Names; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
const templateNMP = { | ||
farmDetails: { | ||
Year: '', | ||
FarmName: '', | ||
FarmRegion: 21, | ||
FarmSubRegion: null, | ||
SoilTests: null, | ||
TestingMethod: '11', | ||
Manure: null, | ||
HasSelectedFarmType: true, | ||
ImportsManureCompost: true, | ||
HasAnimals: false, | ||
HasDairyCows: false, | ||
HasBeefCows: false, | ||
HasPoultry: false, | ||
HasMixedLiveStock: false, | ||
HasHorticulturalCrops: true, | ||
HasBerries: true, | ||
LeafTests: null, | ||
LeafTestingMethod: '0', | ||
UserJourney: 7, | ||
}, | ||
unsaved: false, | ||
years: [ | ||
{ | ||
Year: '', | ||
Fields: [], | ||
FarmAnimals: [], | ||
FarmManures: [], | ||
GeneratedManures: [], | ||
ImportedManures: [], | ||
SeparatedSolidManures: [], | ||
ManureStorageSystems: [], | ||
}, | ||
], | ||
LastAppliedFarmManureId: null, | ||
NMPReleaseVersion: 3, | ||
}; | ||
|
||
export default templateNMP; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters