diff --git a/package/usr/share/hedera-web/forms/cms/contact/ui.xml b/package/usr/share/hedera-web/forms/cms/contact/ui.xml index 6d7b37fa..9c347d71 100755 --- a/package/usr/share/hedera-web/forms/cms/contact/ui.xml +++ b/package/usr/share/hedera-web/forms/cms/contact/ui.xml @@ -44,7 +44,7 @@

AllFieldsMandatory

- diff --git a/package/usr/share/hedera-web/forms/ecomerce/basket/basket.js b/package/usr/share/hedera-web/forms/ecomerce/basket/basket.js index 289700f0..fa842274 100755 --- a/package/usr/share/hedera-web/forms/ecomerce/basket/basket.js +++ b/package/usr/share/hedera-web/forms/ecomerce/basket/basket.js @@ -5,15 +5,7 @@ Vn.Basket = new Class ,orderId: null - ,activate: function () - { - // Configuring columns - - this.$('column-amount').renderer = this.amountRender; - this.$('column-subtotal').renderer = this.subtotalRender.bind (this); - this.$('stems').renderer = this.stemsRender.bind (this); - this.$('order-total').func = this.subtotal; - } + ,activate: function () {} ,onCatalogClick: function () { @@ -32,7 +24,7 @@ Vn.Basket = new Class ,onCheckoutClick: function () { this.hash.set ({ - 'form': 'ecomerce/checkout', + 'form': 'ecomerce/confirm', 'order': this.$('order').value }); } @@ -54,8 +46,15 @@ Vn.Basket = new Class model.set (row, 'amount', newValue * model.get (row, 'grouping')); } + ,featuresRender: function (renderer, form) + { + renderer.value = form.get ('Medida') +' '+ form.get ('Categoria') +' '+ form.get ('Color'); + } + ,stemsRender: function (renderer, form) { + renderer.value = Vn.Value.format (form.get ('price'), '%.2d€') +' x '+ form.get ('amount'); + if (form.get ('amount') > form.get ('available')) renderer.td.className = 'available-exceeded'; else diff --git a/package/usr/share/hedera-web/forms/ecomerce/basket/style.css b/package/usr/share/hedera-web/forms/ecomerce/basket/style.css index b441e320..d668432a 100755 --- a/package/usr/share/hedera-web/forms/ecomerce/basket/style.css +++ b/package/usr/share/hedera-web/forms/ecomerce/basket/style.css @@ -1,24 +1,25 @@ .basket { padding: 1em; - min-width: 65em; + min-width: 25em; } .basket .box { - max-width: 70em; + max-width: 45em; margin: 0 auto; } .basket .form { padding: 1em; - max-width: 20em; + margin: 0; + background-color: #009688; } - -/* Data */ - -.basket td.label +.basket .form > p { - width: 10em; + margin: 0; + font-size: 1.4em; + color: white; + text-align: right; } /* Rows */ diff --git a/package/usr/share/hedera-web/forms/ecomerce/basket/ui.xml b/package/usr/share/hedera-web/forms/ecomerce/basket/ui.xml index 976b71bf..e42dfa70 100755 --- a/package/usr/share/hedera-web/forms/ecomerce/basket/ui.xml +++ b/package/usr/share/hedera-web/forms/ecomerce/basket/ui.xml @@ -21,66 +21,46 @@

ShoppingBasket

- - -
+
-
-
- - -
-
- - - - - VATNotIncluded -
-
- + - CALL item (#warehouse, #date); - SELECT m.id, i.grouping, m.amount, available, Article, Categoria, - Medida, Tallos, Color, o.Abreviatura, price, fixed, Foto + CALL bionic_by_order (@calc); + SELECT m.id, m.amount, t.available, a.Article, a.Categoria, + a.Medida, a.Tallos, a.Color, o.Abreviatura, m.price2 price, a.Foto FROM order_row_view m INNER JOIN vn2008.Articles a ON a.Id_Article = m.item_id - LEFT JOIN vn2008.item_catalog i ON i.item_id = m.item_id LEFT JOIN vn2008.Origen o ON a.id_origen = o.id + LEFT JOIN cache.bionic t ON m.warehouse_id = t.warehouse_id AND m.item_id = t.item_id AND t.calc_id = @calc WHERE m.order_id = #order; - DROP TEMPORARY TABLE vn2008.item_catalog; - - - - - - - - - - - - - + + + +
+

+ OrderTotal + + + +

+
diff --git a/package/usr/share/hedera-web/forms/ecomerce/catalog/catalog.js b/package/usr/share/hedera-web/forms/ecomerce/catalog/catalog.js index 7e2e3e44..6a45e91d 100755 --- a/package/usr/share/hedera-web/forms/ecomerce/catalog/catalog.js +++ b/package/usr/share/hedera-web/forms/ecomerce/catalog/catalog.js @@ -9,10 +9,9 @@ Vn.Catalog = new Class { this.$('items-model').setInfo ('m', 'order_row_view', 'hedera', ['id'], 'id'); this.$('items-model').setInfo ('a', 'Articles', 'vn2008', ['Id_Article']); - - this.$('price').renderer = this.priceRenderer; - this.$('type-column').renderer = this.typeRenderer.bind (this); - this.$('cat').renderer = this.catRenderer; + + this.popup = new Htk.Popup (); + this.popup.setChildNode (this.$('lots-popup')); this.$('warehouse').value = 1; this.$('date').value = new Date (); @@ -56,7 +55,7 @@ Vn.Catalog = new Class { if (Vn.isMobile ()) this.hideMenu (); - + this.refreshTitle (); var color = null; @@ -147,27 +146,10 @@ Vn.Catalog = new Class Vn.Node.setText (this.$('basket-button'), _('ShoppingBasket')); var items = this.$('items-model'); - items.updatable = true; +/* items.updatable = true; items.setDefaultFromColumn ('item_id', 'm', 'Id_Article'); items.setDefaultFromValue ('order_id', 'm', orderId); - - var amountCol = new Htk.ColumnSpin - ({ - title: 'Amount' - ,editable: true - ,renderer: this.amountRender - }); - amountCol.on ('changed', this.amountChanged.bind (this)); - grid.insertColumn (1, amountCol); - - var stemsCol = new Htk.ColumnSpin - ({ - title: 'Stems' - ,editable: true - ,column: 'amount' - }); - grid.insertColumn (3, stemsCol); - +*/ this.$('warehouse').master = orderForm.getParam ('wh_id'); this.$('date').master = orderForm.getParam ('date_send'); } @@ -195,6 +177,11 @@ Vn.Catalog = new Class this.hash.set ({'form': 'ecomerce/checkout'}); } + ,featuresRender: function (renderer, form) + { + renderer.value = form.get ('Medida') +' '+ form.get ('Categoria') +' '+ form.get ('Color'); + } + ,typeRenderer: function (column, form) { column.href = this.hash.make ({'type': form.get ('tipo_id')}, true); @@ -232,12 +219,74 @@ Vn.Catalog = new Class } } - ,priceRenderer: function (column, form) + ,onAddItemClick: function (column, value, row, button) { - if (form.get ('fixed')) - column.td.className = 'fixed-price'; + var itemId = this.$('items-model').get (row, 'item_id') + + var batch = this.$('lots-batch'); + batch.addValue ('item', itemId); + batch.changed (); + + this.itemId = itemId; + this.onEraseClick (); + this.popup.show (button); + } + + ,onAddLotClick: function (column, value, row, button) + { + var model = this.$('item-lots'); + + var grouping = model.get (row, 'grouping'); + var warehouse = model.get (row, 'warehouse_id'); + var rate = model.get (row, 'rate'); + + for (var i = 0; i < this.items.length; i++) + { + var t = this.items[i]; + if (t.warehouse == warehouse && t.rate == rate) + break; + } + + if (i >= this.items.length) + this.items.push ({ + warehouse: warehouse, + rate: rate, + amount: grouping + }); else - column.td.className = 'aprox-price'; + t.amount += grouping; + + this.$('amount').value += grouping; + } + + ,onEraseClick: function () + { + this.$('amount').value = 0; + this.items = []; + } + + ,onConfirmClick: function () + { + if (this.items.length > 0) + { + var sql = ''; + var batch = new Sql.Batch (); + var query = new Sql.String ({query: 'CALL order_row_new (#warehouse, #item, #rate, #amount);'}); + + for (var i = 0; i < this.items.length; i++) + { + var t = this.items[i]; + batch.addValue ('warehouse', t.warehouse); + batch.addValue ('item', this.itemId); + batch.addValue ('rate', t.rate); + batch.addValue ('amount', t.amount); + sql += query.render (batch); + } + + this.conn.execQuery (sql); + } + + this.popup.hide (); } }); diff --git a/package/usr/share/hedera-web/forms/ecomerce/catalog/style.css b/package/usr/share/hedera-web/forms/ecomerce/catalog/style.css index b0ee3086..a570051d 100755 --- a/package/usr/share/hedera-web/forms/ecomerce/catalog/style.css +++ b/package/usr/share/hedera-web/forms/ecomerce/catalog/style.css @@ -29,8 +29,8 @@ .catalog div.main .box { margin: 0 auto; - max-width: 70em; - min-width: 55em; + max-width: 50em; + min-width: 25em; } .catalog .footer-message @@ -212,6 +212,31 @@ button.basket:hover text-align: right; } +/* Lots popup*/ + +div.amount +{ + text-align: center; + background-color: #009688; + color: white; + height: 2em; + line-height: 2em; + padding: 0.4em; +} +button.erase +{ + float: left; +} +button.confirm +{ + float: right; +} +button.erase > img, +button.confirm > img +{ + height: 1em; +} + /* List view */ .items diff --git a/package/usr/share/hedera-web/forms/ecomerce/catalog/ui.xml b/package/usr/share/hedera-web/forms/ecomerce/catalog/ui.xml index 0483ec2c..9475fcbc 100755 --- a/package/usr/share/hedera-web/forms/ecomerce/catalog/ui.xml +++ b/package/usr/share/hedera-web/forms/ecomerce/catalog/ui.xml @@ -27,27 +27,56 @@ - - CALL item (#warehouse, #date); - SELECT i.grouping, m.amount, Foto, i.available, Article, Categoria, - Medida, Tallos, Color, o.Abreviatura, price, fixed, m.id, Id_Article - FROM vn2008.Articles a - INNER JOIN vn2008.item_catalog i ON i.item_id = a.Id_Article + + CALL bionic_by_type (@calc, #type); + SELECT t.warehouse_id, t.item_id, t.available, t.price, + a.Foto, a.Article, a.Categoria, a.Medida, a.Tallos, a.Color, o.Abreviatura + FROM cache.bionic t + JOIN vn2008.Articles a ON a.Id_Article = t.item_id LEFT JOIN vn2008.Origen o ON a.id_origen = o.id - LEFT JOIN order_row_view m - ON m.item_id = a.Id_Article AND m.order_id = #order - WHERE #filter AND available > 0 - ORDER BY Article, Medida + WHERE t.calc_id = @calc AND t.available > 0 + ORDER BY a.Article, a.Medida LIMIT 400; - DROP TEMPORARY TABLE vn2008.item_catalog; - - - - + + + + + CALL bionic_by_type (@calc, #type); + SELECT warehouse_id, items, grouping, price, rate + FROM cache.bionic_lot + WHERE calc_id = @calc + AND item_id = #item + ORDER BY warehouse_id, grouping; + + +
+ + + + + +
+ + + +
+
@@ -63,18 +92,28 @@
+
- - - + - - - - - - + + + +
- SELECT tipo_id, Tipo FROM vn2008.Tipos - WHERE reino_id = #realm AND Orden != 0 ORDER BY Orden DESC, Tipo + CALL type_list (#realm) - +
diff --git a/package/usr/share/hedera-web/forms/ecomerce/checkout/checkout.js b/package/usr/share/hedera-web/forms/ecomerce/checkout/checkout.js index 8f0b231e..d667f6c7 100755 --- a/package/usr/share/hedera-web/forms/ecomerce/checkout/checkout.js +++ b/package/usr/share/hedera-web/forms/ecomerce/checkout/checkout.js @@ -113,7 +113,7 @@ Vn.Checkout = new Class ,onCancelClick: function () { - this.hash.set ({'form': 'ecomerce/orders'}); + window.history.back(); } }); diff --git a/package/usr/share/hedera-web/forms/ecomerce/checkout/style.css b/package/usr/share/hedera-web/forms/ecomerce/checkout/style.css index 52c24117..f9399233 100755 --- a/package/usr/share/hedera-web/forms/ecomerce/checkout/style.css +++ b/package/usr/share/hedera-web/forms/ecomerce/checkout/style.css @@ -1,7 +1,7 @@ .checkout { padding: 1em; - max-width: 50em; + max-width: 40em; margin: 0 auto; } .checkout .form diff --git a/package/usr/share/hedera-web/forms/ecomerce/checkout/ui.xml b/package/usr/share/hedera-web/forms/ecomerce/checkout/ui.xml index fc91cfc0..cef6cc73 100755 --- a/package/usr/share/hedera-web/forms/ecomerce/checkout/ui.xml +++ b/package/usr/share/hedera-web/forms/ecomerce/checkout/ui.xml @@ -5,15 +5,6 @@ - - - SELECT id, date_send, wh_id, delivery_method_id, agency_id, address_id, note - FROM order_view WHERE id = #id - - - - - SELECT address_id, agency_id, delivery_method @@ -48,7 +39,7 @@ step-count="5" step-func="stepFunc" node="assistant-node"/> -
+

