-
-
-
- SELECT invoice_id, serial_num, issued, amount
- FROM invoice_view
- ORDER BY issued DESC
- LIMIT 100
-
-
-
-
-
-
+
diff --git a/forms/ecomerce/orders/locale/ca.json b/forms/ecomerce/orders/locale/ca.json
index 30bdcaa2..27e5ec66 100755
--- a/forms/ecomerce/orders/locale/ca.json
+++ b/forms/ecomerce/orders/locale/ca.json
@@ -30,10 +30,6 @@
,"Pending": "Pendent"
,"PayOrder": "Pagar encàrrec"
- ,"AmountToPay:": "Quantitat a pagar (€):"
- ,"AmountError": "La quantitat ha de ser un nombre positiu i inferior o igual a l'import pendent"
- ,"PayError": "Error al realitzar el pagament"
-
,"An error has been in the payment": "Sembla que hi ha hagut un error en el pagament"
,"Retry": "Reintenta"
,"Accept": "Acceptar"
diff --git a/forms/ecomerce/orders/locale/en.json b/forms/ecomerce/orders/locale/en.json
index 29c9e19c..473884b9 100755
--- a/forms/ecomerce/orders/locale/en.json
+++ b/forms/ecomerce/orders/locale/en.json
@@ -29,10 +29,6 @@
,"TotalWithVAT": "Total with VAT"
,"Pending": "Pending"
,"PayOrder": "Pay order"
-
- ,"AmountToPay:": "Amount to pay (€):"
- ,"AmountError": "The amount must be a positive number less than or equal to the outstanding amount"
- ,"PayError": "Failed to make the payment"
,"An error has been in the payment": "It seems that there has been an error in the payment"
,"Retry": "Retry"
diff --git a/forms/ecomerce/orders/locale/es.json b/forms/ecomerce/orders/locale/es.json
index 9f1010c5..35942d97 100755
--- a/forms/ecomerce/orders/locale/es.json
+++ b/forms/ecomerce/orders/locale/es.json
@@ -29,10 +29,6 @@
,"TotalWithVAT": "Total con IVA"
,"Pending": "Pendiente"
,"PayOrder": "Pagar pedido"
-
- ,"AmountToPay:": "Cantidad a pagar (€):"
- ,"AmountError": "La cantidad debe ser un número positivo e inferior o igual al importe pendiente"
- ,"PayError": "Error al realizar el pago"
,"An error has been in the payment": "Parece que ha habido un error en el pago"
,"Retry": "Reintentar"
diff --git a/forms/ecomerce/orders/locale/fr.json b/forms/ecomerce/orders/locale/fr.json
index 7640cf58..2f8c4df7 100755
--- a/forms/ecomerce/orders/locale/fr.json
+++ b/forms/ecomerce/orders/locale/fr.json
@@ -30,10 +30,6 @@
,"Pending": "En attente"
,"PayOrder": "Payer la commande"
- ,"AmountToPay:": "Montant à payer (€):"
- ,"AmountError": "La quantité doit être un neméro positif et inférieur ou égal à la somme restant à payer"
- ,"PayError": "Impossible d'effectuer le paiement"
-
,"An error has been in the payment": "Il semble qu'il ya eu une erreur dans le paiement"
,"Retry": "Réessayez"
,"Accept": "Accepter"
diff --git a/forms/ecomerce/orders/locale/mn.json b/forms/ecomerce/orders/locale/mn.json
index dfd1d44d..9cdd66eb 100755
--- a/forms/ecomerce/orders/locale/mn.json
+++ b/forms/ecomerce/orders/locale/mn.json
@@ -29,10 +29,6 @@
,"TotalWithVAT": "Total with VAT"
,"Pending": "Pending"
,"PayOrder": "Pay order"
-
- ,"AmountToPay:": "Amount to pay (€):"
- ,"AmountError": "The amount must be a positive number less than or equal to the outstanding amount"
- ,"PayError": "Failed to make the payment"
,"An error has been in the payment": "It seems that there has been an error in the payment"
,"Retry": "Retry"
diff --git a/forms/ecomerce/orders/locale/pt.json b/forms/ecomerce/orders/locale/pt.json
index d0d338f6..82476967 100644
--- a/forms/ecomerce/orders/locale/pt.json
+++ b/forms/ecomerce/orders/locale/pt.json
@@ -29,10 +29,6 @@
,"TotalWithVAT": "Total com IVA"
,"Pending": "Pendente"
,"PayOrder": "Pagar pedido"
-
- ,"AmountToPay:": "Quantidade a pagar (€):"
- ,"AmountError": "A quantidade deve ser um número positivo e inferior ou igual ao importe pendiente"
- ,"PayError": "Erro ao realizar o pagamento"
,"An error has been in the payment": "Parece que não houve um erro no pagamento"
,"Retry": "Tentar novamente"
diff --git a/forms/ecomerce/orders/orders.js b/forms/ecomerce/orders/orders.js
index 2eb73b1e..6ebb8db2 100644
--- a/forms/ecomerce/orders/orders.js
+++ b/forms/ecomerce/orders/orders.js
@@ -11,12 +11,14 @@ Hedera.Orders = new Class
});
this.tpv.check (this._onTpvCheck.bind (this));
- if (!this.hash.get ('from'))
+ var params = this.params;
+
+ if (!params.$.from)
{
var from = new Date ();
from.setDate (from.getDate () - 30);
from.setHours (0, 0, 0, 0);
- this.hash.assign ({from: from});
+ params.assign ({from: from});
}
}
@@ -60,9 +62,13 @@ Hedera.Orders = new Class
if (amount !== null)
defaultAmountStr = Vn.Value.format (amount, '%.2d');
- amount = parseFloat (prompt (_('AmountToPay:'), defaultAmountStr));
-
- this.tpv.pay (amount, null);
+ amount = prompt (_('AmountToPay:'), defaultAmountStr);
+
+ if (amount != null)
+ {
+ amount = parseFloat (amount.replace (',', '.'));
+ this.tpv.pay (amount, null);
+ }
}
,onDialogResponse: function (dialog, response)
diff --git a/forms/ecomerce/orders/ui.xml b/forms/ecomerce/orders/ui.xml
index 2c90c19e..896c9355 100755
--- a/forms/ecomerce/orders/ui.xml
+++ b/forms/ecomerce/orders/ui.xml
@@ -60,15 +60,15 @@
+
+
+
+
+
+
+
+ SELECT invoice_id, serial_num, issued, amount
+ FROM invoice_view
+ WHERE issued >= #from
+ ORDER BY issued DESC
+
+
+
+
+
+
+
-