From ba9b9f01cf8ccc5bb636a55fdb5e853b2502f5a6 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Tue, 9 May 2023 15:13:28 +0700
Subject: show date order, po, customer name on transaction menu

---
 src/lib/transaction/components/Transactions.jsx | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

(limited to 'src/lib/transaction/components/Transactions.jsx')

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>
-- 
cgit v1.2.3

