|
|
|
|
@ -409,19 +409,6 @@ ElDialog {
|
|
|
|
|
ButtonContainer { |
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
|
|
FlatButton { |
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
Layout.preferredWidth: 1 |
|
|
|
|
text: qsTr('Pay') |
|
|
|
|
icon.source: '../../icons/confirmed.png' |
|
|
|
|
enabled: invoice.invoiceType != Invoice.Invalid && invoice.canPay && !amountContainer.editmode |
|
|
|
|
onClicked: { |
|
|
|
|
if (invoice_key == '') // save invoice if not retrieved from key |
|
|
|
|
invoice.save_invoice() |
|
|
|
|
dialog.close() |
|
|
|
|
doPay() // only signal here |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
FlatButton { |
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
Layout.preferredWidth: 1 |
|
|
|
|
@ -433,7 +420,6 @@ ElDialog {
|
|
|
|
|
dialog.close() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
FlatButton { |
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
Layout.preferredWidth: 1 |
|
|
|
|
@ -447,6 +433,19 @@ ElDialog {
|
|
|
|
|
dialog.close() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
FlatButton { |
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
Layout.preferredWidth: 1 |
|
|
|
|
text: qsTr('Pay') |
|
|
|
|
icon.source: '../../icons/confirmed.png' |
|
|
|
|
enabled: invoice.invoiceType != Invoice.Invalid && invoice.canPay && !amountContainer.editmode |
|
|
|
|
onClicked: { |
|
|
|
|
if (invoice_key == '') // save invoice if not retrieved from key |
|
|
|
|
invoice.save_invoice() |
|
|
|
|
dialog.close() |
|
|
|
|
doPay() // only signal here |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|