ticket labels e ticket receipt
This commit is contained in:
@@ -37,6 +37,11 @@ class CompanySettingsCubit extends Cubit<CompanySettingsState> {
|
||||
String? zipCode,
|
||||
String? phone,
|
||||
String? email,
|
||||
String? ticketDisclaimer,
|
||||
LabelFormat? labelFormat,
|
||||
double? labelWidth,
|
||||
double? labelHeight,
|
||||
bool? isVertical,
|
||||
}) {
|
||||
if (state.company == null) return;
|
||||
|
||||
@@ -51,6 +56,11 @@ class CompanySettingsCubit extends Cubit<CompanySettingsState> {
|
||||
zipCode: zipCode ?? state.company!.zipCode,
|
||||
phone: phone ?? state.company!.phone,
|
||||
email: email ?? state.company!.email,
|
||||
ticketDisclaimer: ticketDisclaimer ?? state.company!.ticketDisclaimer,
|
||||
labelFormat: labelFormat ?? state.company!.labelFormat,
|
||||
labelWidth: labelWidth ?? state.company!.labelWidth,
|
||||
labelHeight: labelHeight ?? state.company!.labelHeight,
|
||||
isLabelVertical: isVertical ?? state.company!.isLabelVertical,
|
||||
);
|
||||
emit(state.copyWith(company: updated));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user