Quantcast
Channel: Microsoft Dynamics GP
Viewing all articles
Browse latest Browse all 38722

Forum Post: Is there a different table for posted and unposted payable's invoices?

$
0
0
Okay, so I recently coded something to check the PmPaidTransactionHistTable to ensure that there were no duplicates and ran into an issue due to the fact that unposted transactions which were still in "work" were not checked. So I'm wondeirng if there's a different table for those invoices. Here is my code btw, Dim CustomerMasterTableID As PmPaidTransactionHistTable Dim CustomerMasterInvoiceVendor As PmPaidTransactionHistTable Dim TabErr As TableError Dim VendErr As TableError CustomerMasterTableID = Dynamics.Tables.PmPaidTransactionHist CustomerMasterInvoiceVendor = Dynamics.Tables.PmPaidTransactionHist ' Find the proper keys CustomerMasterInvoiceVendor.Key = 1 CustomerMasterTableID.Key = 3 ' Used Vendor and Invoice to symbolize the two variables that I was looking for; vendorname and invoicenumber. CustomerMasterTableID.DocumentNumber.Value = invoice CustomerMasterInvoiceVendor.VendorId.Value = VendorId 'Retriving the error TabErr = CustomerMasterTableID.Get() VendErr = CustomerMasterInvoiceVendor.Get() If TabErr = TableError.NoError And VendErr = TableError.NoError Then Error 123 Else End If CustomerMasterInvoiceVendor.Close() CustomerMasterTableID.Close()

Viewing all articles
Browse latest Browse all 38722

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>