0

Print to PDF not working correctly for 1 person

We have a manufacturing system in place, where a staff member in China has to accept or reject orders. When she accepts an order, its meant to create a signed copy of the form thats initially sent to her... when I test it on my end, it works fine. But whenever she accepts an order, the "signed" copy of the form is missing details such as customer name etc.

I can't figure out what the hell is going on. I've made sure she's doing everything right on her end... any ideas why this might be happening?

3 replies

null
    • SECOS Group
    • quartz_cap
    • 4 yrs ago
    • Reported - view

    For reference, the following is the code used. The comments section is often empty, but I've tested on my side with comments empty and it works.

     

    let myEmail := 'Accepted/Rejected By'.Email;
    let myName := '10. BLA'.'BLA Number' + "_v" + Version + " - " + Company + "_Signed" + ".pdf";
    let recipients := Requester.Email;
    let ccEmails := "h.xue@biograde.com.cn, luming@biograde.com.cn, s.chilby@secosgroup.com.au, swalters@secosgroup.com.au, istacey@secosgroup.com.au, rmorgan@secosgroup.com.au, r.garson@secosgroup.com.au";
    let myPDF := "";
    switch 'Multiple Delivery Locations' do
    case 1:
    (myPDF := printAndSaveRecord(this, "2 Delivery Address Accepted"))
    case 2:
    (myPDF := printAndSaveRecord(this, "1 Delivery Address Accepted"))
    default:
    (myPDF := printAndSaveRecord(this, "1 Delivery Address Accepted"))
    end;
    let reply := dialog("Are you sure you want to accept/reject this order?", "If you are rejecting this order, make sure you fill out the reason. It will be emailed to the requesting party who will be advised to revise the order to meet your requirements.", ["Yes", "No"]);
    if reply = "Yes" and Status = 1 then
    importFile(this, myPDF, myName);
    sendEmail({
    from: myEmail,
    to: recipients,
    cc: ccEmails,
    subject: "JOB " + Status + ": " + '10. BLA'.'BLA Number' + " - " + Company,
    text: "Your recent BLA request has been " + Status + " by " + 'Accepted/Rejected By'.'First Name' + " " + 'Accepted/Rejected By'.'Last Name' + ". It will be scheduled accordingly in the production planner. Should you have any questions, please contact the accepting party by email. If you need to revise the order, you can do so in the database.

    " + 'Comments.',
    attachments: file(this, myName)
    });
    '10. BLA'.(Status := 1);
    alert("Successfully submitted")
    else
    if reply = "Yes" and Status = 2 then
    sendEmail({
    from: myEmail,
    to: recipients,
    cc: myEmail,
    subject: "JOB " + Status + ": " + '10. BLA'.'BLA Number' + " - " + Company,
    text: "Your recent BLA request has been " + Status + " by " + 'Accepted/Rejected By'.'First Name' + " " + 'Accepted/Rejected By'.'Last Name' + ". Please review the notes below and follow procedure to revise the order.

    " + 'Comments.'
    });
    '10. BLA'.(Status := 2);
    alert("Successfully submitted")
    end
    end

    • Jorg
    • 4 yrs ago
    • Reported - view

    Hi Sarah, 

    I think the best would be to have a screensharing session with our Support.

    Please make an appointment for that via the following link: 

    https://calendly.com/ninoxenglish 

    Thank you very much.

    Kind regards, Jörg

    • SECOS Group
    • quartz_cap
    • 4 yrs ago
    • Reported - view

    I figured out the issue - the person who was having issues didn't have permissions to view certain parts of the database, and that sthe info that was missing. We gave them access to the required areas and everything is working :)

Content aside

  • 4 yrs agoLast active
  • 3Replies
  • 1224Views