Add set_tax_id entity action

This commit is contained in:
Hillel Coren 2023-04-24 17:07:10 +03:00
parent 60ab68341f
commit 9c9045f824
4 changed files with 12 additions and 0 deletions

View File

@ -131,6 +131,7 @@ class EntityAction extends EnumClass {
static const EntityAction schedule = _$schedule;
static const EntityAction updatePrices = _$updatePrices;
static const EntityAction increasePrices = _$increasePrices;
static const EntityAction setTaxCategory = _$setTaxCategory;
@override
String toString() {

View File

@ -96,6 +96,7 @@ const EntityAction _$autoBill = const EntityAction._('autoBill');
const EntityAction _$schedule = const EntityAction._('schedule');
const EntityAction _$updatePrices = const EntityAction._('updatePrices');
const EntityAction _$increasePrices = const EntityAction._('increasePrices');
const EntityAction _$setTaxCategory = const EntityAction._('setTaxCategory');
EntityAction _$valueOf(String name) {
switch (name) {
@ -257,6 +258,8 @@ EntityAction _$valueOf(String name) {
return _$updatePrices;
case 'increasePrices':
return _$increasePrices;
case 'setTaxCategory':
return _$setTaxCategory;
default:
throw new ArgumentError(name);
}
@ -343,6 +346,7 @@ final BuiltSet<EntityAction> _$values =
_$schedule,
_$updatePrices,
_$increasePrices,
_$setTaxCategory,
]);
Serializer<EntityAction> _$entityActionSerializer =

View File

@ -18,6 +18,7 @@ mixin LocalizationsProvider on LocaleCodeAware {
static final Map<String, Map<String, String>> _localizedValues = {
'en': {
// STARTER: lang key - do not remove comment
'set_tax_category': 'Set Tax Category',
'payment_manual': 'Payment Manual',
'tax_category': 'Tax Category',
'physical_goods': 'Physical Goods',
@ -99358,6 +99359,10 @@ mixin LocalizationsProvider on LocaleCodeAware {
_localizedValues[localeCode]['payment_manual'] ??
_localizedValues['en']['payment_manual'];
String get setTaxCategory =>
_localizedValues[localeCode]['set_tax_category'] ??
_localizedValues['en']['set_tax_category'];
// STARTER: lang field - do not remove comment
String lookup(String key) {

View File

@ -121,6 +121,8 @@ IconData getEntityActionIcon(EntityAction entityAction) {
return MdiIcons.syncIcon;
case EntityAction.increasePrices:
return MdiIcons.arrowUpBoldBoxOutline;
case EntityAction.setTaxCategory:
return MdiIcons.calculator;
default:
return null;
}