Lines Matching refs:quan
668 bp->bquan = obj->quan; in addtobill()
686 if(bp->bquan < otmp->quan) { in splitbill()
689 if(bp->bquan == otmp->quan) { in splitbill()
692 bp->bquan -= otmp->quan; in splitbill()
700 bp->bquan = otmp->quan; in splitbill()
720 if(bp->bquan > obj->quan){ in subfrombill()
724 otmp->quan = (bp->bquan -= obj->quan); in subfrombill()
751 ltmp = getprice(obj) * obj->quan; in subfrombill()
788 ((obj = bp_to_obj(bp)) && obj->quan < bp->bquan)) in doinvbill()
809 if(bp->useup || bp->bquan > obj->quan) { in doinvbill()
812 oquan = obj->quan; in doinvbill()
816 obj->quan = uquan; /* cheat doname */ in doinvbill()
818 obj->quan = oquan; /* restore value */ in doinvbill()