@bookipi/htmlgenerator 1.5.16-alpha2 → 1.5.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12223,10 +12223,6 @@ var invoiceHtmlWithDetails = (function (_ref) {
12223
12223
  };
12224
12224
  });
12225
12225
 
12226
- var DOCUMENT_KEYS = ['_id', 'ad', 'ty', 'cu', 'd', 'dd', 'rn', 'it', 'st', 'tx', 'tx2', 'tt', 'dc', 'dcp', 'dcpo', 'sp', 'sntx', 'tp', 'tn', 'tp2', 'ti', 'ttx', 't1d', 't2d', 'pm', 'sca', 'hangingAmount', 'depositAmount', 'um', 'shouldShowPaymentInstructions', 'customization', 'asi', 'no', 'proposal', 'd', 'rd', 'di', 'pon', 'pma', 'depositDue', 'noteHtml', 'nt', 'tc', 'sd', 'cs'];
12227
-
12228
- var COMPANY_KEYS = ['_id', 'c', 'e', 'ph', 'tfn', 'la', 'cr', 'cf', 'tz', 'ls', 'doc', 'bn', 'tn', 'tn2', 'tp', 'tp2', 'ti', 'ttx', 't1d', 't2d', 'pi', 'p1', 'p2', 'p3', 'sg', 'a1', 'a2', 'a3', 'address', 'language', 'la', 'sc', 'sr', 'r_bs', 'r_tc', 'r_nt', 'r_deposit_due', 'r_ad', 'r_gt', 'r_po', 'r_bt', 'r_st', 'r_d', 'r_a', 'r_dc', 'r_ic', 'r_it', 'r_n', 'r_p', 'r_q', 'r_sb', 'r_sp', 'r_tt', 'r_pi', 'r_inv', 'r_est', 'r_crd', 'r_dd', 'df', 'lg', 'hasPaymentInstructionQRCode', 'updatedAt', 'payment_in_progress'];
12229
-
12230
12226
  var hexToRGB = function hexToRGB(hex) {
12231
12227
  hex = hex.replace(/^#/, "");
12232
12228
  return {
@@ -12749,16 +12745,6 @@ var invoiceHtmlWithDetailsNew = (function (_ref) {
12749
12745
  };
12750
12746
  });
12751
12747
 
12752
- var trimInvoiceKeys = (function (obj, keys) {
12753
- var result = {};
12754
- keys.forEach(function (key) {
12755
- if (obj.hasOwnProperty(key)) {
12756
- result[key] = obj[key];
12757
- }
12758
- });
12759
- return result;
12760
- });
12761
-
12762
12748
  var invoiceHtml = (function (_ref) {
12763
12749
  var invoice = _ref.invoice,
12764
12750
  _ref$lang = _ref.lang,
@@ -12800,10 +12786,7 @@ var invoiceHtml = (function (_ref) {
12800
12786
  isFullScreen = _ref$isFullScreen === void 0 ? false : _ref$isFullScreen;
12801
12787
  var renderInvoice = isNewLayout ? invoiceHtmlWithDetailsNew : invoiceHtmlWithDetails;
12802
12788
  return renderInvoice({
12803
- invoice: _extends({}, invoice, {
12804
- document: trimInvoiceKeys(invoice.document, DOCUMENT_KEYS),
12805
- company: trimInvoiceKeys(invoice.company, COMPANY_KEYS)
12806
- }),
12789
+ invoice: invoice,
12807
12790
  lang: lang,
12808
12791
  referral: referral,
12809
12792
  companyLogoBase: companyLogoBase,