Added 'accept PO number' option
This commit is contained in:
parent
e3290b7c13
commit
e2322e9c26
|
|
@ -957,6 +957,10 @@ abstract class SettingsEntity
|
||||||
@BuiltValueField(wireName: 'custom_sending_email')
|
@BuiltValueField(wireName: 'custom_sending_email')
|
||||||
String get customSendingEmail;
|
String get customSendingEmail;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'accept_client_input_quote_approval')
|
||||||
|
bool get acceptPurchaseOrderNumber;
|
||||||
|
|
||||||
bool get hasAddress => address1 != null && address1.isNotEmpty;
|
bool get hasAddress => address1 != null && address1.isNotEmpty;
|
||||||
|
|
||||||
bool get hasLogo => companyLogo != null && companyLogo.isNotEmpty;
|
bool get hasLogo => companyLogo != null && companyLogo.isNotEmpty;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -406,6 +406,7 @@ class _ClientPortalState extends State<ClientPortal>
|
||||||
onChanged: (value) => viewModel.onSettingsChanged(
|
onChanged: (value) => viewModel.onSettingsChanged(
|
||||||
settings.rebuild(
|
settings.rebuild(
|
||||||
(b) => b..enableClientPortalUploads = value))),
|
(b) => b..enableClientPortalUploads = value))),
|
||||||
|
if (company.isModuleEnabled(EntityType.vendor))
|
||||||
BoolDropdownButton(
|
BoolDropdownButton(
|
||||||
label: localization.vendorDocumentUpload,
|
label: localization.vendorDocumentUpload,
|
||||||
helpLabel: localization.vendorDocumentUploadHelp,
|
helpLabel: localization.vendorDocumentUploadHelp,
|
||||||
|
|
@ -414,6 +415,16 @@ class _ClientPortalState extends State<ClientPortal>
|
||||||
onChanged: (value) => viewModel.onSettingsChanged(
|
onChanged: (value) => viewModel.onSettingsChanged(
|
||||||
settings.rebuild(
|
settings.rebuild(
|
||||||
(b) => b..enableVendorPortalUploads = value))),
|
(b) => b..enableVendorPortalUploads = value))),
|
||||||
|
if (company.isModuleEnabled(EntityType.purchaseOrder) &&
|
||||||
|
company.isModuleEnabled(EntityType.quote))
|
||||||
|
BoolDropdownButton(
|
||||||
|
label: localization.acceptPurchaseOrderNumber,
|
||||||
|
helpLabel: localization.acceptPurchaseOrderNumberHelp,
|
||||||
|
value: settings.acceptPurchaseOrderNumber,
|
||||||
|
iconData: Icons.numbers,
|
||||||
|
onChanged: (value) => viewModel.onSettingsChanged(
|
||||||
|
settings.rebuild(
|
||||||
|
(b) => b..acceptPurchaseOrderNumber = value))),
|
||||||
if (!state.settingsUIState.isFiltered)
|
if (!state.settingsUIState.isFiltered)
|
||||||
BoolDropdownButton(
|
BoolDropdownButton(
|
||||||
label: localization.storefront,
|
label: localization.storefront,
|
||||||
|
|
|
||||||
|
|
@ -548,6 +548,7 @@ class SettingsSearch extends StatelessWidget {
|
||||||
'domain',
|
'domain',
|
||||||
'client_document_upload',
|
'client_document_upload',
|
||||||
'vendor_document_upload#2022-07-06',
|
'vendor_document_upload#2022-07-06',
|
||||||
|
'accept_purchase_order_number#2023-02-02',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'client_registration',
|
'client_registration',
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,9 @@ 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
|
||||||
|
'accept_purchase_order_number': 'Accept Purchase Order Number',
|
||||||
|
'accept_purchase_order_number_help':
|
||||||
|
'Enable clients to provide a PO number when approving a quote',
|
||||||
'from_email': 'From Email',
|
'from_email': 'From Email',
|
||||||
'show_preview': 'Show Preview',
|
'show_preview': 'Show Preview',
|
||||||
'show_paid_stamp': 'Show Paid Stamp',
|
'show_paid_stamp': 'Show Paid Stamp',
|
||||||
|
|
@ -94386,6 +94389,14 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
||||||
_localizedValues[localeCode]['from_email'] ??
|
_localizedValues[localeCode]['from_email'] ??
|
||||||
_localizedValues['en']['from_email'];
|
_localizedValues['en']['from_email'];
|
||||||
|
|
||||||
|
String get acceptPurchaseOrderNumber =>
|
||||||
|
_localizedValues[localeCode]['accept_purchase_order_number'] ??
|
||||||
|
_localizedValues['en']['accept_purchase_order_number'];
|
||||||
|
|
||||||
|
String get acceptPurchaseOrderNumberHelp =>
|
||||||
|
_localizedValues[localeCode]['accept_purchase_order_number_help'] ??
|
||||||
|
_localizedValues['en']['accept_purchase_order_number_help'];
|
||||||
|
|
||||||
// STARTER: lang field - do not remove comment
|
// STARTER: lang field - do not remove comment
|
||||||
|
|
||||||
String lookup(String key) {
|
String lookup(String key) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue