From 758b36000e3bdf97071a3875db4f5544fbf6d58e Mon Sep 17 00:00:00 2001 From: Yan Date: Tue, 7 Nov 2017 14:48:33 +0630 Subject: [PATCH] origami numpad ui fix and promotion fix --- app/assets/stylesheets/origami.scss | 16 +++++++++-- app/models/promotion.rb | 2 +- app/views/origami/payments/show.html.erb | 36 ++++++++++++++++-------- 3 files changed, 39 insertions(+), 15 deletions(-) diff --git a/app/assets/stylesheets/origami.scss b/app/assets/stylesheets/origami.scss index 39152c58..de838a1e 100755 --- a/app/assets/stylesheets/origami.scss +++ b/app/assets/stylesheets/origami.scss @@ -158,7 +158,7 @@ select.form-control { } .long{ - width:43%; + width:49%; } .sold { @@ -240,7 +240,7 @@ select.form-control { /* End Colors */ .left{ - margin-left:20px; + margin-left:1px; } .bottom{ @@ -326,3 +326,15 @@ tr.discount-item-row:hover { -moz-opacity: 1; /* mozilla */ } + +/* For Payment Page */ + +.payment-long { + width:43%; +} + +.payment-left { + margin-left: 20px; +} + +/* End Payment Page */ diff --git a/app/models/promotion.rb b/app/models/promotion.rb index bc1516cc..2edc9421 100755 --- a/app/models/promotion.rb +++ b/app/models/promotion.rb @@ -218,7 +218,7 @@ class Promotion < ApplicationRecord else foc_qty = find_second_item_qty(sale_id, promo_product.item_code) # give total qty is 1 - foc_qty = (foc_qty - foc_qty) + 1 + #foc_qty = (foc_qty - foc_qty) + 1 item = OrderItem.find_by_item_instance_code(promo_product.item_code) # total = item.price * foc_qty diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb index cfaa96bd..ec129d07 100755 --- a/app/views/origami/payments/show.html.erb +++ b/app/views/origami/payments/show.html.erb @@ -248,15 +248,15 @@
-
1000
-
3000
+
1000
+
3000
-
5000
-
10000
+
5000
+
10000
-
Pay
+
Pay
@@ -264,7 +264,10 @@
- + @@ -275,12 +278,21 @@