Should I save QR Code after XML generated or Clearance api?

Hi community,
from this url

I found that the QR Code of standard invoice should not saved to our database. until we send xml invoice to zatca and get the new QR Code from Zatca Clearance api itself.

Please I need to know now. Should I save QRCode for standard invoice when generate XML or after response from zatca api?

What happened if internet connection is offline? should I save QR Code from xml itself? so Buyer can take the invoice with QR Code.

as you say, for standard invoice, you have to share the invoice with customer after zatca approval
and new QR from zatca …only to be used

HI,
Standard QR will be sent back to your when it is cleared by ZATCA so use same.
While for simplified you need to generate QR code and then just report signed xml to ZATCA. thanks