Skip to content

Commit

Permalink
Feature PDF flow (#2)
Browse files Browse the repository at this point in the history
* feat(utils): add onCreatePdf

* fix(utils): fix download pdf

* feat(pdf-flow): prepare flow

* fix(preview): add onInit logic

* fix(pdf-flow): prepare recipient & store info

* fix(invoice): add drawer & update layout

* fix(isar): update savePurchaseItem

* feat(delete): add deletePurchaseItems

* feat(qty-control): add qty control

* feat(invoice): add items null check

* feat(pdf): add downloadPdf
  • Loading branch information
mirhasalh authored Feb 4, 2025
1 parent c19aac1 commit 3af9191
Show file tree
Hide file tree
Showing 22 changed files with 4,998 additions and 73 deletions.
Empty file added CHANGELOG.md
Empty file.
44 changes: 44 additions & 0 deletions lib/src/isar_collection/isar_collections.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import 'package:isar/isar.dart';

part 'isar_collections.g.dart';

@collection
class Store {
Id id = Isar.autoIncrement;
String? name;
String? email;
}

@collection
class Item {
Id id = Isar.autoIncrement;
String? sku;
String? name;
double? price;
double? discount;
bool? isPercentage;
}

@collection
class PurchaseItem {
Id id = Isar.autoIncrement;
final item = IsarLink<Item>();
int? qty;
}

@collection
class Invoice {
Id id = Isar.autoIncrement;
String? storeName;
String? storeEmail;
String? to;
final purchaseItems = IsarLinks<PurchaseItem>();
DateTime? createdAt;
}

@collection
class Recipient {
Id id = Isar.autoIncrement;
String? name;
String? address;
}
Loading

0 comments on commit 3af9191

Please sign in to comment.