Open FutureITCorp opened 1 year ago
POINT 7. CLARIFICATION. It about log.csv. Currently time is presented in the following way: "95783173,69,08/13/2023,03:25 PM,PLN,131,RUB,3000,22.90,,," ,however Time should have the same representation as in Receipt.txt, e.g. "10:46 AM (GMT+2)". Or maybe, make a separate field "TimeZone"?
POINT 3. The following fields should be in CSV: TransactionID,CID,Date,Time,TZ,Currency1,Amount1,Currency2,Amount2,Rate,Comment,CashRegistrarIN,CashRegistrarOUT,General1,General2
TZ - is a time zone. CashRegistrarIN and CashRegistrarOUT - cash money received during transaction.
CSV FILE. FIELDS. Case-sensitive: TransactionID,Date,Time,TZ,CID,Currency1,Amount1,Currency2,Amount2,Rate,Comment,CashRegistrarIN,CashRegistrarOUT,NewData,General1,General2
COMMAND-LINE. FIELDS.: CID: Currency IN: Amount IN: Currency OUT: Amount OUT: Comment: Cash Registrar IN: Cash Registrar OUT: New data about client: Date: * - if nothing is entered, then the current system date is taken. If date is entered manually then date is taken from the input. No questions to user.
v3.02 REVIEW.
CSV FILE. FIELDS. Case-sensitive: Verify these names --------> TransactionID,Date,Time,TZ,CID,Currency1,Amount1,Currency2,Amount2,Rate,Comment,CashRegistrarIN,CashRegistrarOUT,NewData,General1,General2
PROMPT IN THE BEGINNING OF THE PROGRAM. Leave the original prompt for the previous version and add the path to the log. "Hello host ...... Please in put ...... -----blank line----- Full path ......." Path to the log should be in the beginning of the program, not in the end.
RECOMMENDATION. 08/15/2023. If you can, specify the program version in file properties, see "File version" field.
Everything else seems to be look good.
3.02 REVIEW. VALIDATION RULES.
CID: - No rules Currency IN: - Capital letters only. No numbers. Amount IN: - Numbers only. Commas and Dots are allowed as digit separators. Currency OUT: - Capital letters only. No numbers. Amount OUT: - Numbers only. Commas and Dots are allowed as digit separators. Comment: - No rules Cash Registrar IN: - Numbers only. Commas and Dots are allowed as digit separators. Cash Registrar OUT: - Numbers only. Commas and Dots are allowed as digit separators. New data about client: - No rules Date: - 2 forwardslashes ?? and 4 digits in the end?
3.04 REVIEW.
UPDATED VALIDATION RULES: Rule 1 {
CID: - No rules Currency IN: -Rule1 Amount IN: - Rule2 Currency OUT: - Rule1 Amount OUT: - Rule2 Comment: - No rules Cash Registrar IN: - Rule2 Cash Registrar OUT: - Rule2 New data about client: - No rules General1: - No rules General2: - No rules Date: - 2 forwardslashes ?? and 4 digits in the end?
TIP: Implement repeated validation via do-while. Example:
do { $answer = Read-Host -Prompt " Do you want to run the program from the beginning?[n/y]" } while (($answer -cne "y") -and ($answer -cne "yes") -and ($answer -cne "n"))
3.05 REVIEW.
Review the latest commit
3.06 REVIEW.
2.RECOMMENDATION. If you can, specify the program version:
3.07 REVIEW.
Issues left: 2.RECOMMENDATION. If you can, specify the program version:
4.'"Enter" to continue' -> '"Enter" to start all over'
3.07 REVIEW. UPDATE. 2. - was fixed
4.'"Enter" to continue' -> '"Enter" to start all over'
3.07 REVIEW. UPDATE.
4.'"Enter" to continue' -> '"Enter" to start all over'
Improvement: Would be good to see the number of transaction within a day and with in a month.
3.07 REVIEW. UPDATE.
4.'"Enter" to continue' -> '"Enter" to start all over'
Improvement: Would be good to see the number of transaction within a day and with in a month.
08/23/2023. "General1" field - replace to "Covered" Y/N.
3.09 REVIEW.
Date module is good.
UPDATED VALIDATION RULES:
FOR ALL FIELDS:
RULE 0 {
RULE 1 {
RULE 2 {
RULE 3 {
CID: - Rule3, Currency IN: -Rule1 Amount IN: - Rule2 Currency OUT: - Rule1 Amount OUT: - Rule2 Comment: - No Rules Cash Registrar IN: - Rule2 Cash Registrar OUT: - Rule2 New data about client: - No rules Covered: - Only capital "Y" or "N" are allowed. Rule 0. General1: - No rules General2: - No rules Date: - The module was already developed.
3.11 REVIEW.
3.09.1 + 3.09.2 + 3.09.3+ 3.09.4 + 3.09.5 - 'Q - should be case sensitive. I did a mistake in review of v00.07.' 3.09.6 + 3.09.7 +
3.12 REVIEW.
3.09.5 + 3.11.8. + All corrected, except "Inputted" -> "Input"? 3.11.9. +
Improvements for the future. Minor:
1
Critical - 2,7,8,6