perubahan denomuretor on pos sale
This commit is contained in:
@@ -6,6 +6,7 @@ import 'package:image/image.dart' as img;
|
||||
import 'package:mobile_pos/Const/api_config.dart';
|
||||
import 'package:mobile_pos/generated/l10n.dart' as lang;
|
||||
import 'package:mobile_pos/thermal%20priting%20invoices/model/print_transaction_model.dart';
|
||||
import 'package:mobile_pos/constant.dart';
|
||||
import '../../thermer/thermer.dart' as thermer;
|
||||
|
||||
class DueThermalInvoiceTemplate {
|
||||
@@ -31,11 +32,6 @@ class DueThermalInvoiceTemplate {
|
||||
);
|
||||
}
|
||||
|
||||
String formatPointNumber(num number, {bool addComma = false}) {
|
||||
if (addComma) return NumberFormat("#,###.##", "en_US").format(number);
|
||||
return number.toStringAsFixed(2);
|
||||
}
|
||||
|
||||
// --- Main Generator ---
|
||||
|
||||
Future<List<int>> get template async {
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'package:mobile_pos/Screens/Products/add%20product/modle/create_product_m
|
||||
import 'package:mobile_pos/Screens/Purchase/Model/purchase_transaction_model.dart';
|
||||
import 'package:mobile_pos/generated/l10n.dart' as lang;
|
||||
import 'package:mobile_pos/thermal%20priting%20invoices/model/print_transaction_model.dart';
|
||||
|
||||
import 'package:mobile_pos/constant.dart';
|
||||
import '../../thermer/thermer.dart' as thermer;
|
||||
|
||||
class PurchaseThermalInvoiceTemplate {
|
||||
@@ -37,11 +37,6 @@ class PurchaseThermalInvoiceTemplate {
|
||||
);
|
||||
}
|
||||
|
||||
String formatPointNumber(num number, {bool addComma = false}) {
|
||||
if (addComma) return NumberFormat("#,###.##", "en_US").format(number);
|
||||
return number.toStringAsFixed(2);
|
||||
}
|
||||
|
||||
// --- Data Logic (Adapted from your provided code) ---
|
||||
|
||||
num _getProductPrice(num detailsId) {
|
||||
|
||||
@@ -8,6 +8,7 @@ import 'package:mobile_pos/Const/api_config.dart';
|
||||
import 'package:mobile_pos/generated/l10n.dart' as lang;
|
||||
import 'package:mobile_pos/model/business_info_model.dart';
|
||||
import 'package:mobile_pos/model/sale_transaction_model.dart';
|
||||
import 'package:mobile_pos/constant.dart';
|
||||
import '../../thermer/thermer.dart' as thermer;
|
||||
|
||||
class SaleThermalInvoiceTemplate {
|
||||
@@ -36,11 +37,6 @@ class SaleThermalInvoiceTemplate {
|
||||
);
|
||||
}
|
||||
|
||||
String formatPointNumber(num number, {bool addComma = false}) {
|
||||
if (addComma) return NumberFormat("#,###.##", "en_US").format(number);
|
||||
return number.toStringAsFixed(2);
|
||||
}
|
||||
|
||||
// --- Data Logic ---
|
||||
|
||||
String _getProductName(num detailsId) {
|
||||
|
||||
Reference in New Issue
Block a user