OrderDateDeliveryQuestion

@@ -96,13 +87,20 @@

AgencyQuestion

- + + CALL agency_list_by_date (#date, #address); SELECT a.Id_Agencia, a.description - FROM vn2008.Agencias a + FROM t_agency t + JOIN vn2008.Agencias a ON a.Id_Agencia = t.agency_id JOIN vn2008.Vistas v ON a.Vista = v.vista_id WHERE a.web != FALSE AND v.code = 'AGENCY' - ORDER BY a.description + ORDER BY a.description; + DROP TEMPORARY TABLE t_agency; + + + +
@@ -137,7 +135,7 @@

@@ -156,7 +154,7 @@ ReceiveThroughtRoute

@@ -173,7 +171,7 @@

diff --git a/package/usr/share/hedera-web/forms/ecomerce/confirm/confirm.js b/package/usr/share/hedera-web/forms/ecomerce/confirm/confirm.js new file mode 100755 index 00000000..8adcacd7 --- /dev/null +++ b/package/usr/share/hedera-web/forms/ecomerce/confirm/confirm.js @@ -0,0 +1,166 @@ + +Vn.Confirm = new Class +({ + Extends: Vn.Module + + ,activate: function () + { + this.tpv = new Vn.Tpv (this.conn, this.hash); + } + + ,onStatusChange: function (form) + { + if (form.row != -1) + this.$('total').value = form.get ('tax_base') + form.get ('vat'); + else + this.$('total').value = null; + } + + ,disableButtons: function (disable) + { + this.$('modify').disabled = disable; + this.$('confirm').disabled = disable; + } + + ,onModifyClick: function () + { + window.history.back(); + } + + ,onConfirmClick: function () + { +// var query = 'CALL order_confirm (#order)'; + var query = 'SELECT TRUE ok, customer_get_debt() debt'; + + var batch = new Sql.Batch (); + batch.addParam ('order', this.$('order-id')); + + this.conn.execQuery (query, this.confirmDone.bind (this), batch); + } + + ,confirmDone: function (resultSet) + { + var res = resultSet.fetchResult (); + + if (!(res && res.next())) + this.goBasket (); + + Vn.Cookie.unset ('order'); + this.pay = res.get ('debt') > this.$('order-form').get ('credit'); + + this.popup = new Htk.Popup (); + this.popup.setChildNode (this.$('success-dialog')); + this.popup.showCenter (); + } + + ,onAcceptClick: function () + { + this.popup.hide (); + + if (this.pay) + this.tpv.pay (this.$('total').value, + this.$('order-form').get ('company_id')); + else + this.hash.set ({'form': 'ecomerce/orders'}); + } +}); + +Vn.Tpv = new Class +({ + initialize: function (conn, hash) + { + this.conn = conn; + this.hash = hash; + + var tpvStatus = this.hash.get ('tpv_status'); + + if (tpvStatus) + { + var batch = new Sql.Batch (); + batch.addValue ('transaction', this.hash.get ('tpv_order')); + batch.addValue ('status', tpvStatus); + + var query = 'CALL transaction_end (#transaction, #status)'; + + this.conn.execQuery (query, null, batch); + } + } + + ,pay: function (amount, company) + { + if (amount > 0) + { + var query = 'CALL transaction_start (#company, #amount)'; + + var batch = new Sql.Batch (); + batch.addValue ('company', company); + batch.addValue ('amount', parseInt (amount * 100)); + + this.conn.execQuery (query, + this.onTransactionStart.bind (this), batch); + } + else if (!isNaN (amount)) + (new Htk.Toast ()).showError (_('AmountError')); + } + + ,onTransactionStart: function (resultSet) + { + var res = resultSet.fetchResult (); + + if (res && res.next ()) + { + var form = document.createElement ('form'); + form.method = 'post'; + form.action = res.get ('url'); + document.body.appendChild (form); + + var fieldsMap = + { + 'Ds_Merchant_Amount': 'amount' + ,'Ds_Merchant_Order': 'ds_order' + ,'Ds_Merchant_MerchantCode': 'id' + ,'Ds_Merchant_Currency': 'currency' + ,'Ds_Merchant_TransactionType': 'transaction_type' + ,'Ds_Merchant_Terminal': 'terminal' + ,'Ds_Merchant_MerchantURL': 'merchant_url' + ,'Ds_Merchant_MerchantSignature': 'signature' + ,'Ds_Merchant_UrlOK': null + ,'Ds_Merchant_UrlKO': null + }; + + for (var field in fieldsMap) + { + var input = document.createElement ('input'); + input.type = 'hidden'; + input.name = field; + form.appendChild (input); + + if (fieldsMap[field]) + input.value = res.get (fieldsMap[field]); + } + + var transactionId = res.get ('ds_order'); + form['Ds_Merchant_UrlOK'].value = this.makeUrl ('ok', transactionId); + form['Ds_Merchant_UrlKO'].value = this.makeUrl ('ko', transactionId); + + form.submit (); + } + else + alert (_('PayError')); + } + + ,makeUrl: function (status, order) + { + var path = location.protocol +'//'+ location.host; + path += location.port ? ':'+ location.port : ''; + path += location.pathname; + path += location.search ? location.search : ''; + path += this.hash.make ({ + 'tpv_status': status, + 'tpv_order': order + }, true); + + return path; + } +}); + diff --git a/package/usr/share/hedera-web/forms/ecomerce/confirm/shipping.js b/package/usr/share/hedera-web/forms/ecomerce/confirm/shipping.js deleted file mode 100755 index e57b6fdb..00000000 --- a/package/usr/share/hedera-web/forms/ecomerce/confirm/shipping.js +++ /dev/null @@ -1,126 +0,0 @@ - -Vn.Shipping = new Class -({ - Extends: Vn.Module - - ,activate: function () - { - // Loading order - - this.orderId = this.$('order-id'); - - if (!this.orderId.value) - { - var orderId = Vn.Cookie.getInt ('order'); - - if (!orderId) - { - var sql = 'INSERT INTO order_view (date_send) VALUES (CURDATE());' - +'SELECT LAST_INSERT_ID();'; - this.conn.execQuery (sql, this.orderCreated.bind (this)); - } - else - this.orderId.value = orderId; - } - - this.onDeliveryChange (); - } - - ,onStatusChange: function (form) - { - if (this.$('address').value == 0) - form.insertRow (); - } - - ,onOperationsDone: function () - { - this.onReturnClick (); - } - - ,onAcceptClick: function () - { - this.$('iter').performOperations (); - } - - ,onReturnClick: function () - { - window.history.back(); - } - - ,goBasket: function () - { - this.hash.set ({ - 'form': 'ecomerce/basket', - 'order': this.$('order-id').value - }); - } - - ,onDeliveryChange: function () - { - var showAgencies = false; - var showAdresses = false; - var showStores = false; - var deliveryMethod = parseInt (this.$('delivery').value); - - switch (deliveryMethod) - { - case 1: // AGENCY - var showAgencies = true; - var showAdresses = true; - break; - case 2: // DELIVERY - var showAdresses = true; - break; - case 3: // PICKUP - var showStores = true; - break; - } - - this.$('agencies-div').style.display = showAgencies ? '' : 'none'; - this.$('addresses-div').style.display = showAdresses ? '' : 'none'; - this.$('stores-div').style.display = showStores ? '' : 'none'; - } - - ,onConfirmClick: function () - { - if (!confirm (_('SureConfirmOrder'))) - return; - - var query = 'CALL order_confirm (#order)'; - - var batch = new Sql.Batch (); - batch.addParam ('order', this.$('order-id')); - - this.conn.execQuery (query, this.confirmDone.bind (this), batch); - } - - ,confirmDone: function (resultSet) - { - if (resultSet.fetchResult ()) - { - Vn.Cookie.unset ('order'); - this.hash.set ({'form': 'ecomerce/orders'}); - - (new Htk.Toast ()).showMessage (_('OrderConfirmed')); - } - else - this.goBasket (); - } - - ,onAddAddressClick: function () - { - this.hash.set ({ - 'form': 'account/address', - 'address': 0 - }); - } - - ,onEditAddressClick: function (button, form) - { - this.hash.set ({ - 'form': 'account/address', - 'address': form.get ('id') - }); - } -}); - diff --git a/package/usr/share/hedera-web/forms/ecomerce/confirm/style.css b/package/usr/share/hedera-web/forms/ecomerce/confirm/style.css index d9d62b95..7676263c 100755 --- a/package/usr/share/hedera-web/forms/ecomerce/confirm/style.css +++ b/package/usr/share/hedera-web/forms/ecomerce/confirm/style.css @@ -1,87 +1,84 @@ -.shipping +.confirm { padding: 1em; -} -.shipping -{ - max-width: 70em; + max-width: 40em; margin: 0 auto; } - -table.form td.label +.confirm h2 { - width: 30%; + padding: 0; + font-size: 1.6em; + color: black; + margin: 0 3em; } - -/* Checkout */ - -.checkout .form +.confirm .form { margin: 0 auto; - max-width: 25em; + padding: 3em 4em; + color: #555; +} +.confirm .form p, +.confirm .form select, +.confirm .form button +{ + font-size: 1.4em; +} +.confirm .form > div.section +{ + margin-bottom: 1.5em; +} +.confirm .form p +{ + margin: .2em 0; +} +.confirm .form p.small +{ + font-size: 1em; +} +.button-bar +{ + margin-top: 2em; +} +.modify-order +{ + float: left; +} +.confirm-order +{ + float: right; +} + +/* Success dialog */ + +.success-dialog +{ padding: 2em; + min-width: 30em; + max-width: 35em; +} +.success-dialog * +{ + font-weight: normal; + color: #555; +} +.success-dialog p, +.success-dialog button +{ + font-size: 1.4em; +} +.success-dialog img +{ + float: left; + height: 3em; + margin-top: 0; + margin-right: 1.5em; +} +.success-dialog p +{ + padding: 0; +} +.success-dialog > button +{ + margin-top: 0.5em; } -/* Form */ - -.form-group -{ - padding: 0.4em; -} -.form-group > label -{ - display: block; - margin-bottom: 0.5em; -} -.form-group > input[type=text], -.form-group > input[type=password], -.form-group > select, -.form-group > textarea -{ - margin: 0; - width: 100%; -} - -/* Delivery method */ - -ul.delivery -{ - list-style-type: none; - margin: 0; - padding-top: 0.8em; - padding-left: 1em; -} -ul.delivery > li -{ - margin: 0.2em 0; -} -ul.delivery input -{ - margin-right: 0.4em; -} - -/* Addresses */ - -div.addresses -{ - margin-top: 1em; -} - -.addresses > .form -{ - margin: 0 auto; - padding: 2em; - max-width: 25em; -} -.address -{ - margin-bottom: 1em; -} -.address p -{ - margin: 0.2em 0; -} -.address .actions -{ - text-align: right; -} diff --git a/package/usr/share/hedera-web/forms/ecomerce/confirm/ui.xml b/package/usr/share/hedera-web/forms/ecomerce/confirm/ui.xml index 9dd233a2..60e8e1fc 100755 --- a/package/usr/share/hedera-web/forms/ecomerce/confirm/ui.xml +++ b/package/usr/share/hedera-web/forms/ecomerce/confirm/ui.xml @@ -3,148 +3,91 @@ - + - SELECT id, delivery_method_id, agency_id, address_id, note - FROM order_view WHERE id = #id + SELECT o.id, o.date_send, o.delivery_method_id, o.note, + ag.description agency, o.company_id, ad.consignee, ad.zip_code, + ad.city, ad.name address, c.credit + FROM order_view o + JOIN vn2008.Agencias ag ON ag.Id_Agencia = o.agency_id + LEFT JOIN address_view ad ON ad.id = o.address_id + JOIN customer_view c + WHERE o.id = #order - + + + + + + + CALL order_get_vat (#order); + SELECT SUM(tax_base) tax_base, SUM(vat + surcharge) vat + FROM t_order_vat; + DROP TEMPORARY TABLE t_order_vat; + + - - - - - SELECT a.id, a.consignee, p.name province, a.zip_code, a.city, a.name, a.active, c.Pais country - FROM address_view a - LEFT JOIN vn2008.province p ON a.province_id = p.province_id - JOIN vn2008.Paises c ON c.Id = p.Paises_Id - WHERE active != FALSE - -
+
-

Checkout

-
- - -
-
-
-
-
- DeliveryMethod - -
    -
  • - - - -
  • -
  • - - - -
  • -
  • - - - -
  • -
-
-
- - - - SELECT a.Id_Agencia, a.description - FROM vn2008.Agencias a - JOIN vn2008.Vistas v ON a.Vista = v.vista_id - WHERE a.web != FALSE - AND v.code = 'AGENCY' - ORDER BY a.description - - -
-
- - - - SELECT a.Id_Agencia, a.description - FROM vn2008.Agencias a - JOIN vn2008.Vistas v ON a.Vista = v.vista_id - WHERE a.web != FALSE - AND v.code = 'PICKUP' - ORDER BY a.description - - -
-
- - -
-
-
-
-
-
-

ShippingAddress

-
- -
+

OrderSummary

- - -
-

- - -

-

- -

-

- - - -

-

- - - -

-
- -
-
-
+
+

+ Llegada + +

+

+ Agency + +

+
+
+

+ +

+

+ +

+

+ , + +

+
+
+

+ Total +

+

+ (TaxBase + + VAT ) +

+
+
+ + +
+
+
+
+ _Ok +

OrderPlacedSuccessfully

+
+
+ +
+
diff --git a/package/usr/share/hedera-web/forms/ecomerce/orders/tpv.js b/package/usr/share/hedera-web/forms/ecomerce/orders/tpv.js new file mode 100755 index 00000000..e69de29b diff --git a/package/usr/share/hedera-web/forms/ecomerce/orders/ui.xml b/package/usr/share/hedera-web/forms/ecomerce/orders/ui.xml index aaca4180..52a6c403 100755 --- a/package/usr/share/hedera-web/forms/ecomerce/orders/ui.xml +++ b/package/usr/share/hedera-web/forms/ecomerce/orders/ui.xml @@ -30,7 +30,7 @@
-

ConfirmedOrders

+

LastOrders

PendingBalance: @@ -60,24 +60,14 @@ on-clicked="onShowClick"/>
-
- - - - - - - - - - -
- - CALL customer_debt (); + + CALL customer_debt_beta (); + SELECT * FROM t_customer_debt; + DROP TEMPORARY TABLE t_customer_debt; diff --git a/package/usr/share/hedera-web/forms/ecomerce/shipping/shipping.js b/package/usr/share/hedera-web/forms/ecomerce/shipping/shipping.js deleted file mode 100755 index a06393a0..00000000 --- a/package/usr/share/hedera-web/forms/ecomerce/shipping/shipping.js +++ /dev/null @@ -1,67 +0,0 @@ - -Vn.Shipping = new Class -({ - Extends: Vn.Module - - ,onIterChange: function (form) - { - var showAgencies = false; - var showAdresses = false; - var showStores = false; - var deliveryMethod = parseInt (form.get ('delivery_method_id')); - - switch (deliveryMethod) - { - case 1: // AGENCY - var showAgencies = true; - var showAdresses = true; - break; - case 2: // DELIVERY - var showAdresses = true; - break; - case 3: // PICKUP - var showStores = true; - break; - } - - this.$('conf-div').style.display = showAgencies || showStores ? 'block' : 'none'; - this.$('agencies-div').style.display = showAgencies ? 'block' : 'none'; - this.$('addresses-div').style.display = showAdresses ? 'block' : 'none'; - this.$('stores-div').style.display = showStores ? 'block' : 'none'; - } - - ,onReturnClick: function () - { - window.history.back(); - } - - ,onBasketClick: function () - { - this.hash.set ({ - 'form': 'ecomerce/basket', - 'order': this.$('order').value - }); - } - - ,onCatalogClick: function () - { - this.hash.set ({'form': 'ecomerce/catalog'}); - } - - ,onAddAddressClick: function () - { - this.hash.set ({ - 'form': 'account/address', - 'address': 0 - }); - } - - ,onEditAddressClick: function (button, form) - { - this.hash.set ({ - 'form': 'account/address', - 'address': form.get ('id') - }); - } -}); - diff --git a/package/usr/share/hedera-web/forms/ecomerce/shipping/style.css b/package/usr/share/hedera-web/forms/ecomerce/shipping/style.css deleted file mode 100755 index 5abd1a9c..00000000 --- a/package/usr/share/hedera-web/forms/ecomerce/shipping/style.css +++ /dev/null @@ -1,51 +0,0 @@ -.shipping -{ - padding: 1em; -} -.shipping -{ - max-width: 70em; - margin: 0 auto; -} - -table.form td.label -{ - width: 30%; -} - -.shipping .form -{ - max-width: 25em; - padding: 2em; -} - -div.hide -{ - display: none; -} - -/* Addresses */ - -div.addresses -{ - margin-top: 1em; -} - -.addresses > .form -{ - margin: 0 auto; - padding: 2em; - max-width: 25em; -} -.address -{ - margin-bottom: 1em; -} -.address p -{ - margin: 0.2em 0; -} -.address .actions -{ - text-align: right; -} diff --git a/package/usr/share/hedera-web/forms/ecomerce/shipping/ui.xml b/package/usr/share/hedera-web/forms/ecomerce/shipping/ui.xml deleted file mode 100755 index 55162b3c..00000000 --- a/package/usr/share/hedera-web/forms/ecomerce/shipping/ui.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - SELECT id, delivery_method_id, agency_id, address_id - FROM order_view WHERE id = #id - - - - - - - SELECT a.id, a.consignee, p.name province, a.zip_code, a.city, a.name, a.active, c.Pais country - FROM address_view a - LEFT JOIN vn2008.province p ON a.province_id = p.province_id - JOIN vn2008.Paises c ON c.Id = p.Paises_Id - WHERE active != FALSE - - -
-
-
-

ConfigureShippingPickup

-
- - -
-
-
-
- - - - SELECT a.Id_Agencia, a.description - FROM vn2008.Agencias a - JOIN vn2008.Vistas v ON a.Vista = v.vista_id - WHERE a.web != FALSE - AND v.code = 'PICKUP' - ORDER BY a.description - - -
-
- - - - SELECT a.Id_Agencia, a.description - FROM vn2008.Agencias a - JOIN vn2008.Vistas v ON a.Vista = v.vista_id - WHERE a.web != FALSE - AND v.code = 'AGENCY' - ORDER BY a.description - - -
-
-
-
-
-

ShippingAddress

-
- -
-
-
- - -
-

- - -

-

- -

-

- - - -

-

- - - -

-
- -
-
-
-
-
-
-
diff --git a/package/usr/share/hedera-web/global/style.css b/package/usr/share/hedera-web/global/style.css index 2889723b..ae6ce851 100755 --- a/package/usr/share/hedera-web/global/style.css +++ b/package/usr/share/hedera-web/global/style.css @@ -170,12 +170,13 @@ input[type=button] color: white; padding: 0.5em; cursor: pointer; + border-radius: 0.1em; } button:hover, input[type=submit]:hover, input[type=button]:hover { - background-color: #EEE; + background-color: rgba(1, 1, 1, 0.2); } /* Flat button */ @@ -203,6 +204,7 @@ button.thin background-color: transparent; border: none; color: #008D77; + text-transform: uppercase; } button.thin:hover { @@ -431,12 +433,12 @@ img.icon { padding-right: 1em; } -.htk-grid .cell-spin +.cell-spin { width: 2.5em; text-align: right; } -.htk-grid .cell-button +.cell-button { margin: 0; padding: 0.5em; @@ -444,14 +446,18 @@ img.icon background-color: transparent; border-radius: 0.1em; } -.htk-grid .cell-button:hover +.cell-button:hover { background-color: rgba(1, 1, 1, 0.1); } -.htk-grid .cell-button img +.cell-button img { height: 1.5em; } +.cell-image > img +{ + min-height: 1.5em; +} /* Repater */ @@ -589,6 +595,16 @@ img.icon border-radius: 0.1em; box-shadow: 0 0 0.4em #666; } +.htk-background +{ + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + z-index: 190; + background-color: rgba(1, 1, 1, 0.7); +} /* Image editor */ diff --git a/package/usr/share/hedera-web/image/add.svg b/package/usr/share/hedera-web/image/add.svg new file mode 100644 index 00000000..2af36bb9 --- /dev/null +++ b/package/usr/share/hedera-web/image/add.svg @@ -0,0 +1,131 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + diff --git a/package/usr/share/hedera-web/image/dark/delete.svg b/package/usr/share/hedera-web/image/dark/delete.svg new file mode 100644 index 00000000..c4be67a2 --- /dev/null +++ b/package/usr/share/hedera-web/image/dark/delete.svg @@ -0,0 +1,136 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + diff --git a/package/usr/share/hedera-web/image/dark/logo.svg b/package/usr/share/hedera-web/image/dark/logo.svg index 7c4239c5..6cf594a7 100644 --- a/package/usr/share/hedera-web/image/dark/logo.svg +++ b/package/usr/share/hedera-web/image/dark/logo.svg @@ -18,8 +18,8 @@ enable-background="new 0 0 226.229 31.038" xml:space="preserve" id="svg2" - inkscape:version="0.48.5 r10040" - sodipodi:docname="verdnatura.svg">image/svg+xml \ No newline at end of file diff --git a/package/usr/share/hedera-web/image/warning.svg b/package/usr/share/hedera-web/image/warning.svg new file mode 100644 index 00000000..908d40b8 --- /dev/null +++ b/package/usr/share/hedera-web/image/warning.svg @@ -0,0 +1,153 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + diff --git a/package/usr/share/hedera-web/js/htk/column/button.js b/package/usr/share/hedera-web/js/htk/column/button.js index 9cfb8085..49842f4f 100755 --- a/package/usr/share/hedera-web/js/htk/column/button.js +++ b/package/usr/share/hedera-web/js/htk/column/button.js @@ -23,7 +23,7 @@ Htk.ColumnButton = new Class var button = document.createElement ('button'); button.className = 'cell-button'; button.addEventListener ('click', - this.buttonClicked.bind (this, this.value, tr)); + this.buttonClicked.bind (this, this.value, tr, button)); td.appendChild (button); var img = document.createElement ('img'); @@ -39,8 +39,8 @@ Htk.ColumnButton = new Class return td; } - ,buttonClicked: function (value, tr) + ,buttonClicked: function (value, tr, button) { - this.signalEmit ('clicked', value, tr.rowIndex - 1); + this.signalEmit ('clicked', value, tr.rowIndex - 1, button); } }); diff --git a/package/usr/share/hedera-web/js/htk/column/image.js b/package/usr/share/hedera-web/js/htk/column/image.js index 65adad57..21dc0424 100755 --- a/package/usr/share/hedera-web/js/htk/column/image.js +++ b/package/usr/share/hedera-web/js/htk/column/image.js @@ -50,6 +50,7 @@ Htk.ColumnImage = new Class ,render: function (tr) { var td = this.parent (tr); + td.className = 'cell-image'; var img = document.createElement ('img'); img.alt = '' diff --git a/package/usr/share/hedera-web/js/htk/popup.js b/package/usr/share/hedera-web/js/htk/popup.js index c67ce659..e6f27b65 100755 --- a/package/usr/share/hedera-web/js/htk/popup.js +++ b/package/usr/share/hedera-web/js/htk/popup.js @@ -62,12 +62,35 @@ Htk.Popup = new Class this.node.style.top = (top) +'px'; this.node.style.left = (left) +'px'; } + + ,showCenter: function () + { + this.parent = null; + + this.background = document.createElement ('div'); + this.background.className = 'htk-background'; + document.body.appendChild (this.background); + + document.body.appendChild (this.node); + + var width = this.node.offsetWidth; + var height = this.node.offsetHeight; + + this.node.style.top = '50%'; + this.node.style.left = '50%'; + this.node.style.marginLeft = (-this.node.offsetWidth / 2) +'px'; + this.node.style.marginTop = (-this.node.offsetHeight / 2) +'px'; + + } ,hide: function () { + if (this.background) + Vn.Node.remove (this.background); + this.node.removeEventListener ('mousedown', this.stopEvent) document.removeEventListener ('mousedown', this.hideHandler); - document.body.removeChild (this.node); + Vn.Node.remove (this.node); this.parent = null; this.signalEmit ('closed'); } diff --git a/package/usr/share/hedera-web/js/sql/batch.js b/package/usr/share/hedera-web/js/sql/batch.js index af7932da..8aa322af 100755 --- a/package/usr/share/hedera-web/js/sql/batch.js +++ b/package/usr/share/hedera-web/js/sql/batch.js @@ -5,9 +5,24 @@ Sql.Batch = new Class ({ Extends: Sql.Object ,Tag: 'sql-batch' + ,Properties: + { + blocked: + { + type: Boolean + ,set: function (x) + { + this._blocked = x; + } + ,get: function () + { + return this._blocked; + } + } + } ,params: {} - ,blocked: false + ,_blocked: false ,loadXml: function (builder, node) { @@ -49,7 +64,7 @@ Sql.Batch = new Class { if (this.params[id]) { - this.params[id].disconnect ('changed', this.changed, this); + this.params[id].disconnect ('changed', this.emitChanged, this); delete this.params[id]; } } @@ -58,8 +73,8 @@ Sql.Batch = new Class { this.remove (id); this.params[id] = object; - object.on ('changed', this.changed, this); - this.changed (); + object.on ('changed', this.emitChanged, this); + this.emitChanged (); } ,addValue: function (id, value) @@ -76,18 +91,23 @@ Sql.Batch = new Class ,block: function () { - this.blocked = true; + this._blocked = true; } ,unblock: function () { - this.blocked = false; + this._blocked = false; + } + + ,emitChanged: function () + { + if (!this._blocked) + this.signalEmit ('changed'); } ,changed: function () { - if (!this.blocked) - this.signalEmit ('changed'); + this.signalEmit ('changed'); } ,isReady: function () diff --git a/package/usr/share/hedera-web/js/vn/builder.js b/package/usr/share/hedera-web/js/vn/builder.js index f2d5d8fc..90301e8b 100755 --- a/package/usr/share/hedera-web/js/vn/builder.js +++ b/package/usr/share/hedera-web/js/vn/builder.js @@ -86,7 +86,7 @@ Vn.Builder = new Class var nodeName = a[i].nodeName; var nodeValue = a[i].nodeValue; - if (/on-\w+/.test (nodeName)) + if (/^on-\w+/.test (nodeName)) { var method = this.getMethod (nodeValue); htmlNode.addEventListener ( @@ -169,13 +169,27 @@ Vn.Builder = new Class } ,getMethod: function (value) - { + { if (this.signalData) var methodName = 'this.signalData.'+ value; else var methodName = value; - return eval (methodName); + var method; + + try { + method = eval (methodName); + } + catch (e) + { + method = null; + } + + if (method == null) + console.warn ('Vn.Builder: Function \'%s\' not found', + value); + + return method; } ,replaceFunc: function (token) @@ -191,21 +205,7 @@ Vn.Builder = new Class var a = c.node.attributes; for (var j = 0; j < a.length; j++) - { - var nodeName = a[j].nodeName; - var nodeValue = a[j].nodeValue; - - if (/on-\w+/.test (nodeName)) - { - var method = this.getMethod (nodeValue); - c.object.on (nodeName.substr (3), method, this.signalData); - } - else if (!/^(id|property)$/.test (nodeName)) - { - var prop = nodeName.replace (/-./g, this.replaceFunc); - this.setProperty (c, prop, nodeValue); - } - } + this.setAttribute (c, a[j].nodeName, a[j].nodeValue); if (c.parent) { @@ -224,15 +224,31 @@ Vn.Builder = new Class c.object.loadXml (this, c.node); } } - - ,setProperty: function (c, propName, value) + + ,setAttribute: function (c, attribute, value) { + if (/^on-\w+/.test (attribute)) + { + var method = this.getMethod (value); + + if (method) + c.object.on (attribute.substr (3), method, this.signalData); + } + else if (!/^(id|property)$/.test (attribute)) + { + this.setProperty (c, attribute, value) + } + } + + ,setProperty: function (c, attribute, value) + { + var propName = attribute.replace (/-./g, this.replaceFunc); var prop = c.klass.Properties[propName]; if (!prop) { - console.warn ('Htk.Builder: Attribute \'%s\' not valid for tag \'%s\'', - propName, c.node.tagName); + console.warn ('Vn.Builder: Attribute \'%s\' not valid for tag \'%s\'', + attribute, c.node.tagName); return; } if (!value) diff --git a/package/usr/share/hedera-web/js/vn/node.js b/package/usr/share/hedera-web/js/vn/node.js index 8bbe4248..75802a3a 100755 --- a/package/usr/share/hedera-web/js/vn/node.js +++ b/package/usr/share/hedera-web/js/vn/node.js @@ -5,13 +5,15 @@ Vn.Node = { var childs = node.childNodes; + if (childs) while (childs.length > 0) node.removeChild (childs[0]); } ,remove: function (node) { - node.parentNode.removeChild (node); + if (node.parentNode) + node.parentNode.removeChild (node); } ,setText: function (node, text) diff --git a/package/usr/share/hedera-web/locale/es/forms/ecomerce/basket.json b/package/usr/share/hedera-web/locale/es/forms/ecomerce/basket.json index 056a6d1e..cdcdc9b8 100755 --- a/package/usr/share/hedera-web/locale/es/forms/ecomerce/basket.json +++ b/package/usr/share/hedera-web/locale/es/forms/ecomerce/basket.json @@ -4,15 +4,15 @@ ,"Delete": "Borrar pedido" ,"GoToCatalog": "Ir al catálogo" ,"ConfigureOrder": "Configurar pedido" - ,"Checkout": "Tramitar pedido" + ,"Checkout": "Finalizar pedido" ,"OrderNumber": "Nº pedido" ,"DateExit": "Fecha de salida" ,"Warehouse": "Almacén" - ,"OrderTotal": "Total pedido" + ,"OrderTotal": "Total" ,"VATNotIncluded": "(IVA y transporte no incluídos)" - ,"Amount": "Cant" + ,"Amount": "Cantidad" ,"Pack": "Pack" ,"Stems": "Tallos" ,"Avail": "Disp" diff --git a/package/usr/share/hedera-web/locale/es/forms/ecomerce/catalog.json b/package/usr/share/hedera-web/locale/es/forms/ecomerce/catalog.json index 2b4b3413..a3f31d1c 100755 --- a/package/usr/share/hedera-web/locale/es/forms/ecomerce/catalog.json +++ b/package/usr/share/hedera-web/locale/es/forms/ecomerce/catalog.json @@ -27,6 +27,12 @@ ,"Pack": "Pack" ,"Origin": "Origen" ,"Price": "Precio" + + ,"from %.2d€": "desde %.2d€" + ,"AddToBasket": "Añadir artículo" + ,"Add": "Añadir" + ,"Erase": "Borrar" + ,"Confirm": "Confirmar" ,"IndicativePhotos": "* Las fotos son orientativas" } diff --git a/package/usr/share/hedera-web/locale/es/forms/ecomerce/checkout.json b/package/usr/share/hedera-web/locale/es/forms/ecomerce/checkout.json index 95a9a23a..f2d08c6c 100755 --- a/package/usr/share/hedera-web/locale/es/forms/ecomerce/checkout.json +++ b/package/usr/share/hedera-web/locale/es/forms/ecomerce/checkout.json @@ -2,7 +2,7 @@ "ConfigureOrder": "Configurar pedido" ,"Cancel": "Cancelar" - ,"NEXT": "SIGUIENTE" + ,"Next": "Siguiente" ,"DeliveryOrPickupQuestion": "¿Desea recibir o recoger el pedido?" ,"ReceiveThroughtAgency": "Recibir por agencia" @@ -21,7 +21,7 @@ ,"%A, %e of %B": "%A, %e de %B" ,"Agency": "Agencia" ,"Warehouse": "Almacén" - ,"CONFIRM": "CONFIRMAR" + ,"Confirm": "Confirmar" ,"ErrorCreatingOrder": "Error al crear el pedido" ,"OrderStarted": "Pedido empezado" diff --git a/package/usr/share/hedera-web/locale/es/forms/ecomerce/confirm.json b/package/usr/share/hedera-web/locale/es/forms/ecomerce/confirm.json index 52604a03..fc03b1f1 100755 --- a/package/usr/share/hedera-web/locale/es/forms/ecomerce/confirm.json +++ b/package/usr/share/hedera-web/locale/es/forms/ecomerce/confirm.json @@ -1,26 +1,26 @@ { - "ConfigureOrder": "Configurar pedido" + "Checkout": "Finalizar pedido" - ,"Return": "Volver" - ,"Accept": "Aceptar" - - ,"ShippingDate": "Fecha de envío" + ,"OrderSummary": "Resumen del pedido" + ,"Arrival": "Llegada" + ,"%A, %e of %B": "%A, %e de %B" + ,"Agency": "Agencia" ,"Warehouse": "Almacén" - ,"DeliveryMethod": "Forma de envío" - ,"ShippingAgency": "Agencia de envío" - ,"Notes": "Notas" - ,"PickupInStore": "Recogida en almacén" - ,"HomeDelivery": "Reparto a domicilio" - ,"TransportAgency": "Agencia de transporte" - ,"PickupStore": "Almacén de recogida" + ,"DeliveryAddress": "Dirección de envío" - ,"ShippingAddress": "Dirección de envío" + ,"Import": "Importe" + ,"TaxBase": "Base imponible" + ,"VAT": "IVA" + ,"Total": "Total" + + ,"Cancel": "Cancelar" + ,"Modify": "Modificar" + ,"Confirm": "Confirmar" + + ,"OrderPlacedSuccessfully": "Su pedido ha sido realizado con éxito" + ,"OrderReserved": "Hemos reservado su pedido pero parece que ha habido problemas con el pago. Contacte con su comercial." + ,"Accept": "Aceptar" + ,"PayNow": "Pagar ahora" - ,"AddAddress": "Añadir dirección" - ,"SelectAddress": "Seleccionar dirección" - ,"EditAddress": "Modificar dirección" - - ,"SureConfirmOrder": "¿Desea confirmar su pedido?" - ,"OrderConfirmed": "Su pedido ha sido procesado y confirmado correctamente" } diff --git a/package/usr/share/hedera-web/locale/es/forms/ecomerce/orders.json b/package/usr/share/hedera-web/locale/es/forms/ecomerce/orders.json index 17ecab34..70a00bd8 100755 --- a/package/usr/share/hedera-web/locale/es/forms/ecomerce/orders.json +++ b/package/usr/share/hedera-web/locale/es/forms/ecomerce/orders.json @@ -1,6 +1,5 @@ { - "OpenOrders": - "Pedidos abiertos" + "OpenOrders": "Pedidos abiertos" ,"StartOrder": "Empezar pedido" ,"ContinueOrder": "Continuar pedido" @@ -9,11 +8,10 @@ ,"DateExit": "Fecha de salida" ,"SendMethod": "Forma de envío" - ,"ConfirmedOrders": - "Pedidos confirmados" + ,"LastOrders": "Últimos pedidos" ,"PendingBalance:": "Saldo pendiente:" - ,"PaymentInfo": "Para realizar una entrega a cuenta pulse en el botón de la derecha y haga el pago en la empresa correspondiente. La cantidad que aparece es el saldo pendiente a día de hoy, no tiene en cuenta pedidos del futuro. Puede realizar una entrega a cuenta de la cantidad que desee. Si desea pagar un pedido en concreto puede pulsar directamente en el botón de pago del pedido." + ,"PaymentInfo": "Para realizar una entrega a cuenta pulse en el botón de la derecha y haga el pago en la empresa correspondiente. La cantidad que aparece es el saldo pendiente a día de hoy, no tiene en cuenta pedidos del futuro. Puede realizar una entrega a cuenta de la cantidad que desee." ,"MakePayment": "Realizar pago" ,"Company": "Empresa" ,"Pending": "Pendiente" diff --git a/package/usr/share/hedera-web/pages/web/style.css b/package/usr/share/hedera-web/pages/web/style.css index 6ff0dff1..30ba5d54 100755 --- a/package/usr/share/hedera-web/pages/web/style.css +++ b/package/usr/share/hedera-web/pages/web/style.css @@ -74,13 +74,13 @@ body #exit { float: right; - background-color: #E80; + background-color: #FC9900; width: 4em; text-align: center; } #exit:hover { - background-color: #F91; + background-color: #FCA910; } #exit span {