fix: add T&C photo to tx details
This commit is contained in:
parent
348260931e
commit
13a16bc965
2 changed files with 22 additions and 14 deletions
|
|
@ -49,6 +49,7 @@ const GET_TRANSACTIONS = gql`
|
||||||
customerIdCardData
|
customerIdCardData
|
||||||
customerIdCardPhotoPath
|
customerIdCardPhotoPath
|
||||||
customerFrontCameraPath
|
customerFrontCameraPath
|
||||||
|
txCustomerPhotoPath
|
||||||
customerPhone
|
customerPhone
|
||||||
discount
|
discount
|
||||||
customerId
|
customerId
|
||||||
|
|
|
||||||
|
|
@ -121,6 +121,8 @@ const DetailsRow = ({ it: tx, timezone }) => {
|
||||||
|
|
||||||
const isCashIn = tx.txClass === 'cashIn'
|
const isCashIn = tx.txClass === 'cashIn'
|
||||||
|
|
||||||
|
console.log(tx)
|
||||||
|
|
||||||
const zip = new JSZip()
|
const zip = new JSZip()
|
||||||
|
|
||||||
const [fetchSummary] = useLazyQuery(TX_SUMMARY, {
|
const [fetchSummary] = useLazyQuery(TX_SUMMARY, {
|
||||||
|
|
@ -259,20 +261,25 @@ const DetailsRow = ({ it: tx, timezone }) => {
|
||||||
{tx.customerPhone}
|
{tx.customerPhone}
|
||||||
</IDButton>
|
</IDButton>
|
||||||
)}
|
)}
|
||||||
{tx.customerIdCardPhotoPath && !tx.customerIdCardData && (
|
{(tx.customerIdCardPhotoPath || tx.txCustomerPhotoPath) &&
|
||||||
<IDButton
|
!tx.customerIdCardData && (
|
||||||
popoverClassname={classes.clipboardPopover}
|
<IDButton
|
||||||
className={classes.idButton}
|
popoverClassname={classes.clipboardPopover}
|
||||||
name="card"
|
className={classes.idButton}
|
||||||
Icon={CardIdIcon}
|
name="card"
|
||||||
InverseIcon={CardIdInverseIcon}>
|
Icon={CardIdIcon}
|
||||||
<img
|
InverseIcon={CardIdInverseIcon}>
|
||||||
className={classes.idCardPhoto}
|
<img
|
||||||
src={`${URI}/id-card-photo/${tx.customerIdCardPhotoPath}`}
|
className={classes.idCardPhoto}
|
||||||
alt=""
|
src={`${URI}${
|
||||||
/>
|
tx.customerIdCardPhotoPath
|
||||||
</IDButton>
|
? '/id-card-photo/'
|
||||||
)}
|
: 'operator-data/customersphotos'
|
||||||
|
}${tx.customerIdCardPhotoPath ?? tx.txCustomerPhotoPath}`}
|
||||||
|
alt=""
|
||||||
|
/>
|
||||||
|
</IDButton>
|
||||||
|
)}
|
||||||
{tx.customerIdCardData && (
|
{tx.customerIdCardData && (
|
||||||
<IDButton
|
<IDButton
|
||||||
className={classes.idButton}
|
className={classes.idButton}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue