2022-10-05 11:07:40 +02:00
|
|
|
import QtQuick 2.12
|
2022-04-22 12:16:57 +02:00
|
|
|
import QtQuick.Layouts 1.0
|
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
|
import QtQuick.Controls.Material 2.0
|
|
|
|
|
|
|
|
|
|
import org.electrum 1.0
|
|
|
|
|
|
|
|
|
|
import "controls"
|
|
|
|
|
|
2022-07-26 16:20:17 +02:00
|
|
|
ElDialog {
|
2022-04-22 12:16:57 +02:00
|
|
|
id: dialog
|
|
|
|
|
|
|
|
|
|
property Invoice invoice
|
2022-04-25 15:55:34 +02:00
|
|
|
property string invoice_key
|
2022-04-22 12:16:57 +02:00
|
|
|
|
2022-04-26 13:18:34 +02:00
|
|
|
signal doPay
|
2022-10-26 11:12:58 +02:00
|
|
|
signal invoiceAmountChanged
|
2022-04-26 13:18:34 +02:00
|
|
|
|
2022-04-22 12:16:57 +02:00
|
|
|
title: qsTr('Invoice')
|
2023-01-02 16:58:37 +01:00
|
|
|
iconSource: Qt.resolvedUrl('../../icons/tab_send.png')
|
2022-04-22 12:16:57 +02:00
|
|
|
|
2022-10-19 14:15:24 +02:00
|
|
|
padding: 0
|
|
|
|
|
|
2022-04-22 12:16:57 +02:00
|
|
|
modal: true
|
|
|
|
|
parent: Overlay.overlay
|
|
|
|
|
Overlay.modal: Rectangle {
|
|
|
|
|
color: "#aa000000"
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-20 17:18:46 +02:00
|
|
|
property bool _canMax: invoice.invoiceType == Invoice.OnchainInvoice
|
|
|
|
|
|
2022-10-19 14:15:24 +02:00
|
|
|
ColumnLayout {
|
2022-12-28 16:07:30 +01:00
|
|
|
anchors.fill: parent
|
2022-10-19 14:15:24 +02:00
|
|
|
spacing: 0
|
2022-10-05 18:00:51 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
Flickable {
|
|
|
|
|
Layout.preferredWidth: parent.width
|
|
|
|
|
Layout.fillHeight: true
|
2022-10-05 18:00:51 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
leftMargin: constants.paddingLarge
|
|
|
|
|
rightMargin: constants.paddingLarge
|
2022-10-05 18:00:51 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
contentHeight: rootLayout.height
|
|
|
|
|
clip:true
|
|
|
|
|
interactive: height < contentHeight
|
|
|
|
|
|
|
|
|
|
GridLayout {
|
|
|
|
|
id: rootLayout
|
|
|
|
|
width: parent.width
|
|
|
|
|
|
|
|
|
|
columns: 2
|
2022-10-05 18:00:51 +02:00
|
|
|
|
2023-02-10 17:24:14 +01:00
|
|
|
InfoTextArea {
|
2023-02-09 01:13:05 +01:00
|
|
|
Layout.columnSpan: 2
|
|
|
|
|
Layout.fillWidth: true
|
2023-02-10 17:24:14 +01:00
|
|
|
Layout.bottomMargin: constants.paddingLarge
|
2023-02-09 01:13:05 +01:00
|
|
|
visible: invoice.userinfo
|
2023-02-10 17:24:14 +01:00
|
|
|
text: invoice.userinfo
|
|
|
|
|
iconStyle: InfoTextArea.IconStyle.Warn
|
2023-02-09 01:13:05 +01:00
|
|
|
}
|
|
|
|
|
|
2022-10-19 14:15:24 +02:00
|
|
|
Label {
|
2022-12-28 16:07:30 +01:00
|
|
|
text: qsTr('Type')
|
|
|
|
|
color: Material.accentColor
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
RowLayout {
|
2022-10-19 14:15:24 +02:00
|
|
|
Layout.fillWidth: true
|
2022-12-28 16:07:30 +01:00
|
|
|
Image {
|
|
|
|
|
Layout.preferredWidth: constants.iconSizeSmall
|
|
|
|
|
Layout.preferredHeight: constants.iconSizeSmall
|
|
|
|
|
source: invoice.invoiceType == Invoice.LightningInvoice
|
|
|
|
|
? "../../icons/lightning.png"
|
|
|
|
|
: "../../icons/bitcoin.png"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Label {
|
|
|
|
|
text: invoice.invoiceType == Invoice.OnchainInvoice
|
|
|
|
|
? qsTr('On chain')
|
|
|
|
|
: invoice.invoiceType == Invoice.LightningInvoice
|
|
|
|
|
? qsTr('Lightning')
|
|
|
|
|
: ''
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
}
|
2022-10-19 14:15:24 +02:00
|
|
|
}
|
2022-10-05 18:00:51 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
Label {
|
|
|
|
|
text: qsTr('Status')
|
|
|
|
|
color: Material.accentColor
|
|
|
|
|
}
|
2022-10-05 18:00:51 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
Label {
|
|
|
|
|
text: invoice.status_str
|
|
|
|
|
}
|
2022-10-05 18:00:51 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
Label {
|
|
|
|
|
visible: invoice.invoiceType == Invoice.OnchainInvoice
|
|
|
|
|
Layout.columnSpan: 2
|
|
|
|
|
text: qsTr('Address')
|
|
|
|
|
color: Material.accentColor
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TextHighlightPane {
|
|
|
|
|
Layout.columnSpan: 2
|
|
|
|
|
Layout.fillWidth: true
|
2022-10-05 18:00:51 +02:00
|
|
|
|
2023-02-09 01:13:05 +01:00
|
|
|
visible: invoice.invoiceType == Invoice.OnchainInvoice
|
2022-12-28 16:07:30 +01:00
|
|
|
leftPadding: constants.paddingMedium
|
2022-10-05 18:00:51 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
Label {
|
|
|
|
|
width: parent.width
|
|
|
|
|
text: invoice.address
|
|
|
|
|
font.family: FixedFont
|
|
|
|
|
wrapMode: Text.Wrap
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-10-05 18:00:51 +02:00
|
|
|
|
2022-10-19 14:15:24 +02:00
|
|
|
Label {
|
2022-12-28 16:07:30 +01:00
|
|
|
visible: invoice.invoiceType == Invoice.LightningInvoice
|
|
|
|
|
text: qsTr('Remote Pubkey')
|
|
|
|
|
color: Material.accentColor
|
2022-10-19 14:15:24 +02:00
|
|
|
}
|
2022-10-05 18:00:51 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
TextHighlightPane {
|
|
|
|
|
Layout.columnSpan: 2
|
|
|
|
|
Layout.fillWidth: true
|
2022-10-05 18:00:51 +02:00
|
|
|
|
2023-02-09 01:13:05 +01:00
|
|
|
visible: invoice.invoiceType == Invoice.LightningInvoice
|
2022-12-28 16:07:30 +01:00
|
|
|
leftPadding: constants.paddingMedium
|
2022-10-05 18:00:51 +02:00
|
|
|
|
2023-02-09 01:13:05 +01:00
|
|
|
RowLayout {
|
2022-12-28 16:07:30 +01:00
|
|
|
width: parent.width
|
2023-02-09 01:13:05 +01:00
|
|
|
Label {
|
|
|
|
|
id: pubkeyLabel
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
text: 'pubkey' in invoice.lnprops ? invoice.lnprops.pubkey : ''
|
|
|
|
|
font.family: FixedFont
|
|
|
|
|
wrapMode: Text.Wrap
|
|
|
|
|
}
|
|
|
|
|
ToolButton {
|
|
|
|
|
icon.source: '../../icons/share.png'
|
|
|
|
|
icon.color: 'transparent'
|
|
|
|
|
enabled: pubkeyLabel.text
|
|
|
|
|
onClicked: {
|
|
|
|
|
var dialog = app.genericShareDialog.createObject(app,
|
|
|
|
|
{ title: qsTr('Node public key'), text: invoice.lnprops.pubkey }
|
|
|
|
|
)
|
|
|
|
|
dialog.open()
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-12-28 16:07:30 +01:00
|
|
|
}
|
|
|
|
|
}
|
2022-10-05 18:00:51 +02:00
|
|
|
|
2022-10-19 14:15:24 +02:00
|
|
|
Label {
|
2022-12-28 16:07:30 +01:00
|
|
|
visible: invoice.invoiceType == Invoice.LightningInvoice
|
|
|
|
|
text: qsTr('Payment hash')
|
|
|
|
|
color: Material.accentColor
|
2022-10-19 14:15:24 +02:00
|
|
|
}
|
2022-10-05 18:00:51 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
TextHighlightPane {
|
|
|
|
|
Layout.columnSpan: 2
|
|
|
|
|
Layout.fillWidth: true
|
2022-10-26 11:12:58 +02:00
|
|
|
|
2023-02-09 01:13:05 +01:00
|
|
|
visible: invoice.invoiceType == Invoice.LightningInvoice
|
2022-12-28 16:07:30 +01:00
|
|
|
leftPadding: constants.paddingMedium
|
2022-10-26 11:12:58 +02:00
|
|
|
|
2023-02-09 01:13:05 +01:00
|
|
|
RowLayout {
|
2022-12-28 16:07:30 +01:00
|
|
|
width: parent.width
|
2023-02-09 01:13:05 +01:00
|
|
|
Label {
|
|
|
|
|
id: paymenthashLabel
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
text: 'payment_hash' in invoice.lnprops ? invoice.lnprops.payment_hash : ''
|
|
|
|
|
font.family: FixedFont
|
|
|
|
|
wrapMode: Text.Wrap
|
|
|
|
|
}
|
|
|
|
|
ToolButton {
|
|
|
|
|
icon.source: '../../icons/share.png'
|
|
|
|
|
icon.color: 'transparent'
|
|
|
|
|
enabled: paymenthashLabel.text
|
|
|
|
|
onClicked: {
|
|
|
|
|
var dialog = app.genericShareDialog.createObject(app,
|
|
|
|
|
{ title: qsTr('Payment hash'), text: invoice.lnprops.payment_hash }
|
|
|
|
|
)
|
|
|
|
|
dialog.open()
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-12-28 16:07:30 +01:00
|
|
|
}
|
|
|
|
|
}
|
2022-10-26 11:12:58 +02:00
|
|
|
|
|
|
|
|
Label {
|
2022-12-28 16:07:30 +01:00
|
|
|
text: qsTr('Description')
|
|
|
|
|
visible: invoice.message
|
|
|
|
|
Layout.columnSpan: 2
|
|
|
|
|
color: Material.accentColor
|
2022-10-26 11:12:58 +02:00
|
|
|
}
|
|
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
TextHighlightPane {
|
|
|
|
|
Layout.columnSpan: 2
|
|
|
|
|
Layout.fillWidth: true
|
2022-09-27 15:09:06 +02:00
|
|
|
|
2023-02-09 01:13:05 +01:00
|
|
|
visible: invoice.message
|
2022-12-28 16:07:30 +01:00
|
|
|
leftPadding: constants.paddingMedium
|
2022-09-27 15:09:06 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
Label {
|
|
|
|
|
text: invoice.message
|
|
|
|
|
width: parent.width
|
|
|
|
|
font.pixelSize: constants.fontSizeXLarge
|
|
|
|
|
wrapMode: Text.Wrap
|
|
|
|
|
elide: Text.ElideRight
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-09-27 15:09:06 +02:00
|
|
|
|
2022-10-19 14:15:24 +02:00
|
|
|
Label {
|
2022-12-28 16:07:30 +01:00
|
|
|
text: qsTr('Amount to send')
|
|
|
|
|
color: Material.accentColor
|
|
|
|
|
Layout.columnSpan: 2
|
2022-10-19 14:15:24 +02:00
|
|
|
}
|
2022-09-27 15:09:06 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
TextHighlightPane {
|
|
|
|
|
id: amountContainer
|
2022-09-27 15:09:06 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
Layout.columnSpan: 2
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
2022-09-27 15:09:06 +02:00
|
|
|
|
2023-02-09 01:13:05 +01:00
|
|
|
leftPadding: constants.paddingXLarge
|
2022-10-19 14:15:24 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
property bool editmode: false
|
2022-10-19 14:15:24 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
RowLayout {
|
|
|
|
|
id: amountLayout
|
|
|
|
|
width: parent.width
|
2022-10-19 14:15:24 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
GridLayout {
|
|
|
|
|
visible: !amountContainer.editmode
|
|
|
|
|
columns: 2
|
2022-10-20 17:18:46 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
Label {
|
|
|
|
|
visible: invoice.amount.isMax
|
|
|
|
|
Layout.columnSpan: 2
|
|
|
|
|
font.pixelSize: constants.fontSizeXLarge
|
|
|
|
|
font.bold: true
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
text: qsTr('All on-chain funds')
|
|
|
|
|
}
|
2022-10-19 14:15:24 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
Label {
|
|
|
|
|
visible: !invoice.amount.isMax
|
|
|
|
|
font.pixelSize: constants.fontSizeXLarge
|
|
|
|
|
font.family: FixedFont
|
|
|
|
|
font.bold: true
|
|
|
|
|
text: Config.formatSats(invoice.amount, false)
|
|
|
|
|
}
|
2022-10-19 14:15:24 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
Label {
|
|
|
|
|
visible: !invoice.amount.isMax
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
text: Config.baseUnit
|
|
|
|
|
color: Material.accentColor
|
|
|
|
|
font.pixelSize: constants.fontSizeXLarge
|
|
|
|
|
}
|
2022-10-19 14:15:24 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
Label {
|
|
|
|
|
id: fiatValue
|
|
|
|
|
visible: Daemon.fx.enabled && !invoice.amount.isMax
|
|
|
|
|
text: Daemon.fx.fiatValue(invoice.amount, false)
|
|
|
|
|
font.pixelSize: constants.fontSizeMedium
|
|
|
|
|
color: constants.mutedForeground
|
|
|
|
|
}
|
2022-09-27 15:09:06 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
Label {
|
|
|
|
|
visible: Daemon.fx.enabled && !invoice.amount.isMax
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
text: Daemon.fx.fiatCurrency
|
|
|
|
|
font.pixelSize: constants.fontSizeMedium
|
|
|
|
|
color: constants.mutedForeground
|
|
|
|
|
}
|
2022-09-27 15:09:06 +02:00
|
|
|
|
2022-10-19 14:15:24 +02:00
|
|
|
}
|
|
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
ToolButton {
|
2023-01-09 17:44:07 +01:00
|
|
|
visible: !amountContainer.editmode && invoice.canPay
|
2022-12-28 16:07:30 +01:00
|
|
|
icon.source: '../../icons/pen.png'
|
|
|
|
|
icon.color: 'transparent'
|
|
|
|
|
onClicked: {
|
|
|
|
|
amountBtc.text = invoice.amount.satsInt == 0 ? '' : Config.formatSats(invoice.amount)
|
|
|
|
|
amountMax.checked = invoice.amount.isMax
|
|
|
|
|
amountContainer.editmode = true
|
|
|
|
|
amountBtc.focus = true
|
|
|
|
|
}
|
2022-10-20 17:18:46 +02:00
|
|
|
}
|
2022-12-28 16:07:30 +01:00
|
|
|
GridLayout {
|
|
|
|
|
visible: amountContainer.editmode
|
2022-10-19 14:15:24 +02:00
|
|
|
Layout.fillWidth: true
|
2022-12-28 16:07:30 +01:00
|
|
|
columns: 3
|
|
|
|
|
BtcField {
|
|
|
|
|
id: amountBtc
|
|
|
|
|
fiatfield: amountFiat
|
|
|
|
|
enabled: !amountMax.checked
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Label {
|
|
|
|
|
Layout.fillWidth: amountMax.visible ? false : true
|
|
|
|
|
Layout.columnSpan: amountMax.visible ? 1 : 2
|
2023-02-09 12:42:09 +01:00
|
|
|
|
|
|
|
|
text: Config.baseUnit
|
|
|
|
|
color: Material.accentColor
|
2022-12-28 16:07:30 +01:00
|
|
|
}
|
|
|
|
|
Switch {
|
|
|
|
|
id: amountMax
|
2023-02-09 12:42:09 +01:00
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
text: qsTr('Max')
|
|
|
|
|
visible: _canMax
|
2023-02-09 12:42:09 +01:00
|
|
|
checked: false
|
2022-12-28 16:07:30 +01:00
|
|
|
onCheckedChanged: {
|
2023-02-09 12:42:09 +01:00
|
|
|
if (activeFocus)
|
2022-12-28 16:07:30 +01:00
|
|
|
invoice.amount.isMax = checked
|
2022-10-20 17:18:46 +02:00
|
|
|
}
|
|
|
|
|
}
|
2022-10-19 14:15:24 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
FiatField {
|
|
|
|
|
id: amountFiat
|
|
|
|
|
btcfield: amountBtc
|
|
|
|
|
visible: Daemon.fx.enabled && !amountMax.checked
|
|
|
|
|
enabled: !amountMax.checked
|
|
|
|
|
}
|
2022-10-19 14:15:24 +02:00
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
Label {
|
|
|
|
|
Layout.columnSpan: 2
|
|
|
|
|
visible: Daemon.fx.enabled && !amountMax.checked
|
|
|
|
|
text: Daemon.fx.fiatCurrency
|
|
|
|
|
color: Material.accentColor
|
|
|
|
|
}
|
2022-10-19 14:15:24 +02:00
|
|
|
}
|
2022-12-28 16:07:30 +01:00
|
|
|
ToolButton {
|
|
|
|
|
visible: amountContainer.editmode
|
|
|
|
|
Layout.fillWidth: false
|
|
|
|
|
icon.source: '../../icons/confirmed.png'
|
|
|
|
|
icon.color: 'transparent'
|
|
|
|
|
onClicked: {
|
|
|
|
|
amountContainer.editmode = false
|
|
|
|
|
invoice.amount = amountMax.checked ? MAX : Config.unitsToSats(amountBtc.text)
|
|
|
|
|
invoiceAmountChanged()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
ToolButton {
|
|
|
|
|
visible: amountContainer.editmode
|
|
|
|
|
Layout.fillWidth: false
|
|
|
|
|
icon.source: '../../icons/closebutton.png'
|
|
|
|
|
icon.color: 'transparent'
|
|
|
|
|
onClicked: amountContainer.editmode = false
|
2022-10-19 14:15:24 +02:00
|
|
|
}
|
2022-09-27 15:09:06 +02:00
|
|
|
}
|
|
|
|
|
|
2022-12-28 16:07:30 +01:00
|
|
|
}
|
2022-09-27 15:09:06 +02:00
|
|
|
|
2022-10-19 14:15:24 +02:00
|
|
|
}
|
2022-06-29 00:14:18 +02:00
|
|
|
}
|
|
|
|
|
|
2023-02-03 13:33:17 +01:00
|
|
|
ButtonContainer {
|
2022-10-19 14:15:24 +02:00
|
|
|
Layout.fillWidth: true
|
2023-02-03 13:33:17 +01:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|
2022-10-19 14:15:24 +02:00
|
|
|
}
|
2023-02-03 13:33:17 +01:00
|
|
|
FlatButton {
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.preferredWidth: 1
|
|
|
|
|
text: qsTr('Delete')
|
|
|
|
|
icon.source: '../../icons/delete.png'
|
|
|
|
|
visible: invoice_key != ''
|
|
|
|
|
onClicked: {
|
|
|
|
|
invoice.wallet.delete_invoice(invoice_key)
|
|
|
|
|
dialog.close()
|
|
|
|
|
}
|
2022-10-04 16:33:22 +02:00
|
|
|
}
|
|
|
|
|
|
2023-02-03 13:33:17 +01:00
|
|
|
FlatButton {
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.preferredWidth: 1
|
|
|
|
|
text: qsTr('Save')
|
|
|
|
|
icon.source: '../../icons/save.png'
|
|
|
|
|
visible: invoice_key == ''
|
|
|
|
|
enabled: invoice.canSave
|
|
|
|
|
onClicked: {
|
|
|
|
|
app.stack.push(Qt.resolvedUrl('Invoices.qml'))
|
|
|
|
|
invoice.save_invoice()
|
|
|
|
|
dialog.close()
|
|
|
|
|
}
|
2022-04-22 12:16:57 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-25 15:55:34 +02:00
|
|
|
Component.onCompleted: {
|
|
|
|
|
if (invoice_key != '') {
|
|
|
|
|
invoice.initFromKey(invoice_key)
|
|
|
|
|
}
|
2023-02-09 12:42:09 +01:00
|
|
|
if (invoice.amount.isEmpty) {
|
2022-09-27 17:10:05 +02:00
|
|
|
amountContainer.editmode = true
|
2023-02-09 12:42:09 +01:00
|
|
|
} else if (invoice.amount.isMax) {
|
|
|
|
|
amountMax.checked = true
|
|
|
|
|
}
|
2022-04-25 15:55:34 +02:00
|
|
|
}
|
2022-04-22 12:16:57 +02:00
|
|
|
}
|