If you want to enter tax adjustment for transfer order then you should keep in mind that if you enter Amount 1000 for Tax Adjustment then Rs. 1000 will be applicable for each line it means in line one Tax Adjustment amount is 1000 line 2 amount is 1000 so if you want to enter adjust Rs 1000 for all line then you need to enter rs 500 for 2 lines.
To Cancel Deliver Remainder through X++ you can use below code sample. Thanks. static void _CancelDeliverRemainder_Sales(Args _args) { SalesLine SalesLine = SalesLine::find('SO0013', true); ; if (SalesLine) { // Set remaining inventory Qty to zero SalesLine.RemainInventPhysical = 0; // Set remaining physical Qty to zero SalesLine.RemainSalesPhysical = 0; // We have to cancel the SalesLine SalesLine.PurchStatus = PurchStatus::Canceled; SalesLine.update(); ...