added loyaltypoint usage to sales unfinished still needs to work with the backend
This commit is contained in:
@@ -128,7 +128,30 @@
|
||||
android:id="@+id/spinnerSaleCustomer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"/>
|
||||
android:layout_marginBottom="8dp"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/llLoyaltyPoints"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:visibility="gone">
|
||||
<CheckBox
|
||||
android:id="@+id/cbUseLoyaltyPoints"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Use Loyalty Points"/>
|
||||
<TextView
|
||||
android:id="@+id/tvAvailablePoints"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:textColor="@color/text_light"
|
||||
android:textSize="12sp"
|
||||
android:text="(Available: 0)"/>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Payment Method -->
|
||||
<TextView
|
||||
@@ -390,6 +413,27 @@
|
||||
android:textColor="@color/status_adopted"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/llLoyaltyDiscount"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_marginTop="4dp"
|
||||
android:visibility="gone">
|
||||
<TextView
|
||||
android:id="@+id/tvLoyaltyDiscountLabel"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="Loyalty Discount:"/>
|
||||
<TextView
|
||||
android:id="@+id/tvSaleLoyaltyDiscount"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="-$0.00"
|
||||
android:textColor="@color/status_adopted"/>
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvSaleDetailTotal"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
Reference in New Issue
Block a user