Posts

Showing posts from November, 2019

Exporting Vendor payment status by Dataentity

/// <summary> /// Entity for exporting file of payment status. /// </summary> public class KGSPMIVendorPaymentStatusEntity extends common { /// <summary> /// Updates the unmapped fields after population. /// </summary> public void postLoad() { str recordTypeValue = '600' ; str paymentMethodCheck = 'C' ; VendTrans tmpVendTrans; VendSettlement vendSettlement; super (); vendSettlement = VendSettlement ::find( this .RecId1); this .RecordType = recordTypeValue; this .TotalAmount = abs( this .SettleAmountCur); this .PaymentDate = date2Str( this .TransDate, 321 , 2 , DateSeparator ::None, 2 , DateSeparator ::None, 4 ); this .Account = VendTable ::find( this .AccountNum).vendorName(); if ( this .PaymMode == "Check" ) { this .P...