recette2
parent
46cf9dcd70
commit
1a0ad22258
|
@ -63,7 +63,7 @@ function Emarge_QR_Code() {
|
||||||
const [get_E_Document_PDF, setget_E_Document_PDF] = useState();
|
const [get_E_Document_PDF, setget_E_Document_PDF] = useState();
|
||||||
const [selected_e_doc_id, setselected_e_doc_id] = useState();
|
const [selected_e_doc_id, setselected_e_doc_id] = useState();
|
||||||
const [selected_e_doc_email, setselected_e_doc_email] = useState();
|
const [selected_e_doc_email, setselected_e_doc_email] = useState();
|
||||||
const [selected_e_doc_secret, setselected_e_doc_secret] = useState();
|
const [selected_e_doc_secret, setselected_e_doc_secret] = useState("");
|
||||||
|
|
||||||
const [is_valide_e_document, setis_valide_e_document] = useState(false);
|
const [is_valide_e_document, setis_valide_e_document] = useState(false);
|
||||||
|
|
||||||
|
@ -517,7 +517,7 @@ function Emarge_QR_Code() {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="div_row_dialog">
|
{/* <div className="div_row_dialog">
|
||||||
<div className="session_caract_Dialog" > <b> Télephone </b>
|
<div className="session_caract_Dialog" > <b> Télephone </b>
|
||||||
<TextField
|
<TextField
|
||||||
autoFocus
|
autoFocus
|
||||||
|
@ -535,7 +535,7 @@ function Emarge_QR_Code() {
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>*/}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -764,7 +764,7 @@ function Emarge_QR_Code() {
|
||||||
<Popup
|
<Popup
|
||||||
trigger={
|
trigger={
|
||||||
<Button variant="contained" className="bton_enreg" onClick={(e) => {
|
<Button variant="contained" className="bton_enreg" onClick={(e) => {
|
||||||
|
Signature_E_Document(1);
|
||||||
}}>J'etais présent
|
}}>J'etais présent
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ import Link from '@mui/material/Link';
|
||||||
import { PiDotsThree } from "react-icons/pi";
|
import { PiDotsThree } from "react-icons/pi";
|
||||||
import { gridClasses } from '@mui/x-data-grid';
|
import { gridClasses } from '@mui/x-data-grid';
|
||||||
import {
|
import {
|
||||||
|
|
||||||
GridToolbarContainer,
|
GridToolbarContainer,
|
||||||
GridToolbarExportContainer,
|
GridToolbarExportContainer,
|
||||||
GridCsvExportMenuItem,
|
GridCsvExportMenuItem,
|
||||||
|
@ -52,7 +52,7 @@ import {
|
||||||
gridFilteredSortedRowIdsSelector,
|
gridFilteredSortedRowIdsSelector,
|
||||||
gridVisibleColumnFieldsSelector,
|
gridVisibleColumnFieldsSelector,
|
||||||
GridToolbarExport,
|
GridToolbarExport,
|
||||||
} from '@mui/x-data-grid';
|
} from '@mui/x-data-grid';
|
||||||
|
|
||||||
//import { utils, writeFileXLSX } from "xlsx";
|
//import { utils, writeFileXLSX } from "xlsx";
|
||||||
|
|
||||||
|
@ -62,49 +62,49 @@ const Partner_Facture = (props) => {
|
||||||
const csvOptions = { delimiter: ';' };
|
const csvOptions = { delimiter: ';' };
|
||||||
function CustomExportButton(props) {
|
function CustomExportButton(props) {
|
||||||
return (
|
return (
|
||||||
<GridToolbarExportContainer {...props}>
|
<GridToolbarExportContainer {...props}>
|
||||||
<GridCsvExportMenuItem options={csvOptions} />
|
<GridCsvExportMenuItem options={csvOptions} />
|
||||||
|
|
||||||
</GridToolbarExportContainer>
|
</GridToolbarExportContainer>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function CustomToolbar() {
|
|
||||||
|
function CustomToolbar() {
|
||||||
return (
|
return (
|
||||||
<GridToolbarContainer>
|
<GridToolbarContainer>
|
||||||
<GridToolbarExport />
|
<GridToolbarExport />
|
||||||
</GridToolbarContainer>
|
</GridToolbarContainer>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function gg() {
|
function gg() {
|
||||||
|
|
||||||
/* const wb = utils.book_new();
|
/* const wb = utils.book_new();
|
||||||
|
|
||||||
console.log(" ### selectionModel = ", Getall_Parter_Invoice_No_Filter_result);
|
console.log(" ### selectionModel = ", Getall_Parter_Invoice_No_Filter_result);
|
||||||
|
|
||||||
var new_data2 = []
|
var new_data2 = []
|
||||||
const new_data = Getall_Parter_Invoice_No_Filter_result.map((x) => {
|
const new_data = Getall_Parter_Invoice_No_Filter_result.map((x) => {
|
||||||
|
|
||||||
//---
|
//---
|
||||||
|
|
||||||
var local_node = JSON.parse(x);
|
var local_node = JSON.parse(x);
|
||||||
console.log("### local_node = ", local_node);
|
console.log("### local_node = ", local_node);
|
||||||
|
|
||||||
new_data2.push(local_node);
|
new_data2.push(local_node);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
console.log(" ### new_data2 = ", new_data2);
|
console.log(" ### new_data2 = ", new_data2);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
utils.book_append_sheet(wb, utils.json_to_sheet(new_data2));
|
utils.book_append_sheet(wb, utils.json_to_sheet(new_data2));
|
||||||
|
|
||||||
writeFileXLSX(wb, "testyy.xlsx");*/
|
writeFileXLSX(wb, "testyy.xlsx");*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1071,7 +1071,7 @@ const Partner_Facture = (props) => {
|
||||||
if (res.data.message.length > 0) {
|
if (res.data.message.length > 0) {
|
||||||
var mylocal_order = JSON.parse(res.data.message);
|
var mylocal_order = JSON.parse(res.data.message);
|
||||||
|
|
||||||
|
// zzzzz
|
||||||
if (mylocal_order.invoice_header_ref_interne)
|
if (mylocal_order.invoice_header_ref_interne)
|
||||||
setp_detail_header_invoice_header_ref_interne(mylocal_order.invoice_header_ref_interne);
|
setp_detail_header_invoice_header_ref_interne(mylocal_order.invoice_header_ref_interne);
|
||||||
|
|
||||||
|
@ -2023,7 +2023,7 @@ const Partner_Facture = (props) => {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
if (String(res.data.status) === "true") {
|
if (String(res.data.status) === "true") {
|
||||||
//console.log(" In Get_Given_Paiement_Data res.data.status = " + res.data.status);
|
//console.log(" In Get_Given_Paiement_Data res.data.status = " + res.data.status);
|
||||||
//console.log(" In Get_Given_Paiement_Data res.data.message r_class = " + res.data.message);
|
console.log(" In Get_Given_Paiement_Data res.data.message r_class = " + res.data.message);
|
||||||
setGet_Given_Paiement_Data_api("true");
|
setGet_Given_Paiement_Data_api("true");
|
||||||
setGet_Given_Paiement_Data_result(res.data.message);
|
setGet_Given_Paiement_Data_result(res.data.message);
|
||||||
|
|
||||||
|
@ -2051,11 +2051,14 @@ const Partner_Facture = (props) => {
|
||||||
setp_detail_paiement_date(new Date().toLocaleDateString('fr-FR'));
|
setp_detail_paiement_date(new Date().toLocaleDateString('fr-FR'));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (mylocal_document.commentaire)
|
if (mylocal_document.commentaire)
|
||||||
setp_detail_paiement_comment(mylocal_document.commentaire);
|
setp_detail_paiement_comment(mylocal_document.commentaire);
|
||||||
else
|
else
|
||||||
setp_detail_paiement_comment("");
|
setp_detail_paiement_comment("");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -3034,7 +3037,7 @@ const Partner_Facture = (props) => {
|
||||||
|
|
||||||
<div className="div_row" style={{ "border": "None", paddingRight: '10px' }}>
|
<div className="div_row" style={{ "border": "None", paddingRight: '10px' }}>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div className="session_data">
|
<div className="session_data">
|
||||||
<div style={{ "border": "None" }}>
|
<div style={{ "border": "None" }}>
|
||||||
|
@ -3110,7 +3113,7 @@ const Partner_Facture = (props) => {
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
onRowDoubleClick={(newSelectionModel) => {
|
onRowDoubleClick={(newSelectionModel) => {
|
||||||
setgridline_id(newSelectionModel.row.id);
|
setgridline_id(newSelectionModel.row.id);
|
||||||
|
@ -3157,10 +3160,10 @@ const Partner_Facture = (props) => {
|
||||||
rowsPerPageOptions={[10]}
|
rowsPerPageOptions={[10]}
|
||||||
//disableSelectionOnClick
|
//disableSelectionOnClick
|
||||||
components={{
|
components={{
|
||||||
Toolbar: GridToolbar,
|
Toolbar: GridToolbar,
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
||||||
//sx={datagridSx}
|
//sx={datagridSx}
|
||||||
getCellClassName={(params) => {
|
getCellClassName={(params) => {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue