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