Hi all,
I've added a Boolean Text Box called Invoice Paid to the the header of the
Purch. Invoice Header Table. Simple check box. However, when I try to exit the form after ticking the check box, I get a popup error message which reads:
You do not have permission to modify records in the Purch. Inv. Header Table. Contact the System Manager if you need to have your permissions changed
Any help with this is appreciated,
Cheers,
Paul.
Comments
Cheers!
The best (safest) way is to do like Form 130:"Posted Sales Shipment". In it you have some fields enabled.
In the "Form - OnModifyRecord()"-trigger, you call a codeunit that really writes the changed field (and ONLY that field) to the DB.
In the codeunit, you also have to put a permission (with property permission) to modify the posted purchase header-table.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Codeunit 391
and on the trigger
PurchaseInvoiceHeaderEdit(PurchInvoiceHeader : Record "Purch. Inv. Header")
you would have to add..
Note: there are other ways of keeping track of Invoices and if they are paid. 8)
http://www.BiloBeauty.com
http://www.autismspeaks.org
If it is the same in yours, look at the Sales Shipment Form (OnModify) and Codeunit 391 Shipment Header - Edit
Look at the code, you can add a tracking number to the shipment header.
You will need to do the same for your new field, this is the proper way, if you want to modify a posted document or a Ledger (113 Vend. Entry-Edit).
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com