Cloning unchanged invoice from edit page shouldn’t trigger saver
This commit is contained in:
parent
beca11b99f
commit
dfa05db666
|
|
@ -99,7 +99,7 @@ class CreditEditVM extends AbstractInvoiceEditVM {
|
|||
}
|
||||
|
||||
if (credit.isOld &&
|
||||
credit.isChanged == false &&
|
||||
credit.isChanged != true &&
|
||||
action != null &&
|
||||
action.isClientSide) {
|
||||
handleEntityAction(credit, action);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ class InvoiceEditVM extends AbstractInvoiceEditVM {
|
|||
}
|
||||
|
||||
if (invoice.isOld &&
|
||||
invoice.isChanged == false &&
|
||||
invoice.isChanged != true &&
|
||||
action != null &&
|
||||
action.isClientSide) {
|
||||
handleEntityAction(invoice, action);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ class TaskEditVM {
|
|||
}
|
||||
|
||||
if (task.isOld &&
|
||||
task.isChanged == false &&
|
||||
task.isChanged != true &&
|
||||
action != null &&
|
||||
action.isClientSide) {
|
||||
handleEntityAction(task, action);
|
||||
|
|
|
|||
Loading…
Reference in New Issue