Set client/group default payment type id
This commit is contained in:
parent
601e765172
commit
658177399d
|
|
@ -85,10 +85,7 @@ abstract class PaymentEntity extends Object
|
|||
amount: 0.0,
|
||||
transactionReference: '',
|
||||
date: convertDateTimeToSqlDate(),
|
||||
typeId: state?.company != null &&
|
||||
(state.company.settings.defaultPaymentTypeId ?? '').isNotEmpty
|
||||
? state.company.settings.defaultPaymentTypeId
|
||||
: '',
|
||||
typeId: settings.defaultPaymentTypeId ?? '',
|
||||
clientId: client?.id ?? '',
|
||||
privateNotes: '',
|
||||
exchangeRate: 1,
|
||||
|
|
|
|||
|
|
@ -88,6 +88,9 @@ abstract class SettingsEntity
|
|||
clientSettings?.clientManualPaymentNotification ??
|
||||
groupSettings?.clientManualPaymentNotification ??
|
||||
companySettings?.clientManualPaymentNotification,
|
||||
defaultPaymentTypeId: clientSettings?.defaultPaymentTypeId ??
|
||||
groupSettings?.defaultPaymentTypeId ??
|
||||
companySettings?.defaultPaymentTypeId,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue