invoice
This commit is contained in:
@@ -312,61 +312,46 @@ const InvoicePreview = () => {
|
||||
<TableHead>
|
||||
<TableRow>
|
||||
<TableCell>S.No</TableCell>
|
||||
<TableCell sx={{ width: '150px' }}>Date</TableCell>
|
||||
<TableCell sx={{ width: '150px' }}>Order Id</TableCell>
|
||||
<TableCell>Pickup</TableCell>
|
||||
<TableCell>Drop</TableCell>
|
||||
{/* <TableCell>Customer</TableCell>
|
||||
<TableCell>Contact no</TableCell>
|
||||
<TableCell>KMS</TableCell> */}
|
||||
<TableCell>Particulars</TableCell>
|
||||
<TableCell>Unit</TableCell>
|
||||
<TableCell>Quantity</TableCell>
|
||||
<TableCell align="right">Rate</TableCell>
|
||||
{/* {selected && selected.pricingtypeid === 73 && ( */}
|
||||
<TableCell>Other Charges</TableCell>
|
||||
{/* )} */}
|
||||
<TableCell align="right">Amount</TableCell>
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
{selected.tenantsalesdetails && (
|
||||
<TableBody>
|
||||
{selected.tenantsalesdetails.map((item, index) => (
|
||||
<TableRow key={index}>
|
||||
<TableCell>{index + 1}</TableCell>
|
||||
<TableRow>
|
||||
<TableCell>1</TableCell>
|
||||
<TableCell>
|
||||
<Stack direction="column">
|
||||
<Typography variant="caption">{dayjs(item.orderdate).format('DD-MM-YYYY')}</Typography>
|
||||
|
||||
<Typography variant="caption" color="secondary">
|
||||
{dayjs(item.orderdate).format('hh:mm a')}
|
||||
<Typography>
|
||||
{`Invoice from ${dayjs(selected.tenantsalesdetails[0].fromdate).format('DD-MM-YYYY')} to ${dayjs(
|
||||
selected.tenantsalesdetails[0].todate
|
||||
).format('DD-MM-YYYY')}`}
|
||||
</Typography>
|
||||
</Stack>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
{' '}
|
||||
<Typography variant="caption">{item.orderid} </Typography>
|
||||
<Typography>{selected.tenantsalesdetails[0].pricingtype}</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell>
|
||||
{' '}
|
||||
<Typography variant="caption">{item.pickup} </Typography>
|
||||
<Typography>{`${selected.tenantsalesdetails[0].quantity}km`}</Typography>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<Typography variant="caption">{item.drop} </Typography>
|
||||
<Typography align="right">{`₹ ${selected.tenantsalesdetails[0].baserate.toFixed(2)}`}</Typography>
|
||||
</TableCell>
|
||||
{/* {selected.tenantsalesdetails[0].pricingtypeid == 73 && ( */}
|
||||
<TableCell align="center">
|
||||
<Typography>{`₹ ${selected.tenantsalesdetails[0].othercharges}.00`}</Typography>
|
||||
</TableCell>
|
||||
{/* )} */}
|
||||
<TableCell align="right">
|
||||
<Typography variant="caption">{formatNumberToRupees(item.totalamount)}</Typography>
|
||||
<Typography>{`₹ ${selected.tenantsalesdetails[0].amount}.00`}</Typography>
|
||||
</TableCell>
|
||||
{/* <TableCell>
|
||||
<Typography variant="caption">
|
||||
{item.actualkms == "" || 0
|
||||
? parseInt(item.kms).toFixed(1)
|
||||
: parseInt(item.actualkms).toFixed(1)}
|
||||
</Typography>
|
||||
</TableCell> */}
|
||||
{/* <TableCell>
|
||||
<Typography variant="caption">
|
||||
{item.deliveryamt == "" || 0
|
||||
? `₹ ${item.deliverycharges}.00`
|
||||
: `₹ ${item.deliveryamt}.00`}
|
||||
</Typography>
|
||||
</TableCell> */}
|
||||
</TableRow>
|
||||
))}
|
||||
</TableBody>
|
||||
)}
|
||||
</Table>
|
||||
|
||||
Reference in New Issue
Block a user