473 lines
13 KiB
XML
473 lines
13 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<RelativeLayout
|
||
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:background="@drawable/sales_screen_10dp"
|
||
|
|
android:backgroundTint="@color/lightgreybackground"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:orientation="vertical">
|
||
|
|
|
||
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:orientation="vertical">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_margin="15dp"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:orientation="vertical">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/itemcontainar"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical"/>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/combochange"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
android:background="@color/white"
|
||
|
|
android:gravity="end"
|
||
|
|
android:orientation="vertical"
|
||
|
|
android:layout_height="wrap_content">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginHorizontal="3dp"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:weightSum="3">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/billingaddCustomer"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginEnd="8dp"
|
||
|
|
android:visibility="visible"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="35dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center"
|
||
|
|
android:background="@drawable/grey_bordernew1">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="27dp"
|
||
|
|
android:fontFamily="@font/inter_500"
|
||
|
|
android:text=" Select Customer "
|
||
|
|
android:inputType="textNoSuggestions"
|
||
|
|
android:maxLines="1"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center"
|
||
|
|
android:drawableRight="@drawable/dropdown"
|
||
|
|
android:singleLine="true"
|
||
|
|
android:textColor="@color/black"
|
||
|
|
android:textSize="13dp" />
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_width="20dp"
|
||
|
|
android:layout_height="20dp"
|
||
|
|
android:layout_marginStart="@dimen/dp_10"
|
||
|
|
android:background="@drawable/user"
|
||
|
|
android:backgroundTint="@color/layoutBlueTheme"
|
||
|
|
android:gravity="center"
|
||
|
|
android:visibility="visible"/>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:visibility="gone"
|
||
|
|
android:id="@+id/btnhold_Cmn"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
|
||
|
|
android:layout_marginLeft="10dp"
|
||
|
|
android:layout_width="30dp"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:layout_centerVertical="true"
|
||
|
|
android:layout_centerHorizontal="true"
|
||
|
|
android:background="@drawable/hand"
|
||
|
|
android:backgroundTint="@color/layoutBlueTheme" />
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/handsym"
|
||
|
|
android:layout_width="27dp"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_marginLeft="10dp"
|
||
|
|
android:src="@drawable/unpaid"
|
||
|
|
android:visibility="gone" />
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:visibility="visible"
|
||
|
|
android:weightSum="2">
|
||
|
|
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_weight="1.3"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:visibility="visible"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:layout_width="50dp"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:layout_marginHorizontal="3dp"
|
||
|
|
android:background="@color/selectedGreen"
|
||
|
|
android:text="Cash"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:textColor="@color/white"
|
||
|
|
android:textStyle="bold">
|
||
|
|
|
||
|
|
</Button>
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:layout_width="50dp"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:textStyle="bold"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:background="@color/layoutBlueTheme"
|
||
|
|
android:textColor="@color/white"
|
||
|
|
android:text="Card">
|
||
|
|
|
||
|
|
</Button>
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:layout_width="40dp"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:textStyle="bold"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:layout_marginHorizontal="3dp"
|
||
|
|
android:background="@color/layoutBlueTheme"
|
||
|
|
android:textColor="@color/white"
|
||
|
|
android:text="UPi">
|
||
|
|
|
||
|
|
</Button>
|
||
|
|
<Button
|
||
|
|
android:id="@+id/advanceAmountLL"
|
||
|
|
android:visibility="gone"
|
||
|
|
android:layout_width="65dp"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:textStyle="bold"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:background="@color/layoutBlueTheme"
|
||
|
|
android:textColor="@color/white"
|
||
|
|
android:text="Credit">
|
||
|
|
|
||
|
|
</Button>
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="0.7">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="40dp"
|
||
|
|
android:layout_margin="8dp"
|
||
|
|
android:layout_weight="2"
|
||
|
|
android:background="@drawable/btn_pay"
|
||
|
|
android:backgroundTint="#52C41A">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/submit_btn"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:weightSum="3">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/submitTotal"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="3"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:text="\u20b9200"
|
||
|
|
android:textAlignment="center"
|
||
|
|
android:textColor="@color/white"
|
||
|
|
android:textSize="16sp"
|
||
|
|
android:textStyle="bold">
|
||
|
|
|
||
|
|
</TextView>
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_margin="5dp"
|
||
|
|
android:src="@drawable/vector_pay"
|
||
|
|
android:visibility="visible"
|
||
|
|
app:tint="@color/white">
|
||
|
|
|
||
|
|
</ImageView>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/viewSummary"
|
||
|
|
android:layout_width="40dp"
|
||
|
|
android:layout_height="35dp"
|
||
|
|
android:layout_gravity="center">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/viewSummaryImage"
|
||
|
|
android:layout_width="40dp"
|
||
|
|
android:layout_height="35dp"
|
||
|
|
android:src="@drawable/icon_up_arrow"
|
||
|
|
app:tint="@color/layoutBlueTheme">
|
||
|
|
|
||
|
|
</ImageView>
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_marginHorizontal="3.5dp"
|
||
|
|
android:layout_marginBottom="@dimen/dp_5"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical">
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:weightSum="3">
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<com.google.android.material.textfield.TextInputEditText
|
||
|
|
android:id="@+id/receivedAmt"
|
||
|
|
android:gravity="center"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="40dp"
|
||
|
|
android:hint="RECEIVED"
|
||
|
|
android:focusable="false"
|
||
|
|
android:clickable="false"
|
||
|
|
android:textSize="@dimen/dp_15"
|
||
|
|
android:background="@drawable/recbal_btn"
|
||
|
|
android:layout_margin="3dp"
|
||
|
|
android:inputType="number"
|
||
|
|
android:textColor="#696969"
|
||
|
|
android:enabled="false"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:layout_weight="0.7"
|
||
|
|
android:visibility="visible"
|
||
|
|
>
|
||
|
|
|
||
|
|
</com.google.android.material.textfield.TextInputEditText>
|
||
|
|
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/balanceAmt"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="40dp"
|
||
|
|
android:hint="Balance"
|
||
|
|
android:gravity="center"
|
||
|
|
android:focusable="false"
|
||
|
|
android:clickable="false"
|
||
|
|
android:textAllCaps="true"
|
||
|
|
android:layout_margin="3dp"
|
||
|
|
android:textColor="#696969"
|
||
|
|
android:background="@drawable/recbal_btn"
|
||
|
|
android:enabled="false"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:layout_weight="0.7">
|
||
|
|
|
||
|
|
</TextView>
|
||
|
|
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_weight="1.6"
|
||
|
|
android:layout_height="wrap_content">
|
||
|
|
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginLeft="@dimen/dp_15"
|
||
|
|
android:layout_marginTop="@dimen/dp_8">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:visibility="gone"
|
||
|
|
android:layout_width="40dp"
|
||
|
|
android:layout_height="40dp">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/advanceAmountIV"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:clickable="false"
|
||
|
|
android:focusable="false"
|
||
|
|
android:src="@drawable/advance_amount_icon"
|
||
|
|
app:tint="#808080" />
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/creditCustomers"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_marginLeft="10dp"
|
||
|
|
android:background="@drawable/icon_credit_customer"
|
||
|
|
android:backgroundTint="@color/layoutBlueTheme"
|
||
|
|
android:visibility="gone">
|
||
|
|
|
||
|
|
</ImageView>
|
||
|
|
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/unpaid"
|
||
|
|
android:layout_width="30dp"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_marginLeft="15dp"
|
||
|
|
android:layout_marginRight="@dimen/dp_15"
|
||
|
|
android:background="@drawable/icon_un_paid_bill"
|
||
|
|
android:backgroundTint="@color/layoutBlueTheme"
|
||
|
|
android:visibility="gone" />
|
||
|
|
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/dineInHold"
|
||
|
|
android:layout_width="30dp"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_marginLeft="10dp"
|
||
|
|
android:src="@drawable/dinein"
|
||
|
|
android:tooltipText="Dine In Order"
|
||
|
|
android:visibility="gone"
|
||
|
|
app:tint="@color/selectedGreen"></ImageView>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/holdRecallParentSummary"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/btnhold_Cmn"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:visibility="gone">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:layout_width="30dp"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:layout_marginLeft="10dp"
|
||
|
|
android:src="@drawable/hand"
|
||
|
|
app:tint="@color/layoutBlueTheme">
|
||
|
|
|
||
|
|
</ImageView>
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
<RelativeLayout
|
||
|
|
android:id="@+id/holdOrder"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:visibility="gone">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/favItemCart"
|
||
|
|
android:layout_width="30dp"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:layout_centerHorizontal="true"
|
||
|
|
android:layout_centerVertical="true"
|
||
|
|
android:src="@drawable/hand"
|
||
|
|
app:tint="#50BF19" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/cart_badge"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_alignTop="@id/favItemCart"
|
||
|
|
android:layout_alignEnd="@id/favItemCart"
|
||
|
|
android:layout_marginStart="-8dp"
|
||
|
|
android:layout_marginTop="0dp"
|
||
|
|
android:layout_marginEnd="1dp"
|
||
|
|
android:background="@drawable/badge_background"
|
||
|
|
android:gravity="center"
|
||
|
|
android:paddingStart="4dp"
|
||
|
|
android:paddingEnd="4dp"
|
||
|
|
android:text="0"
|
||
|
|
android:textColor="@color/color_white" />
|
||
|
|
|
||
|
|
</RelativeLayout>
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
|
|
||
|
|
|
||
|
|
</RelativeLayout>
|
||
|
|
|
||
|
|
|