Automate Dr Cr note voucher with the document
We need the post method of Dr Cr note to also generate the respective vouchers with the perfect use of needed accounts. If note is Cr with sales invoice then Discount account will be Dr and Customer account will be Cr. If it is a sales return then the respective product sales account will be Dr and customer account will be Cr to the extent of price per unit * quantity rejected for each product. Stock will also be increased with CR note as flag. To know if the nature of Cr note is discount or return, a flag called DrCrMode will be sent from frontend. If credit note is with Purchase invoice then, supplyer account is credited and discount paid account is dR. Exactly other way round for Dr note.