479 lines
20 KiB
XML
479 lines
20 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:background="@color/newlight_grey"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/white"
|
|
android:orientation="vertical"
|
|
app:cardCornerRadius="10dp">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="15dp"
|
|
android:orientation="vertical">
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_marginTop="@dimen/dp_15"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:weightSum="1">
|
|
|
|
<TextView
|
|
android:id="@+id/customerDetails"
|
|
android:layout_weight="0.9"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Customer Details"
|
|
android:layout_marginHorizontal="25dp"
|
|
android:textSize="18dp"
|
|
android:textColor="@color/black"
|
|
android:fontFamily="@font/manropeextrabold"/>
|
|
<LinearLayout
|
|
android:id="@+id/closePopUp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_weight="0.1"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:background="@drawable/ripple_effect"
|
|
android:layout_height="match_parent">
|
|
<ImageView
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:src="@drawable/close_1">
|
|
|
|
</ImageView>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp_25"
|
|
android:layout_marginRight="@dimen/dp_25"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:orientation="vertical">
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:weightSum="1">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.5">
|
|
<LinearLayout
|
|
android:id="@+id/customerMobileNumberHeader"
|
|
android:layout_margin="1dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:weightSum="0.5">
|
|
|
|
<TextView
|
|
|
|
android:layout_width="0dp"
|
|
android:layout_weight="0.339"
|
|
android:textColor="@color/black"
|
|
android:fontFamily="@font/gilorylight"
|
|
|
|
android:textSize="15dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="Mobile Number"/>
|
|
<TextView
|
|
android:id="@+id/customerMobileNumber"
|
|
android:textColor="@color/black"
|
|
android:fontFamily="@font/gilorylight"
|
|
|
|
android:textSize="15dp"
|
|
android:layout_width="0dp"
|
|
android:layout_marginRight="50dp"
|
|
android:layout_weight="0.34"
|
|
|
|
android:layout_height="wrap_content"
|
|
android:text=""/>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.5">
|
|
|
|
<LinearLayout
|
|
android:layout_margin="1dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:weightSum="0.5">
|
|
|
|
<TextView
|
|
|
|
android:layout_width="0dp"
|
|
android:layout_weight="0.3"
|
|
android:textColor="@color/black"
|
|
android:fontFamily="@font/gilorylight"
|
|
|
|
android:textSize="15dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="Customer Id "/>
|
|
<TextView
|
|
android:id="@+id/customerId"
|
|
android:textColor="@color/black"
|
|
android:fontFamily="@font/gilorylight"
|
|
android:textSize="15dp"
|
|
android:layout_width="0dp"
|
|
android:layout_marginRight="50dp"
|
|
android:layout_weight="0.2"
|
|
|
|
android:layout_height="wrap_content"
|
|
android:text=""/>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/customerNameHeader"
|
|
android:layout_margin="1dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:weightSum="0.5">
|
|
|
|
<TextView
|
|
|
|
android:layout_width="0dp"
|
|
android:layout_weight="0.16"
|
|
android:textColor="@color/black"
|
|
android:fontFamily="@font/gilorylight"
|
|
|
|
android:textSize="15dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="Name "/>
|
|
<TextView
|
|
android:id="@+id/customerName"
|
|
android:layout_width="0dp"
|
|
android:layout_marginRight="50dp"
|
|
android:layout_weight="0.34"
|
|
android:textColor="@color/black"
|
|
android:fontFamily="@font/gilorylight"
|
|
|
|
android:textSize="15dp"
|
|
android:layout_height="wrap_content"
|
|
android:text=""/>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/customerAddressHeader"
|
|
android:layout_margin="1dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:weightSum="0.5">
|
|
|
|
<TextView
|
|
|
|
android:textColor="@color/black"
|
|
android:fontFamily="@font/gilorylight"
|
|
|
|
android:textSize="15dp"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="0.16"
|
|
android:layout_height="wrap_content"
|
|
android:text="Address "/>
|
|
<TextView
|
|
android:id="@+id/customerAddress"
|
|
android:layout_width="0dp"
|
|
android:layout_marginRight="50dp"
|
|
android:layout_weight="0.34"
|
|
android:textColor="@color/black"
|
|
android:fontFamily="@font/gilorylight"
|
|
|
|
android:textSize="15dp"
|
|
android:layout_height="wrap_content"
|
|
android:text=""/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/salesDetailsHeader"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_width="match_parent"
|
|
android:orientation="vertical"
|
|
android:layout_marginLeft="@dimen/dp_25"
|
|
android:layout_marginRight="@dimen/dp_25"
|
|
android:layout_gravity="center"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:id="@+id/salesDetails"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Sales Details"
|
|
|
|
android:gravity="center"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black"
|
|
android:textSize="18dp"
|
|
android:fontFamily="@font/poppins_medium">
|
|
|
|
</TextView>
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp_25"
|
|
android:layout_marginRight="@dimen/dp_25"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:orientation="vertical">
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/advanceAmtChangeHeader"
|
|
android:layout_margin="1dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:weightSum="0.5">
|
|
|
|
<TextView
|
|
android:id="@+id/advanceAmtChange"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="0.3"
|
|
android:textColor="@color/black"
|
|
android:fontFamily="@font/gilorylight"
|
|
android:textSize="15dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="Advance Amount"/>
|
|
<TextView
|
|
android:id="@+id/advanceAmount"
|
|
android:textColor="@color/black"
|
|
android:fontFamily="@font/gilorylight"
|
|
|
|
android:textSize="15dp"
|
|
android:layout_width="0dp"
|
|
android:layout_marginRight="50dp"
|
|
android:layout_weight="0.2"
|
|
android:layout_height="wrap_content"
|
|
android:text=""/>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_margin="1dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:weightSum="0.5">
|
|
|
|
<TextView
|
|
|
|
android:layout_width="0dp"
|
|
android:layout_weight="0.3"
|
|
android:textColor="@color/black"
|
|
android:fontFamily="@font/gilorylight"
|
|
|
|
android:textSize="15dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="Bill Amount"/>
|
|
<TextView
|
|
android:id="@+id/customerBillAmount"
|
|
android:textColor="@color/black"
|
|
android:fontFamily="@font/gilorylight"
|
|
|
|
android:textSize="15dp"
|
|
android:layout_width="0dp"
|
|
android:layout_marginRight="50dp"
|
|
android:layout_weight="0.2"
|
|
|
|
android:layout_height="wrap_content"
|
|
android:text=""/>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/payableAmtChangeHeader"
|
|
android:layout_margin="1dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:weightSum="0.5">
|
|
|
|
<TextView
|
|
android:id="@+id/payableAmtChange"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="0.3"
|
|
android:textColor="@color/black"
|
|
android:fontFamily="@font/gilorylight"
|
|
android:textSize="15dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="Payable Amount"/>
|
|
|
|
<TextView
|
|
android:id="@+id/payableAmount"
|
|
android:layout_width="0dp"
|
|
android:layout_marginRight="50dp"
|
|
android:layout_weight="0.2"
|
|
android:textColor="@color/black"
|
|
android:fontFamily="@font/gilorylight"
|
|
|
|
android:textSize="15dp"
|
|
android:layout_height="wrap_content"
|
|
android:text=""/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_marginRight="@dimen/dp_25"
|
|
android:layout_marginLeft="@dimen/dp_25"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/showCustomerMessage"
|
|
android:textSize="13dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/poppins_medium"
|
|
android:textColor="@color/black"
|
|
android:text="">
|
|
|
|
|
|
</TextView>
|
|
|
|
<TextView
|
|
android:visibility="gone"
|
|
android:textSize="13dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/poppins_medium"
|
|
android:textColor="@color/black"
|
|
android:text=" customer already has an outstanding amount">
|
|
</TextView>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="end"
|
|
android:layout_gravity="end">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/cancel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="end"
|
|
android:gravity="center"
|
|
android:layout_marginTop="@dimen/dp_15"
|
|
android:layout_marginBottom="35dp"
|
|
android:layout_marginRight="35dp"
|
|
android:background="@drawable/customer_detail_cancel">
|
|
|
|
<TextView
|
|
android:background="@drawable/ripple_effect"
|
|
android:id="@+id/cancelTxt"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="Cancel"
|
|
android:textAllCaps="false"
|
|
android:fontFamily="@font/popins_bold"
|
|
android:textColor="@color/black"
|
|
android:gravity="center"
|
|
android:drawableTint="@color/white">
|
|
</TextView>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/submit"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="end"
|
|
android:gravity="center"
|
|
android:layout_marginTop="@dimen/dp_15"
|
|
android:layout_marginBottom="35dp"
|
|
android:layout_marginRight="35dp"
|
|
android:background="@drawable/customer_detail_submit">
|
|
|
|
<TextView
|
|
android:background="@drawable/ripple_effect"
|
|
android:id="@+id/subTxt"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="OK"
|
|
android:fontFamily="@font/popins_bold"
|
|
android:textColor="@color/white"
|
|
android:gravity="center">
|
|
</TextView>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|
|
|
|
|
|
|