aggiunta scelta business o privato
This commit is contained in:
@@ -68,6 +68,7 @@ class CustomerFormCubit extends Cubit<CustomerFormState> {
|
||||
String? email,
|
||||
String? note,
|
||||
bool? doNotDisturb,
|
||||
bool? isBusiness,
|
||||
}) {
|
||||
emit(
|
||||
state.copyWith(
|
||||
@@ -77,6 +78,7 @@ class CustomerFormCubit extends Cubit<CustomerFormState> {
|
||||
email: email ?? state.customer.email,
|
||||
note: note ?? state.customer.note,
|
||||
doNotDisturb: doNotDisturb ?? state.customer.doNotDisturb,
|
||||
isBusiness: isBusiness ?? state.customer.isBusiness,
|
||||
),
|
||||
),
|
||||
);
|
||||
@@ -108,6 +110,7 @@ class CustomerFormCubit extends Cubit<CustomerFormState> {
|
||||
required String name,
|
||||
String? phone,
|
||||
String? email,
|
||||
required bool isBusiness,
|
||||
}) async {
|
||||
final newCustomer = CustomerModel(
|
||||
name: name,
|
||||
@@ -115,6 +118,7 @@ class CustomerFormCubit extends Cubit<CustomerFormState> {
|
||||
email: email ?? '',
|
||||
companyId: _sessionCubit.state.company!.id!,
|
||||
note: '',
|
||||
isBusiness: isBusiness,
|
||||
);
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user