toggle-corp / palika-profile

0 stars 0 forks source link

Verify number formatting #25

Closed eoglethorpe closed 5 years ago

eoglethorpe commented 5 years ago

There are three types of numerical values in the profiles: Integer, Decimal, Pct. See explanations and examples below. Note that this reads in the raw value of values stored in the Excel sheet, and not whatever formatting may be applied.

The logic for these values is:

sample output:

Eng

Num

1 >> 1 1000 >> 1,000 1000000 >> 1,000,000 .55 >> 0 5.5 >> 5

Dec

0 >> 0.00 .4 >> 0.40 5.5 >> 5.50 6 >> 6.00 6444.23 >> 6444.23 6.889 >> 6.89

Pct

0 >> 0.00% .344455 >> 34.45% .3 >> 30.00% 1 >> 100.00% Decimal value is greater than 1: 1.3 1.3 >> 130.00%

Nepali

Num

1 >> १ 1000 >> १,००० 1000000 >> १०,००,००० .55 >> ० 5.5 >> ५

Dec

0 >> ०.०० .4 >> ०.४० 5.5 >> ५.५० 6 >> ६.०० 6444.23 >> ६४४४.२३ 6.889 >> ६.८९

Pct

0 >> ०.००% .344455 >> ३४.४५% .3 >> ३०.००% 1 >> १००.००% 1.3 >> १३०.००%

This logic is applied to the following sections of the profiles:

Yuvee04 commented 5 years ago

we think wage and cost would be better if they are in integer. Even better would be if the generators would respond to respective uid for the field in the excel.

eoglethorpe commented 5 years ago

@Yuvee04 please check on the next update

Yuvee04 commented 5 years ago

Yes it is fine. Thank you.