summaryrefslogtreecommitdiff
path: root/src/lib/transaction
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/transaction')
-rw-r--r--src/lib/transaction/components/Transaction.jsx4
-rw-r--r--src/lib/transaction/components/Transactions.jsx10
2 files changed, 9 insertions, 5 deletions
diff --git a/src/lib/transaction/components/Transaction.jsx b/src/lib/transaction/components/Transaction.jsx
index 30bb454a..7a1e0dd7 100644
--- a/src/lib/transaction/components/Transaction.jsx
+++ b/src/lib/transaction/components/Transaction.jsx
@@ -34,11 +34,11 @@ const Transaction = ({ id }) => {
const file = poFile.current.files[0]
const name = poNumber.current.value
if (typeof file === 'undefined' || !name) {
- toast.error('Nomor dan Dokumen PO harus diisi', { position: 'bottom-center' })
+ toast.error('Nomor dan Dokumen PO harus diisi')
return
}
if (file.size > 5000000) {
- toast.error('Maksimal ukuran file adalah 5MB', { position: 'bottom-center' })
+ toast.error('Maksimal ukuran file adalah 5MB')
return
}
const data = { name, file: await getFileBase64(file) }
diff --git a/src/lib/transaction/components/Transactions.jsx b/src/lib/transaction/components/Transactions.jsx
index bfb8c66b..c1c27a51 100644
--- a/src/lib/transaction/components/Transactions.jsx
+++ b/src/lib/transaction/components/Transactions.jsx
@@ -224,7 +224,9 @@ const Transactions = ({ context = '' }) => {
<thead>
<tr>
<th>No. Transaksi</th>
+ <th>No. PO</th>
<th>Tanggal</th>
+ <th>Created By</th>
<th className='!text-left'>Salesperson</th>
<th className='!text-left'>Total</th>
<th>Status</th>
@@ -233,7 +235,7 @@ const Transactions = ({ context = '' }) => {
<tbody>
{transactions.isLoading && (
<tr>
- <td colSpan={5}>
+ <td colSpan={7}>
<div className='flex justify-center my-2'>
<Spinner className='w-6 text-gray_r-12/50 fill-gray_r-12' />
</div>
@@ -244,7 +246,7 @@ const Transactions = ({ context = '' }) => {
(!transactions?.data?.saleOrders ||
transactions?.data?.saleOrders?.length == 0) && (
<tr>
- <td colSpan={5}>Tidak ada data transaksi</td>
+ <td colSpan={7}>Tidak ada data transaksi</td>
</tr>
)}
{transactions.data?.saleOrders?.map((saleOrder) => (
@@ -252,7 +254,9 @@ const Transactions = ({ context = '' }) => {
<td>
<Link href={`${router.pathname}/${saleOrder.id}`}>{saleOrder.name}</Link>
</td>
- <td>-</td>
+ <td>{saleOrder.purchaseOrderName || '-'}</td>
+ <td>{saleOrder.dateOrder || '-'}</td>
+ <td>{saleOrder.address.customer?.name || '-'}</td>
<td className='!text-left'>{saleOrder.sales}</td>
<td className='!text-left'>{currencyFormat(saleOrder.amountTotal)}</td>
<td>