Commit 956e8a96 authored by Monish Deb's avatar Monish Deb

Set G/L and A/P batch action to Draft

parent ffc6e237
...@@ -106,6 +106,7 @@ class CRM_Syncintacct_API { ...@@ -106,6 +106,7 @@ class CRM_Syncintacct_API {
$journalEntry->setJournalSymbol('AR'); $journalEntry->setJournalSymbol('AR');
$journalEntry->setPostingDate($GLBatch['BATCH_DATE']); $journalEntry->setPostingDate($GLBatch['BATCH_DATE']);
$journalEntry->setDescription($GLBatch['BATCH_TITLE']); $journalEntry->setDescription($GLBatch['BATCH_TITLE']);
$journalEntry->setAction('Draft');
$journalEntry->setLines($GLBatch['ENTRIES']); $journalEntry->setLines($GLBatch['ENTRIES']);
return $this->sendRequest($journalEntry); return $this->sendRequest($journalEntry);
...@@ -120,6 +121,7 @@ class CRM_Syncintacct_API { ...@@ -120,6 +121,7 @@ class CRM_Syncintacct_API {
$billEntry->setDueDate($APBatch['DUE_DATE']); $billEntry->setDueDate($APBatch['DUE_DATE']);
$billEntry->setTransactionCurrency($APBatch['CURRENCY']); $billEntry->setTransactionCurrency($APBatch['CURRENCY']);
$billEntry->getBaseCurrency('USD'); $billEntry->getBaseCurrency('USD');
$billEntry->setAction('Draft');
return $this->sendRequest($billEntry); return $this->sendRequest($billEntry);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment