mirror of
https://github.com/shaulascr/ecommerce_serang.git
synced 2025-12-15 15:41:02 +00:00
fix document and hardcode in payment adapter
This commit is contained in:
@ -222,8 +222,6 @@ class AddEvidencePaymentActivity : AppCompatActivity() {
|
||||
val adapter = object : ArrayAdapter<String>(this, R.layout.item_dialog_add_evidence, R.id.tvOption, options) {
|
||||
override fun getView(position: Int, convertView: View?, parent: ViewGroup): View {
|
||||
val view = super.getView(position, convertView, parent)
|
||||
val divider = view.findViewById<View>(R.id.divider)
|
||||
divider.visibility = if (position == count - 1) View.GONE else View.VISIBLE
|
||||
return view
|
||||
}
|
||||
}
|
||||
@ -455,9 +453,6 @@ class AddEvidencePaymentActivity : AppCompatActivity() {
|
||||
).show()
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
companion object {
|
||||
private const val PERMISSION_REQUEST_CODE = 100
|
||||
private const val TAG = "AddEvidenceActivity"
|
||||
|
||||
@ -418,8 +418,8 @@ class DetailStoreProductActivity : AppCompatActivity() {
|
||||
|
||||
Log.d(TAG, "SPPIRT URI: ${sppirtUri.toString()}")
|
||||
Log.d(TAG, "Halal URI: ${halalUri.toString()}")
|
||||
logFileInfo("Sppirt Size", sppirtFile!!)
|
||||
logFileInfo("Halal Size", halalFile!!)
|
||||
sppirtFile?.let { logFileInfo("Sppirt Size", it) }
|
||||
halalFile?.let { logFileInfo("Halal Size", it) }
|
||||
|
||||
val imagePart = imageFile?.let { createPartFromFile("productimg", it) }
|
||||
val sppirtPart = sppirtFile?.let { createPartFromFile("sppirt", it) }
|
||||
|
||||
@ -206,6 +206,8 @@ class SellsAdapter(
|
||||
tvSellsTitle.text = "Pesanan Telah Dibayar"
|
||||
tvSellsDueDesc.text = "Konfirmasi pembayaran sebelum:"
|
||||
tvSellsDue.text = formatDueDate(order.updatedAt.toString(), 2)
|
||||
val totalPrice = (order.totalAmount?.toDouble()?.toInt() ?: 0) - (order.shipmentPrice?.toDouble()?.toInt() ?: 0)
|
||||
tvSellsPrice.text =formatPrice(totalPrice).toString()
|
||||
|
||||
}
|
||||
"processed" -> {
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 8.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.3 MiB |
@ -28,14 +28,15 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Judul"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginTop="32dp"
|
||||
android:paddingHorizontal="16dp"
|
||||
android:layout_marginHorizontal="32dp"
|
||||
android:paddingTop="4dp"
|
||||
android:ellipsize="end"
|
||||
android:scrollHorizontally="false"
|
||||
android:singleLine="false"
|
||||
android:gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:textSize="18sp"
|
||||
android:maxLines="3"
|
||||
android:fontFamily="@font/dmsans_semibold"
|
||||
android:textColor="?attr/colorOnSurface" />
|
||||
@ -45,6 +46,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginHorizontal="32dp"
|
||||
android:gravity="center"
|
||||
android:maxLines="3"
|
||||
android:paddingHorizontal="16dp"
|
||||
@ -54,7 +56,7 @@
|
||||
android:singleLine="false"
|
||||
android:text="Pesan Dialog"
|
||||
android:fontFamily="@font/dmsans_regular"
|
||||
android:textSize="12sp"
|
||||
android:textSize="14sp"
|
||||
android:textColor="?attr/colorOnSurfaceVariant" />
|
||||
|
||||
<LinearLayout
|
||||
@ -72,7 +74,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/dmsans_regular"
|
||||
android:theme="@style/body_small"
|
||||
android:theme="@style/body_medium"
|
||||
|
||||
android:text="Tidak" />
|
||||
|
||||
@ -83,7 +85,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:fontFamily="@font/dmsans_regular"
|
||||
android:theme="@style/body_small"
|
||||
android:theme="@style/body_medium"
|
||||
android:text="Ya" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
Reference in New Issue
Block a user