Skip to content

Commit

Permalink
add printDate and row to print sum cars
Browse files Browse the repository at this point in the history
  • Loading branch information
imkarimkarim committed Oct 5, 2022
1 parent 134f447 commit 7b322b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/App/Pages/Reports/PrintSumProductOwnerSelectedCars.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,21 @@ function SaleSection({ cars, ownerName }) {
<table>
<thead>
<tr>
<th>ردیف</th>
<th>تاریخ ورود</th>
<th>پلاک</th>
<th>کد ماشین</th>
<th>صافی</th>
<th>اعلام صافی</th>
<th>صافی(ريال)</th>
</tr>
</thead>
<tbody>
{cars.map((car, index) => {
return (
<tr key={index}>
<td>{index + 1}</td>
<td>{<ShowDate timestamp={car.arrivalDate} />}</td>
<td>{car.plaque}</td>
<td>{car.customeId}</td>
<td>{<ShowDate timestamp={car.printDate} />}</td>
<td>{<Expense num={car.ownerEarnings} />}</td>
</tr>
);
Expand Down
1 change: 1 addition & 0 deletions src/ipcMains/ipcProductOwner.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ ipcMain.on("sumProductOwnerSelectedCars", (event, carsId) => {
cars.push({
ownerEarnings: res,
arrivalDate: car.arrivalDate,
printDate: car.printDate,
plaque: car.plaque,
customeId: car.customeId,
});
Expand Down

0 comments on commit 7b322b6

Please sign in to comment.