title: Error while posting Purchase Packing Slip Through X++
body: <p>I have been trying to post packing slip from code. I have tried several ways but unfortunately without success.</p>
  
  <p>My code is below:</p>
  
  <pre><code>purchTable = PurchTable::find('PO0012555');
  purchFormLetter = PurchFormLetter::construct(DocumentStatus::PackingSlip);
  purchformLetter.getLast();
  purchFormLetter.transDate(transDate);
  numberSeq  = NumberSeq::newGetNum(PurchParameters::numRefPurchPackingSlipId()).num();
  purchFormLetter.update(purchTable,
  "14",// numberSeq, //this is coming out blank
  transDate,
  PurchUpDate::All,
  AccountOrder::None,
         false,
         false);
  </code></pre>
  
  <p>When I tried to execute, I was getting this error:</p>
  
  <p>Inventory is closed for physical and financial transactions until </p>
  
  <p>Do you have any idea? Any help will be appreciated.
  Thanks</p>