Cloning unchanged invoice from edit page shouldn’t trigger saver

This commit is contained in:
Hillel Coren 2022-09-29 21:01:38 +03:00
parent beca11b99f
commit dfa05db666
8 changed files with 8 additions and 8 deletions

View File

@ -99,7 +99,7 @@ class CreditEditVM extends AbstractInvoiceEditVM {
}
if (credit.isOld &&
credit.isChanged == false &&
credit.isChanged != true &&
action != null &&
action.isClientSide) {
handleEntityAction(credit, action);

View File

@ -153,7 +153,7 @@ class ExpenseEditVM extends AbstractExpenseEditVM {
final navigator = navigatorKey.currentState;
if (expense.isOld &&
expense.isChanged == false &&
expense.isChanged != true &&
action != null &&
action.isClientSide) {
handleEntityAction(expense, action);

View File

@ -152,7 +152,7 @@ class InvoiceEditVM extends AbstractInvoiceEditVM {
}
if (invoice.isOld &&
invoice.isChanged == false &&
invoice.isChanged != true &&
action != null &&
action.isClientSide) {
handleEntityAction(invoice, action);

View File

@ -98,7 +98,7 @@ class PurchaseOrderEditVM extends AbstractInvoiceEditVM {
return null;
}
if (purchaseOrder.isOld &&
purchaseOrder.isChanged == false &&
purchaseOrder.isChanged != true &&
action != null &&
action.isClientSide) {
handleEntityAction(purchaseOrder, action);

View File

@ -98,7 +98,7 @@ class QuoteEditVM extends AbstractInvoiceEditVM {
return null;
}
if (quote.isOld &&
quote.isChanged == false &&
quote.isChanged != true &&
action != null &&
action.isClientSide) {
handleEntityAction(quote, action);

View File

@ -132,7 +132,7 @@ class RecurringExpenseEditVM extends AbstractExpenseEditVM {
final recurringExpense = store.state.recurringExpenseUIState.editing;
final localization = AppLocalization.of(context);
if (recurringExpense.isOld &&
recurringExpense.isChanged == false &&
recurringExpense.isChanged != true &&
action != null &&
action.isClientSide) {
handleEntityAction(recurringExpense, action);

View File

@ -99,7 +99,7 @@ class RecurringInvoiceEditVM extends AbstractInvoiceEditVM {
return null;
}
if (recurringInvoice.isOld &&
recurringInvoice.isChanged == false &&
recurringInvoice.isChanged != true &&
action != null &&
action.isClientSide) {
handleEntityAction(recurringInvoice, action);

View File

@ -97,7 +97,7 @@ class TaskEditVM {
}
if (task.isOld &&
task.isChanged == false &&
task.isChanged != true &&
action != null &&
action.isClientSide) {
handleEntityAction(task, action);