here's the story:
have a providex database that i suck data out of and into a sql server (using ssis and odbc) to create reports, the invoice detail table there are a couple of types of invoices, in short some return to stock and credit the customer where and some send out stock and bill the customer (returns and invoices in the same table)
problem is that they are all positive numbers, the database itselfe uses the "IV_TYP" field to determin wether it added or took away from the inventory, what i need to be able to do is multiply all "IV_TYP" invoice types that are returns by -1 so that if its a return for 100 units for $1000, my report treats it as -100 units and -$1000
i dont know how to accomplish this.
have a providex database that i suck data out of and into a sql server (using ssis and odbc) to create reports, the invoice detail table there are a couple of types of invoices, in short some return to stock and credit the customer where and some send out stock and bill the customer (returns and invoices in the same table)
problem is that they are all positive numbers, the database itselfe uses the "IV_TYP" field to determin wether it added or took away from the inventory, what i need to be able to do is multiply all "IV_TYP" invoice types that are returns by -1 so that if its a return for 100 units for $1000, my report treats it as -100 units and -$1000
i dont know how to accomplish this.