E-invoicing

This commit is contained in:
Hillel Coren 2023-05-14 12:21:33 +03:00
parent 04d6d18830
commit 55e7ca2397
2 changed files with 10 additions and 0 deletions

View File

@ -124,6 +124,8 @@ abstract class CompanyEntity extends Object
convertExpenseCurrency: false, convertExpenseCurrency: false,
notifyVendorWhenPaid: false, notifyVendorWhenPaid: false,
calculateTaxes: false, calculateTaxes: false,
eInvoiceCertificate: '',
eInvoiceCertificatePassphrase: '',
taxData: TaxDataEntity(), taxData: TaxDataEntity(),
groups: BuiltList<GroupEntity>(), groups: BuiltList<GroupEntity>(),
taxRates: BuiltList<TaxRateEntity>(), taxRates: BuiltList<TaxRateEntity>(),
@ -760,6 +762,8 @@ abstract class CompanyEntity extends Object
..convertExpenseCurrency = false ..convertExpenseCurrency = false
..notifyVendorWhenPaid = false ..notifyVendorWhenPaid = false
..calculateTaxes = false ..calculateTaxes = false
..eInvoiceCertificate = ''
..eInvoiceCertificatePassphrase = ''
..taxData.replace(TaxDataEntity()) ..taxData.replace(TaxDataEntity())
..systemLogs.replace(BuiltList<SystemLogEntity>()) ..systemLogs.replace(BuiltList<SystemLogEntity>())
..subscriptions.replace(BuiltList<SubscriptionEntity>()) ..subscriptions.replace(BuiltList<SubscriptionEntity>())

View File

@ -18,6 +18,7 @@ mixin LocalizationsProvider on LocaleCodeAware {
static final Map<String, Map<String, String>> _localizedValues = { static final Map<String, Map<String, String>> _localizedValues = {
'en': { 'en': {
// STARTER: lang key - do not remove comment // STARTER: lang key - do not remove comment
'certificate_passphrase': 'Certificate Passphrase',
'rename': 'Rename', 'rename': 'Rename',
'renamed_document': 'Successfully renamed document', 'renamed_document': 'Successfully renamed document',
'e_invoice': 'E-Invoice', 'e_invoice': 'E-Invoice',
@ -102465,6 +102466,11 @@ mixin LocalizationsProvider on LocaleCodeAware {
_localizedValues[localeCode]['renamed_document'] ?? _localizedValues[localeCode]['renamed_document'] ??
_localizedValues['en']['renamed_document']; _localizedValues['en']['renamed_document'];
String get certificatePassphrase =>
_localizedValues[localeCode]['certificate_passphrase'] ??
_localizedValues['en']['certificate_passphrase'];
// STARTER: lang field - do not remove comment // STARTER: lang field - do not remove comment
String lookup(String key) { String lookup(String key) {