fix document and hardcode in payment adapter

This commit is contained in:
shaulascr
2025-08-29 15:40:13 +07:00
parent 86b5534cb3
commit bc9b16b4af
6 changed files with 11 additions and 12 deletions

View File

@ -222,8 +222,6 @@ class AddEvidencePaymentActivity : AppCompatActivity() {
val adapter = object : ArrayAdapter<String>(this, R.layout.item_dialog_add_evidence, R.id.tvOption, options) { 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 { override fun getView(position: Int, convertView: View?, parent: ViewGroup): View {
val view = super.getView(position, convertView, parent) 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 return view
} }
} }
@ -455,9 +453,6 @@ class AddEvidencePaymentActivity : AppCompatActivity() {
).show() ).show()
} }
companion object { companion object {
private const val PERMISSION_REQUEST_CODE = 100 private const val PERMISSION_REQUEST_CODE = 100
private const val TAG = "AddEvidenceActivity" private const val TAG = "AddEvidenceActivity"

View File

@ -418,8 +418,8 @@ class DetailStoreProductActivity : AppCompatActivity() {
Log.d(TAG, "SPPIRT URI: ${sppirtUri.toString()}") Log.d(TAG, "SPPIRT URI: ${sppirtUri.toString()}")
Log.d(TAG, "Halal URI: ${halalUri.toString()}") Log.d(TAG, "Halal URI: ${halalUri.toString()}")
logFileInfo("Sppirt Size", sppirtFile!!) sppirtFile?.let { logFileInfo("Sppirt Size", it) }
logFileInfo("Halal Size", halalFile!!) halalFile?.let { logFileInfo("Halal Size", it) }
val imagePart = imageFile?.let { createPartFromFile("productimg", it) } val imagePart = imageFile?.let { createPartFromFile("productimg", it) }
val sppirtPart = sppirtFile?.let { createPartFromFile("sppirt", it) } val sppirtPart = sppirtFile?.let { createPartFromFile("sppirt", it) }

View File

@ -206,6 +206,8 @@ class SellsAdapter(
tvSellsTitle.text = "Pesanan Telah Dibayar" tvSellsTitle.text = "Pesanan Telah Dibayar"
tvSellsDueDesc.text = "Konfirmasi pembayaran sebelum:" tvSellsDueDesc.text = "Konfirmasi pembayaran sebelum:"
tvSellsDue.text = formatDueDate(order.updatedAt.toString(), 2) 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" -> { "processed" -> {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

View File

@ -28,14 +28,15 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Judul" android:text="Judul"
android:layout_marginTop="16dp" android:layout_marginTop="32dp"
android:paddingHorizontal="16dp" android:paddingHorizontal="16dp"
android:layout_marginHorizontal="32dp"
android:paddingTop="4dp" android:paddingTop="4dp"
android:ellipsize="end" android:ellipsize="end"
android:scrollHorizontally="false" android:scrollHorizontally="false"
android:singleLine="false" android:singleLine="false"
android:gravity="center" android:gravity="center"
android:textSize="16sp" android:textSize="18sp"
android:maxLines="3" android:maxLines="3"
android:fontFamily="@font/dmsans_semibold" android:fontFamily="@font/dmsans_semibold"
android:textColor="?attr/colorOnSurface" /> android:textColor="?attr/colorOnSurface" />
@ -45,6 +46,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:layout_marginHorizontal="32dp"
android:gravity="center" android:gravity="center"
android:maxLines="3" android:maxLines="3"
android:paddingHorizontal="16dp" android:paddingHorizontal="16dp"
@ -54,7 +56,7 @@
android:singleLine="false" android:singleLine="false"
android:text="Pesan Dialog" android:text="Pesan Dialog"
android:fontFamily="@font/dmsans_regular" android:fontFamily="@font/dmsans_regular"
android:textSize="12sp" android:textSize="14sp"
android:textColor="?attr/colorOnSurfaceVariant" /> android:textColor="?attr/colorOnSurfaceVariant" />
<LinearLayout <LinearLayout
@ -72,7 +74,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:fontFamily="@font/dmsans_regular" android:fontFamily="@font/dmsans_regular"
android:theme="@style/body_small" android:theme="@style/body_medium"
android:text="Tidak" /> android:text="Tidak" />
@ -83,7 +85,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="12dp" android:layout_marginStart="12dp"
android:fontFamily="@font/dmsans_regular" android:fontFamily="@font/dmsans_regular"
android:theme="@style/body_small" android:theme="@style/body_medium"
android:text="Ya" /> android:text="Ya" />
</LinearLayout> </LinearLayout>