added float point in purchase confirmation
This commit is contained in:
@@ -137,7 +137,7 @@ public abstract class AbstractScannerActivity extends AppCompatActivity {
|
|||||||
EditText manualInput = (EditText) findViewById(R.id.manual_input);
|
EditText manualInput = (EditText) findViewById(R.id.manual_input);
|
||||||
|
|
||||||
// для удобства, чтоб не вводить постоянно руками при разработке
|
// для удобства, чтоб не вводить постоянно руками при разработке
|
||||||
// manualInput.setText("4620011139016317023320337");
|
//manualInput.setText("4620011139016317023320337");
|
||||||
|
|
||||||
manualInput.setOnEditorActionListener(new TextView.OnEditorActionListener() {
|
manualInput.setOnEditorActionListener(new TextView.OnEditorActionListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -242,6 +242,7 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
|||||||
print(exception);
|
print(exception);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
print(sumTotal.toStringAsFixed(2));
|
||||||
return sumTotal.toStringAsFixed(2);
|
return sumTotal.toStringAsFixed(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ class StringsLocalization {
|
|||||||
|
|
||||||
static String confirmPurchase(String val, int code) {
|
static String confirmPurchase(String val, int code) {
|
||||||
String trimmedVal =val.substring(0, val.length - 3);
|
String trimmedVal =val.substring(0, val.length - 3);
|
||||||
return sprintf(Intl.message('confirm_purchase', name: 'confirm_purchase', locale: Intl.defaultLocale), [trimmedVal, declineCurrency(int.parse(trimmedVal), code)]);
|
return sprintf(Intl.message('confirm_purchase', name: 'confirm_purchase', locale: Intl.defaultLocale), [val, declineCurrency(int.parse(trimmedVal), code)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
static String purchaseCompleted(String val, int code) {
|
static String purchaseCompleted(String val, int code) {
|
||||||
|
|||||||
Reference in New Issue
Block a user